Page 1 of 1

Kaku receiver only during specific time schedule

Posted: Thursday 14 January 2021 15:46
by svdhaar
Hi,!

I have a couple of kaku receivers. i also use kaku to control my garden lights.
i have a apir2150 (pir) which turns on the gardenlights during nighttime when it detects movement (outside).
And i use a 433mhz receiver to control my kaku.

I have a ip cam which makes snapshots (via Domoitcz) if any movement is detected by the same Apir 2150.

Current setup is working good, but only during darkness, because i don't want my gardenlights on during the day.

is it possible to setup a schedule somehow in domo that the kaku gardelight receiver only accepts the Kaku signal during a schedule?

If thats possible i could setup the kaku pir sensor so that it will detect movement during day and night. So it also makes a snapshot during daytime.But it doesn't turn on the garderlight.

Any body an idea?

Re: Kaku receiver only during specific time schedule

Posted: Thursday 14 January 2021 15:56
by najtram
Create a dummy switch, name example "motion garden"
Use Blockly to set this dummy switch to on
if motion is detected and "motion garden" is off
⮑ set "motion garden" is on

You then could create an extra "Daytime" dummy switch which is switched when sunrise/sunset. (timer in the dummy)
Then build your actions on top of this based on these extra dummy's

if daytime is on and motion garden is on
then ....
else if
if daytime is off an motion garden is on
then...


https://www.domoticz.com/wiki/Dummy_for ... l_Switches
https://www.domoticz.com/wiki/Blockly

Re: Kaku receiver only during specific time schedule

Posted: Thursday 14 January 2021 17:23
by svdhaar
najtram wrote: Thursday 14 January 2021 15:56 Create a dummy switch, name example "motion garden"
Use Blockly to set this dummy switch to on
if motion is detected and "motion garden" is off
⮑ set "motion garden" is on

You then could create an extra "Daytime" dummy switch which is switched when sunrise/sunset. (timer in the dummy)
Then build your actions on top of this based on these extra dummy's

if daytime is on and motion garden is on
then ....
else if
if daytime is off an motion garden is on
then...


https://www.domoticz.com/wiki/Dummy_for ... l_Switches
https://www.domoticz.com/wiki/Blockly
Thx for the tip!
one question, the blockly script doesn't react on the kaku motionsensor.
I have a script which makes snapshots when the sensor is activated. Thats works good.
i have made a simple blockly script = when sensor is on set other light on.
But that doesn't do anything.

Re: Kaku receiver only during specific time schedule

Posted: Friday 15 January 2021 11:16
by svdhaar
Don't know why, but suddenly it started to react on my motion sensor. Blockly script is created and working like a charm :-)