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", "633e93007ad7359e",
"f57a3d0eaf07945a", "f57a3d0eaf07945a",
"85ac6855ecab60c4", "85ac6855ecab60c4",
"4abd6ee3b969ce9b" "4abd6ee3b969ce9b",
"d2e269a6af2dfb1c"
], ],
"x": 94, "x": 94,
"y": 319, "y": 319,
"w": 1532, "w": 1692,
"h": 202 "h": 202
}, },
{ {
@ -708,7 +709,7 @@
"links": [ "links": [
"206c1fb4a48067df" "206c1fb4a48067df"
], ],
"x": 1395, "x": 1555,
"y": 420, "y": 420,
"wires": [] "wires": []
}, },
@ -795,8 +796,7 @@
"y": 420, "y": 420,
"wires": [ "wires": [
[ [
"85ac6855ecab60c4", "d2e269a6af2dfb1c"
"1b1e4074f6d9749c"
] ]
] ]
}, },
@ -841,7 +841,7 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 1240, "x": 1400,
"y": 480, "y": 480,
"wires": [ "wires": [
[ [
@ -925,6 +925,20 @@
"pt": "msg", "pt": "msg",
"to": "scene.field", "to": "scene.field",
"tot": "msg" "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": "", "action": "",
@ -993,7 +1007,7 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 1450, "x": 1610,
"y": 360, "y": 360,
"wires": [] "wires": []
}, },
@ -1011,7 +1025,7 @@
"targetType": "msg", "targetType": "msg",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 1480, "x": 1640,
"y": 480, "y": 480,
"wires": [] "wires": []
}, },
@ -5928,5 +5942,34 @@
"966f04b51561351a" "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", "propertyType": "msg",
"rules": [ "rules": [
{ {
"t": "eq", "t": "neq",
"v": "1", "v": "0",
"vt": "num"
},
{
"t": "eq",
"v": "-1",
"vt": "num" "vt": "num"
} }
], ],
"checkall": "false", "checkall": "false",
"repair": false, "repair": false,
"outputs": 2, "outputs": 1,
"x": 1930, "x": 1930,
"y": 540, "y": 540,
"wires": [ "wires": [
[
"ada94e4f95af472a"
],
[ [
"ada94e4f95af472a" "ada94e4f95af472a"
] ]