I want to use it to light up my hall without switching the main light just for a few seconds when moving from one room to another.
So I added a PIR which should switch on and off the candle, but here I'm stuck. The PIR itself works and my intention was to use some kind of rules.
I tried using the SendToHTTP method to send (using the correct IP address or 127.0.0.1):
Code: Select all
on PIR#Switch=1 do
SendToHTTP 192.168.1.123,80,/control?cmd=CANDLE:3::60
endon
Code: Select all
http://192.168.1.123/control?cmd=CANDLE:3::60
Code: Select all
http://192.168.1.123/control?cmd=CANDLE:0::
Code: Select all
on PIR#Switch=1 do
TaskValueSet 1, 2, 60
TaskValueSet 1, 3, 3
endon
Code: Select all
8685794 : EVENT: PIR#Switch=0.00
8689731 : SW : State 1
8689731 : EVENT: PIR#Switch=1.00
8689736 : ACT : TaskValueSet 1, 2, 60
8689741 : ACT : TaskValueSet 1, 3, 3
So my question is: is this possible at all? Any suggestions how to do this? Or did I simply miss something?