Blockly examples

henk99
Posts: 11
Joined: Thursday 02 March 2017 12:36
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by henk99 » Monday 06 August 2018 16:00

Thanks for your quick response, will try this!

burton666
Posts: 104
Joined: Monday 17 August 2015 21:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Blockly examples

Post by burton666 » Monday 06 August 2018 19:28

I don't know if this has been answered already but I did not find it. What is the best way to create this scenario from using a motiondetector/PIR with a lamp.

1.When movement is detected lamp is turned on for 10 min.
2. if movement is detected when the lamp is on then the timer is reset to 10min again

Last time I tried I used the "set x = y after z seconds" and also "set x = y for z minutes" and I also tried using blocky to change a user variable from 0 to 1 in different ways. But none of them worked as expected. They always flicker when the previous timer ended even as the new timer where supposed to have started.

User avatar
EdddieN
Posts: 380
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: Blockly examples

Post by EdddieN » Saturday 11 August 2018 19:07

I think you may need to use some script for it... have you tried to trigger your event with a timer instead with a device? That way as far as the switch is ON it will keep resetting 10 minutes?
11101101 - www.machinon.com

User avatar
EdddieN
Posts: 380
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: Blockly examples

Post by EdddieN » Saturday 11 August 2018 19:08

Is it possible to trigger a shell script after X seconds via blockly?
11101101 - www.machinon.com

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests