I use this lua Script to controle blinds, I take the blinds bercentage value from dashboard and send it to my IPX800 via API.
Code: Select all
commandArray = {}
val= tonumber((otherdevices_svalues['Volet Salon TV']));
val1=101-val
if (devicechanged['Volet Salon TV'])
then
--then val= tonumber((otherdevices_svalues['VR']));
str= "http://192.168.1.152/api/xdevices.json?SetVR03="..val1
commandArray['OpenURL']= str
end
if devicechanged['Volet Salon TV'] == 'On' then
str1= "http://192.168.1.152/api/xdevices.json?SetVR03=0"
commandArray['OpenURL']= str1
end
if devicechanged['Volet Salon TV'] == 'Off' then
str1= "http://192.168.1.152/api/xdevices.json?SetVR03=100"
commandArray['OpenURL']= str1
end
return commandArray
http://ip:8080/json.htm?type=command&pa ... svalue=Off
it triggers the script and the blinds start moving again . its like a loop
So my question is : is there a way to change the cursor or (on/off) on my blinds icon without triggering the lua script related to it
Thank you