fix slow devices scene write

This commit is contained in:
JcDenis 2024-05-20 10:32:36 +02:00
parent 1f75b5da29
commit 07d6ce817b
3 changed files with 55 additions and 20 deletions

File diff suppressed because one or more lines are too long

View file

@ -77,11 +77,12 @@
"633e93007ad7359e",
"f57a3d0eaf07945a",
"85ac6855ecab60c4",
"4abd6ee3b969ce9b"
"4abd6ee3b969ce9b",
"d2e269a6af2dfb1c"
],
"x": 94,
"y": 319,
"w": 1532,
"w": 1692,
"h": 202
},
{
@ -708,7 +709,7 @@
"links": [
"206c1fb4a48067df"
],
"x": 1395,
"x": 1555,
"y": 420,
"wires": []
},
@ -795,8 +796,7 @@
"y": 420,
"wires": [
[
"85ac6855ecab60c4",
"1b1e4074f6d9749c"
"d2e269a6af2dfb1c"
]
]
},
@ -841,7 +841,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1240,
"x": 1400,
"y": 480,
"wires": [
[
@ -925,6 +925,20 @@
"pt": "msg",
"to": "scene.field",
"tot": "msg"
},
{
"t": "set",
"p": "old_topic",
"pt": "msg",
"to": "topic",
"tot": "msg"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "msg.bucket&msg.measurement&msg.field",
"tot": "jsonata"
}
],
"action": "",
@ -993,7 +1007,7 @@
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1450,
"x": 1610,
"y": 360,
"wires": []
},
@ -1011,7 +1025,7 @@
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1480,
"x": 1640,
"y": 480,
"wires": []
},
@ -5928,5 +5942,34 @@
"966f04b51561351a"
]
]
},
{
"id": "d2e269a6af2dfb1c",
"type": "change",
"z": "68ee181e9defa139",
"g": "9fed22b2831a8c22",
"name": "move",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "old_topic",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1430,
"y": 420,
"wires": [
[
"85ac6855ecab60c4",
"1b1e4074f6d9749c"
]
]
}
]

View file

@ -1094,25 +1094,17 @@
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "-1",
"t": "neq",
"v": "0",
"vt": "num"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"outputs": 1,
"x": 1930,
"y": 540,
"wires": [
[
"ada94e4f95af472a"
],
[
"ada94e4f95af472a"
]