Hi, I've made a blockly test script to turn on a light when a motion sensor is triggered (Aeon multisensor 6) but when it's turned on it immediately turns off again. This is happening every minute.
When the motion sensor is triggered its state becomes on and after 4 minutes it becomes off.
So I can't explain the on/off behaviour as mentioned above.
Small piece of logging:
This doesn't really turns on/off a light, but writes to the logging for testing purposes.
Licht moet aan obv beweging = Light has to turn on because of movement
Licht moet uit = Light has to turn off
Any help would be greatly appreciated.
Blockly switching on/off/on/off
Moderator: leecollings
-
tozzke
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: Blockly switching on/off/on/off
If I recreate your blockly with dummy switches, it also reacts as you mention.
If I change it to:

it works as expected

a workaround which might help you
If I change it to:

it works as expected

a workaround which might help you
-
Toolman
- Posts: 23
- Joined: Monday 04 July 2016 23:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.8805
- Location: Netherlands
- Contact:
Re: Blockly switching on/off/on/off
Tozzke,
Thanks for the workaround. I'll try that later on (no time right now
) and will use it for the "real" version.
Problem solved I think.
Still weird that my solution does show that strange behaviour.
Thanks for the workaround. I'll try that later on (no time right now
Problem solved I think.
Still weird that my solution does show that strange behaviour.
-
Toolman
- Posts: 23
- Joined: Monday 04 July 2016 23:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.8805
- Location: Netherlands
- Contact:
Re: Blockly switching on/off/on/off
Update: the solution of Tozzke works like a charm
-
tozzke
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: Blockly switching on/off/on/off
I'm reading more issues regarding the nested If-statements lately, so I'm avoiding those 
Also I don't believe they were even possible when I started with Blockly, so I taught myself a way to make them without nested If-statements
Also I don't believe they were even possible when I started with Blockly, so I taught myself a way to make them without nested If-statements
Who is online
Users browsing this forum: No registered users and 1 guest