I need some help with this one. The flow works as intended, which is to dim the lights over a period, but when it exits and stops (when the light level is <10), it should also turn off the light, and it doesn’t do it. I’ve tried with both Hue and Ikea (Ikea paired through Zigbee), but nothing seems to work.
The flow is “accelerated” now so I can test it over a half minute, but then I remove the acceleration, it will dim the lights over a period of 30 minutes, which a small step every 30 seconds. The trigger is temporary so I can test the flow - normally it will be done at a specific time.
In my other flows these lights turn off, so I don’t think it’s something universal, but something about this particular flow.
Any help would be appreciated.
{
"Id": "1tnGnyIH9h1gJ14",
"ClassId": "hghuvzIj5l8ZHt2",
"Author": "espenh.no",
"Version": 0,
"CreatedAt": "2022-01-13T16:10:02.704337969+01:00",
"UpdatedAt": "2022-01-13T20:36:09.232103112+01:00",
"Name": "LR Lights dim",
"Group": "test flows",
"Description": "trigger to test flows",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "button",
"SuccessTransition": "2",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:flow/ad:1/sv:out_bin_switch/ad:1tnGnyIH9h1gJ14_0",
"Service": "out_bin_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": true,
"Timeout": 0,
"ValueFilter": {
"Value": "",
"ValueType": "bool"
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 124,
"y": 272
},
"TypeAlias": "Trigger"
},
{
"Id": "2",
"Type": "action",
"Label": "send response",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:flow/ad:1/sv:out_bin_switch/ad:1tnGnyIH9h1gJ14_0",
"Service": "out_bin_switch",
"ServiceInterface": "evt.binary.report",
"Config": {
"DefaultValue": {
"Value": "",
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 120,
"y": 456
},
"TypeAlias": "Action"
},
{
"Id": "3",
"Type": "set_variable",
"Label": "set global variable",
"SuccessTransition": "5",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": ""
},
"IsVariableInMemory": false,
"Name": "test trigger variable",
"UpdateGlobal": true,
"UpdateInputMsg": false
},
"Ui": {
"nodeType": "",
"x": 157,
"y": 619
},
"TypeAlias": "Set variable"
},
{
"Id": "5",
"Type": "loop",
"Label": "repeat 500 times",
"SuccessTransition": "6",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"EndValue": 500,
"SaveToVariable": false,
"StartValue": 0,
"Step": 1
},
"Ui": {
"nodeType": "",
"x": 179,
"y": 858
},
"TypeAlias": "Loop"
},
{
"Id": "6",
"Type": "transform",
"Label": "set level (remove 5*)",
"SuccessTransition": "7",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": "100-(5*loop_counter)",
"IsLVariableGlobal": false,
"IsRVariableGlobal": false,
"IsTargetVariableGlobal": true,
"IsTargetVariableInMemory": true,
"LVariableName": "",
"RValue": {
"Value": 0,
"ValueType": "int"
},
"RVariableName": "",
"Rtype": "var",
"TargetVariableName": "LR Dim mode",
"TargetVariableType": "int",
"Template": "",
"TransformType": "calc",
"ValueMapping": [],
"XPathMapping": []
},
"Ui": {
"nodeType": "",
"x": 794,
"y": 219
},
"TypeAlias": "Transform"
},
{
"Id": "7",
"Type": "action",
"Label": "LR window strip dim",
"SuccessTransition": "8",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:hue/ad:1/sv:out_lvl_switch/ad:l4_0",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": "",
"ValueType": "int"
},
"IsVariableGlobal": true,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "LR Dim mode",
"VariableType": "int",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 814,
"y": 369
},
"TypeAlias": "Action"
},
{
"Id": "8",
"Type": "if",
"Label": "check if at end of dim cycle",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "LR Dim mode",
"Operand": "gt",
"RightVariable": {
"Value": 10,
"ValueType": "int"
}
}
],
"FalseTransition": "",
"TrueTransition": "9"
},
"Ui": {
"nodeType": "",
"x": 815,
"y": 526
},
"TypeAlias": "If condition"
},
{
"Id": "9",
"Type": "wait",
"Label": "wait 1 seconds (change to 30 sec)",
"SuccessTransition": "5",
"TimeoutTransition": "",
"ErrorTransition": "10",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": 1000,
"Ui": {
"nodeType": "",
"x": 818,
"y": 667
},
"TypeAlias": "Delay"
},
{
"Id": "10",
"Type": "action",
"Label": "turn lights off",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:hue/ad:1/sv:out_lvl_switch/ad:l4_0",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"DefaultValue": {
"Value": false,
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 872,
"y": 848
},
"TypeAlias": "Action"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "keep_last"
}