fix scene value

This commit is contained in:
JcDenis 2024-04-30 20:06:13 +02:00
parent faade3d6aa
commit 2ac574170a
5 changed files with 113 additions and 113 deletions

File diff suppressed because one or more lines are too long

View file

@ -5712,7 +5712,7 @@
"repair": false, "repair": false,
"outputs": 4, "outputs": 4,
"x": 790, "x": 790,
"y": 5040, "y": 5220,
"wires": [ "wires": [
[ [
"a91140dc661eacbf" "a91140dc661eacbf"
@ -5724,7 +5724,8 @@
"9817b8c4d33159f8" "9817b8c4d33159f8"
], ],
[ [
"fd900a26e130d2ff" "fd900a26e130d2ff",
"5a60da9d02342972"
] ]
] ]
}, },
@ -5805,7 +5806,7 @@
"to": "", "to": "",
"reg": false, "reg": false,
"x": 560, "x": 560,
"y": 5100, "y": 5280,
"wires": [ "wires": [
[ [
"03700a180e6f8f5b" "03700a180e6f8f5b"
@ -5834,7 +5835,7 @@
"repair": false, "repair": false,
"outputs": 2, "outputs": 2,
"x": 300, "x": 300,
"y": 5040, "y": 5220,
"wires": [ "wires": [
[ [
"03700a180e6f8f5b" "03700a180e6f8f5b"
@ -5988,7 +5989,7 @@
"name": "routine value", "name": "routine value",
"links": [], "links": [],
"x": 135, "x": 135,
"y": 5040, "y": 5220,
"wires": [ "wires": [
[ [
"3543fc558bdce918" "3543fc558bdce918"
@ -6039,7 +6040,7 @@
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 1030, "x": 1030,
"y": 5100, "y": 5280,
"wires": [] "wires": []
}, },
{ {
@ -6357,7 +6358,8 @@
"name": "routine timer out", "name": "routine timer out",
"mode": "link", "mode": "link",
"links": [ "links": [
"96f83c7e2e8a15cc" "96f83c7e2e8a15cc",
"3cc31621bae4b8f4"
], ],
"x": 1495, "x": 1495,
"y": 5400, "y": 5400,

View file

@ -47,6 +47,27 @@
"w": 7634, "w": 7634,
"h": 794 "h": 794
}, },
{
"id": "6c796c0f0a2e4a4b",
"type": "group",
"z": "f125f568d4e332ee",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"b45f1179a641d133",
"3df393955c61492b",
"7a47df709c00596e"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{ {
"id": "636790a6de6bdeca", "id": "636790a6de6bdeca",
"type": "group", "type": "group",
@ -251,27 +272,6 @@
"w": 782, "w": 782,
"h": 262 "h": 262
}, },
{
"id": "6c796c0f0a2e4a4b",
"type": "group",
"z": "f125f568d4e332ee",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"b45f1179a641d133",
"3df393955c61492b",
"7a47df709c00596e"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{ {
"id": "99fe787fc1aa2efe", "id": "99fe787fc1aa2efe",
"type": "change", "type": "change",
@ -3048,7 +3048,7 @@
"g": "6c796c0f0a2e4a4b", "g": "6c796c0f0a2e4a4b",
"name": "catch error", "name": "catch error",
"scope": null, "scope": null,
"uncaught": false, "uncaught": true,
"x": 620, "x": 620,
"y": 60, "y": 60,
"wires": [ "wires": [

View file

@ -109,6 +109,27 @@
"w": 1434, "w": 1434,
"h": 614 "h": 614
}, },
{
"id": "5766f83f3d113663",
"type": "group",
"z": "7dd036f831a5ca6e",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"b9f3c3bb40a8aac4",
"06ff43449dd81c02",
"d69c9016584d1fd3"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{ {
"id": "dc8c7c2aeeae4259", "id": "dc8c7c2aeeae4259",
"type": "group", "type": "group",
@ -152,7 +173,7 @@
"7d7b81b4f6fdbfe0", "7d7b81b4f6fdbfe0",
"61afa8c6a05d66c5", "61afa8c6a05d66c5",
"89b53294d8fbd82e", "89b53294d8fbd82e",
"762a244679952087" "a1daebcc0d70b88c"
], ],
"x": 694, "x": 694,
"y": 679, "y": 679,
@ -304,27 +325,6 @@
"w": 972, "w": 972,
"h": 82 "h": 82
}, },
{
"id": "5766f83f3d113663",
"type": "group",
"z": "7dd036f831a5ca6e",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"b9f3c3bb40a8aac4",
"06ff43449dd81c02",
"d69c9016584d1fd3"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{ {
"id": "18e1932e46a71274", "id": "18e1932e46a71274",
"type": "change", "type": "change",
@ -830,7 +830,7 @@
"y": 780, "y": 780,
"wires": [ "wires": [
[ [
"762a244679952087" "a1daebcc0d70b88c"
] ]
] ]
}, },
@ -841,13 +841,6 @@
"g": "1271496473181909", "g": "1271496473181909",
"name": "scene lighting / ceiling / dimmer", "name": "scene lighting / ceiling / dimmer",
"rules": [ "rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{ {
"t": "set", "t": "set",
"p": "scene.measurement", "p": "scene.measurement",
@ -915,18 +908,18 @@
"rules": [ "rules": [
{ {
"t": "eq", "t": "eq",
"v": "msg.bucket&'/aperture/door'", "v": "msg.scene.bucket&'/aperture/door'",
"vt": "jsonata" "vt": "jsonata"
}, },
{ {
"t": "regex", "t": "regex",
"v": "msg.bucket&'/motion'", "v": "msg.scene.bucket&'/motion'",
"vt": "jsonata", "vt": "jsonata",
"case": false "case": false
}, },
{ {
"t": "eq", "t": "eq",
"v": "msg.bucket&'/light/ceiling'", "v": "msg.scene.bucket&'/light/ceiling'",
"vt": "jsonata" "vt": "jsonata"
}, },
{ {
@ -1815,34 +1808,6 @@
] ]
] ]
}, },
{
"id": "762a244679952087",
"type": "change",
"z": "7dd036f831a5ca6e",
"g": "1271496473181909",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 870,
"y": 780,
"wires": [
[
"7d7b81b4f6fdbfe0"
]
]
},
{ {
"id": "b9f3c3bb40a8aac4", "id": "b9f3c3bb40a8aac4",
"type": "catch", "type": "catch",
@ -1900,5 +1865,33 @@
"x": 915, "x": 915,
"y": 60, "y": 60,
"wires": [] "wires": []
},
{
"id": "a1daebcc0d70b88c",
"type": "change",
"z": "7dd036f831a5ca6e",
"g": "1271496473181909",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 870,
"y": 780,
"wires": [
[
"7d7b81b4f6fdbfe0"
]
]
} }
] ]

View file

@ -312,6 +312,27 @@
"w": 2082, "w": 2082,
"h": 202 "h": 202
}, },
{
"id": "8661cca3effea007",
"type": "group",
"z": "677f66663a198839",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"64318333e0c24a2e",
"ccb5ea956a7da538",
"cff2ab3b56cd2174"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{ {
"id": "f8998acf5aadbdb9", "id": "f8998acf5aadbdb9",
"type": "group", "type": "group",
@ -622,27 +643,6 @@
"w": 1152, "w": 1152,
"h": 742 "h": 742
}, },
{
"id": "8661cca3effea007",
"type": "group",
"z": "677f66663a198839",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"64318333e0c24a2e",
"ccb5ea956a7da538",
"cff2ab3b56cd2174"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{ {
"id": "da2f54e055f1d1ac", "id": "da2f54e055f1d1ac",
"type": "change", "type": "change",
@ -5205,6 +5205,7 @@
"g": "57bf8eefe70206c0", "g": "57bf8eefe70206c0",
"name": "system - ui - timers", "name": "system - ui - timers",
"links": [ "links": [
"23ef9aaffb31c21d",
"94c79b8f52f0b6ba" "94c79b8f52f0b6ba"
], ],
"x": 135, "x": 135,
@ -5339,10 +5340,14 @@
"key": "topic", "key": "topic",
"joiner": "\\n", "joiner": "\\n",
"joinerType": "str", "joinerType": "str",
"accumulate": "false", "accumulate": true,
"timeout": "", "timeout": "",
"count": "", "count": "",
"reduceRight": false, "reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 1730, "x": 1730,
"y": 3060, "y": 3060,
"wires": [ "wires": [