use percentage blinds as trigger signal
Posted: Saturday 29 September 2018 11:51
Newest Beta
Raspberry Pi2
ZStick
How can I use the percentage of my blinds as a trigger signal for Lua? elseif (otherdevices_svalues['kitchen left'] >= 'Set Level: 64 %' and sUV > 2) don't work. Tried with elseif (otherdevice_svalues['kitchen left'] >= 64 and sUV >2) without succeed.
With /json.htm?type=command¶m=switchlight&idx=99&switchcmd=Set%20Level&level=6
I can set the blind to differnt level. I assume I have to use something with level inside the script but I can't find the right code.
elseif (otherdevices['kitchen left'] == 'Closed' and sUV > 2) works.
Please can someone point me in the right direction.
Raspberry Pi2
ZStick
How can I use the percentage of my blinds as a trigger signal for Lua? elseif (otherdevices_svalues['kitchen left'] >= 'Set Level: 64 %' and sUV > 2) don't work. Tried with elseif (otherdevice_svalues['kitchen left'] >= 64 and sUV >2) without succeed.
With /json.htm?type=command¶m=switchlight&idx=99&switchcmd=Set%20Level&level=6
I can set the blind to differnt level. I assume I have to use something with level inside the script but I can't find the right code.
elseif (otherdevices['kitchen left'] == 'Closed' and sUV > 2) works.
Please can someone point me in the right direction.