Variable only changes once

Moderator: leecollings

Post Reply
blackeagle
Posts: 2
Joined: Saturday 05 February 2022 23:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Variable only changes once

Post by blackeagle »

Hi All,

I have created a blockly where if one of us is at home after sunset, the living room lights turn on.
Also added a variable to be able to turn off the light.
blockly.png
blockly.png (62.12 KiB) Viewed 934 times
When I start the variable with OFF, it does switch to ON.
But when the mobile phones disconnect (simulating leaving home) it does not go to the OFF state.
Variable.png
Variable.png (17.92 KiB) Viewed 934 times
Am I missing something in the blocks?
User avatar
madpatrick
Posts: 659
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Variable only changes once

Post by madpatrick »

Try remove the "iemand_thuis" = On on the ElseIf line
Basicly it doesn't matter which status this is having
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
blackeagle
Posts: 2
Joined: Saturday 05 February 2022 23:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Variable only changes once

Post by blackeagle »

The same result, when putting the variable manually to OFF, it switches once, then not anymore.
BennY
Posts: 24
Joined: Tuesday 27 February 2018 8:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Variable only changes once

Post by BennY »

Hi,

try it with the Green Label instead of the state On/Off.

At Logic, the Last Label with "()".

Benny
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest