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

View file

@ -47,6 +47,27 @@
"w": 7634,
"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",
"type": "group",
@ -251,27 +272,6 @@
"w": 782,
"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",
"type": "change",
@ -3048,7 +3048,7 @@
"g": "6c796c0f0a2e4a4b",
"name": "catch error",
"scope": null,
"uncaught": false,
"uncaught": true,
"x": 620,
"y": 60,
"wires": [

View file

@ -109,6 +109,27 @@
"w": 1434,
"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",
"type": "group",
@ -152,7 +173,7 @@
"7d7b81b4f6fdbfe0",
"61afa8c6a05d66c5",
"89b53294d8fbd82e",
"762a244679952087"
"a1daebcc0d70b88c"
],
"x": 694,
"y": 679,
@ -304,27 +325,6 @@
"w": 972,
"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",
"type": "change",
@ -830,7 +830,7 @@
"y": 780,
"wires": [
[
"762a244679952087"
"a1daebcc0d70b88c"
]
]
},
@ -841,13 +841,6 @@
"g": "1271496473181909",
"name": "scene lighting / ceiling / dimmer",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "scene.measurement",
@ -915,18 +908,18 @@
"rules": [
{
"t": "eq",
"v": "msg.bucket&'/aperture/door'",
"v": "msg.scene.bucket&'/aperture/door'",
"vt": "jsonata"
},
{
"t": "regex",
"v": "msg.bucket&'/motion'",
"v": "msg.scene.bucket&'/motion'",
"vt": "jsonata",
"case": false
},
{
"t": "eq",
"v": "msg.bucket&'/light/ceiling'",
"v": "msg.scene.bucket&'/light/ceiling'",
"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",
"type": "catch",
@ -1900,5 +1865,33 @@
"x": 915,
"y": 60,
"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,
"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",
"type": "group",
@ -622,27 +643,6 @@
"w": 1152,
"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",
"type": "change",
@ -5205,6 +5205,7 @@
"g": "57bf8eefe70206c0",
"name": "system - ui - timers",
"links": [
"23ef9aaffb31c21d",
"94c79b8f52f0b6ba"
],
"x": 135,
@ -5339,10 +5340,14 @@
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"accumulate": true,
"timeout": "",
"count": "",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 1730,
"y": 3060,
"wires": [