First time Blocky

Moderator: leecollings

Post Reply
rdaben
Posts: 1
Joined: Monday 30 October 2017 11:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

First time Blocky

Post 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!
BlueMoon
Posts: 9
Joined: Tuesday 03 October 2017 21:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: First time Blocky

Post 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).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest