Heisenberg wrote:I can't get this Blocky to work. The radio doesn't play but the lights do turn on. Can someone point me into the right direction?
Radio should work, just like the lights. But you should also include a check if the device is off. Otherwise Domoticz will keep sending the 'on' command to the Radio and LED kitchen light as long as the PIR is on.
Make it like this:
Code: Select all
IF PIRKitchen = On AND LED Kitchen Light = Off
DO SET LED Kitchen Light = On FOR 2 Minutes
ELSE IF Sensor cabinet = Open AND LED Cabinet = Off
DO SET LED Cabinet On FOR 1 minutes
This decreases CPU load and also pollution on the 433Mhz band (otherwise Domoticz will keep sending the 'On' commands like i said).
-------------------------------------------------------------------------------------------------------------------------------------
Smart event for Christmas tree
I created an event to control my christmas tree:
It can be found here:
https://tweakers.net/ext/f/Pa6OVCMLk0Vr ... E/full.png (too large to embed in this post

)
mirror:
http://i.imgur.com/kftAurC.png
What it does:
Turns the christmas tree on IF:
- There is someone home (based on this: http://www.domoticz.com/forum/viewtopic ... 100#p27521 )
AND
- Time between 06:20 and sunrise AND it is NOT saturday or sunday (we are sleeping longer in the weekend, waking up when it is already light)
OR - Time between sunset and 21:00 (If we come home after 21:00 it won't turn on)
The user variable is added so that the tree can be turned off by hand, otherwise it would turn on again directly after you have turned it off.
The piece with '>21:00' that is connected to the orange part is for turning the tree off when we go to bed (the two lights mentioned in that part are always on when it is evening and we are home).
Important:If you want to change the '21:00' you have to change it in all the places where it is used in the event. Otherwise the event will go into an endless loop (and the tree wil go *on* *off* *on* *off* *on* *off* *on* *off*)
The time can only be changed to times of the current day (so 23:59 works, but 00:01 not), otherwise Domoticz cannot understand the times in combination with the sunrise/sunset
The christmas tree will turn off if you leave home, or if it is dawn (light outside)
I am not active on this forum anymore.