I now did an update of my hub, and guess what - all the variables that I used a lot of time identifying before my holidays is now gone from the flows that controls my screens. I cannot see that there is any logic to this, and I’d be very surprised if I am the only one having this problem.
Any thoughts are highly appreciated!
Below I have included the flow and code controlling the screens.
{
"Id": "rQ3kA18vWG71MYU",
"ClassId": "rQ3kA18vWG71MYU",
"Author": "",
"Version": 0,
"CreatedAt": "2022-04-25T22:07:03.909752573+02:00",
"UpdatedAt": "2022-07-22T20:09:31.540397442+02:00",
"Name": "Screens sørvegg",
"Group": "Screens",
"Description": "",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "Lyssensor sørvegg",
"SuccessTransition": "2",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:hue/ad:1/sv:sensor_lumin/ad:s233_0",
"Service": "sensor_lumin",
"ServiceInterface": "evt.sensor.report",
"Config": {
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": "",
"ValueType": "float"
},
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 384,
"y": 32
},
"TypeAlias": "Trigger",
"LastValue": "33100 Lux"
},
{
"Id": "2",
"Type": "iftime",
"Label": "09:00 - 20:00 hver dag",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"Action": "a",
"From": "09:00",
"To": "20:00",
"Weekday": "1"
},
{
"Action": "a",
"From": "09:00",
"To": "20:00",
"Weekday": "2"
},
{
"Action": "a",
"From": "09:00",
"To": "20:00",
"Weekday": "3"
},
{
"Action": "a",
"From": "09:00",
"To": "20:00",
"Weekday": "4"
},
{
"Action": "a",
"From": "09:00",
"To": "21:00",
"Weekday": "5"
},
{
"Action": "a",
"From": "09:00",
"To": "20:00",
"Weekday": "6"
},
{
"Action": "a",
"From": "09:00",
"To": "20:00",
"Weekday": "0"
}
]
},
"Ui": {
"nodeType": "",
"x": 379,
"y": 206
},
"TypeAlias": "Time filter"
},
{
"Id": "3",
"Type": "if",
"Label": "Lux > 45 000",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "gt",
"RightVariable": {
"Value": 45000,
"ValueType": "int"
}
}
],
"FalseTransition": "4",
"TrueTransition": "5"
},
"Ui": {
"nodeType": "",
"x": 136,
"y": 381
},
"TypeAlias": "If condition"
},
{
"Id": "4",
"Type": "if",
"Label": "Lux < 41 000",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "lt",
"RightVariable": {
"Value": 41000,
"ValueType": "int"
}
}
],
"FalseTransition": "",
"TrueTransition": "26"
},
"Ui": {
"nodeType": "",
"x": 1219,
"y": 380
},
"TypeAlias": "If condition"
},
{
"Id": "5",
"Type": "if",
"Label": "Screen kjøkken ikke helt nede",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:50_1",
"Operand": "gt",
"RightVariable": {
"Value": 5,
"ValueType": "int"
}
}
],
"FalseTransition": "8",
"TrueTransition": "6"
},
"Ui": {
"nodeType": "",
"x": 132,
"y": 584
},
"TypeAlias": "If condition"
},
{
"Id": "6",
"Type": "action",
"Label": "Screen kjøkken ned",
"SuccessTransition": "7",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:50_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 135,
"y": 735
},
"TypeAlias": "Action"
},
{
"Id": "7",
"Type": "action",
"Label": "Screen kjøkken gikk ned pga høy lux",
"SuccessTransition": "8",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen kjøkken gikk ned pga høy lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 133,
"y": 886
},
"TypeAlias": "Timeline"
},
{
"Id": "8",
"Type": "if",
"Label": "Screen verandadør ikke helt nede",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:57_1",
"Operand": "gt",
"RightVariable": {
"Value": 5,
"ValueType": "int"
}
}
],
"FalseTransition": "10",
"TrueTransition": "13"
},
"Ui": {
"nodeType": "",
"x": 361,
"y": 585
},
"TypeAlias": "If condition"
},
{
"Id": "9",
"Type": "if",
"Label": "Screen hovedsoverom ikke helt nede",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:54_1",
"Operand": "gt",
"RightVariable": {
"Value": 5,
"ValueType": "int"
}
}
],
"FalseTransition": "",
"TrueTransition": "11"
},
"Ui": {
"nodeType": "",
"x": 813,
"y": 587
},
"TypeAlias": "If condition"
},
{
"Id": "10",
"Type": "if",
"Label": "Screen stue ikke helt nede",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:52_1",
"Operand": "gt",
"RightVariable": {
"Value": 5,
"ValueType": "int"
}
}
],
"FalseTransition": "9",
"TrueTransition": "12"
},
"Ui": {
"nodeType": "",
"x": 587,
"y": 568
},
"TypeAlias": "If condition"
},
{
"Id": "11",
"Type": "action",
"Label": "Screen hovedsoverom ned",
"SuccessTransition": "14",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:54_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 814,
"y": 740
},
"TypeAlias": "Action"
},
{
"Id": "12",
"Type": "action",
"Label": "Screen stue ned",
"SuccessTransition": "15",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:52_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 589,
"y": 739
},
"TypeAlias": "Action"
},
{
"Id": "13",
"Type": "action",
"Label": "Screen verandadør ned",
"SuccessTransition": "16",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:57_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 362,
"y": 735
},
"TypeAlias": "Action"
},
{
"Id": "14",
"Type": "action",
"Label": "Screen hovedsoverom gikk ned pga høy lux",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen hovedsoverom gikk ned pga høy lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 820,
"y": 892
},
"TypeAlias": "Timeline"
},
{
"Id": "15",
"Type": "action",
"Label": "Screen stue gikk ned pga høy lux",
"SuccessTransition": "9",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen stue gikk ned pga høy lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 591,
"y": 889
},
"TypeAlias": "Timeline"
},
{
"Id": "16",
"Type": "action",
"Label": "Screen verandadør gikk ned pga høy lux",
"SuccessTransition": "10",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen verandadør gikk ned pga høy lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 362,
"y": 890
},
"TypeAlias": "Timeline"
},
{
"Id": "17",
"Type": "if",
"Label": "Screen hovedsoverom ikke helt oppe",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:54_1",
"Operand": "lt",
"RightVariable": {
"Value": 95,
"ValueType": "int"
}
}
],
"FalseTransition": "",
"TrueTransition": "18"
},
"Ui": {
"nodeType": "",
"x": 1952,
"y": 564
},
"TypeAlias": "If condition"
},
{
"Id": "18",
"Type": "action",
"Label": "Screen hovedsoverom opp",
"SuccessTransition": "19",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:54_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 100,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 1950,
"y": 723
},
"TypeAlias": "Action"
},
{
"Id": "19",
"Type": "action",
"Label": "Screen hovedsoverom gikk opp pga lav lux",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen hovedsoverom gikk opp pga lav lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 1951,
"y": 886
},
"TypeAlias": "Timeline"
},
{
"Id": "20",
"Type": "if",
"Label": "Screen stue ikke helt oppe",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:52_1",
"Operand": "lt",
"RightVariable": {
"Value": 95,
"ValueType": "int"
}
}
],
"FalseTransition": "17",
"TrueTransition": "21"
},
"Ui": {
"nodeType": "",
"x": 1709,
"y": 552
},
"TypeAlias": "If condition"
},
{
"Id": "21",
"Type": "action",
"Label": "Screen stue opp",
"SuccessTransition": "22",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:52_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 100,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 1714,
"y": 724
},
"TypeAlias": "Action"
},
{
"Id": "22",
"Type": "action",
"Label": "Screen stue gikk opp pga lav lux",
"SuccessTransition": "17",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen stue gikk opp pga lav lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 1719,
"y": 894
},
"TypeAlias": "Timeline"
},
{
"Id": "23",
"Type": "if",
"Label": "Screen verandadør ikke helt oppe",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:57_1",
"Operand": "lt",
"RightVariable": {
"Value": 95,
"ValueType": "int"
}
}
],
"FalseTransition": "20",
"TrueTransition": "24"
},
"Ui": {
"nodeType": "",
"x": 1460,
"y": 572
},
"TypeAlias": "If condition"
},
{
"Id": "24",
"Type": "action",
"Label": "Screen verandadør opp",
"SuccessTransition": "25",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:57_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 100,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 1459,
"y": 732
},
"TypeAlias": "Action"
},
{
"Id": "25",
"Type": "action",
"Label": "Screen verandadør gikk opp pga lav lux",
"SuccessTransition": "20",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen verandadør gikk opp pga lav lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 1464,
"y": 898
},
"TypeAlias": "Timeline"
},
{
"Id": "26",
"Type": "if",
"Label": "Screen kjøkken ikke helt oppe",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "lvl@rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:50_1",
"Operand": "lt",
"RightVariable": {
"Value": 95,
"ValueType": "int"
}
}
],
"FalseTransition": "23",
"TrueTransition": "27"
},
"Ui": {
"nodeType": "",
"x": 1224,
"y": 572
},
"TypeAlias": "If condition"
},
{
"Id": "27",
"Type": "action",
"Label": "Screen kjøkken opp",
"SuccessTransition": "28",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:50_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 100,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 1227,
"y": 732
},
"TypeAlias": "Action"
},
{
"Id": "28",
"Type": "action",
"Label": "Screen kjøkken gikk opp pga lav lux",
"SuccessTransition": "23",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
"Service": "time_owl",
"ServiceInterface": "cmd.timeline.set",
"Config": {
"DefaultValue": {
"Value": {
"message_en": "Screen kjøkken gikk opp pga lav lux",
"message_no": "-",
"sender": "flow"
},
"ValueType": "str_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "timeline_action",
"x": 1231,
"y": 899
},
"TypeAlias": "Timeline"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "keep_last"
}