Page 1 of 1

First time Blocky

Posted: Monday 30 October 2017 12:11
by rdaben
Hello all!

I want to make my first blocky, can someone help me?!

I have a KAKU APIR-2150 motion senor that i want to use to switch on an KAKU socket.

Switch on: before sunrise and after sunset
Time socket switched on: 5 minutes
I also want to switch the socket manual, so when it is switched on manual nothing should happen.

Thanks!

Re: First time Blocky

Posted: Monday 30 October 2017 12:57
by BlueMoon
So you listed al the conditions that must be met to switch on the socket: manual switch ON, time after Sunset, or before sunrise and motion detected. Did you try putting that in blockly for a start?

NB. Times in domoticz are 'reset' at midnight, so it can never be after sunset and before sunrise at the same time. The time is either before sunset (00:00 - sunrise) or after sunset (sunset - 23:59). You can combine condititions using AND and OR, where AND goes before OR (like * goes before + in math).