I finally found the issue ! it can be consider like a bug ! Unfortunatly, all my devices are named with a dash to separate names like BTN-Test. And caracter dash into the function otherdevices['BTN-Test'] doesn't work ! so I renamed BTN-Test by BTN_Test and everything goes fine ! I am glad I found ...
Actually, state of the device is off : Idx Name Current state Last updated sValues 1 SW-Lampe-Salle Off 2016-08-22 21:59:29 99 2 SW-Prise-Free Off 2016-08-23 15:24:16 0 3 SW-Leds-Cuisine Off 2016-08-22 21:59:29 99 4 SW-Leds-Salon Off 2016-08-22 21:59:29 99 5 SW-Portail Off 2016-08-22 21:08:04 0 but ...
I just checked without bracket and got the same result. It is a real switch device (everspring AN157) that works perfectly. Moreover, this device is not used into blocky or whatever, it is my "free" device. By the way, I checked with a virtual switch and got the same result ! This is a script I ...
Hum, now both test are false .. then nothing recorded into the log except LUA:script 1! It makes me crazy because SW_Prise_Free is a real plug device (means a boolean data) ! it is exactly what I wrote : commandArray = {} print('script 1') if (otherdevices['SW_Prise_Free'] == 'Off') then print('OFF ...
Hello, I really need help to understand why my BASIC LUA script is not working well. commandArray = {} if (otherdevices['BTN_Test'] == Off) then print('OFF') end if (otherdevices['BTN_Test'] == On) then print('ON') end return commandArray I see on the LOG that the 2 tests are true !!! not ...
I am using venetian blind as a virtual switch and as this device has 3 function button (Open, Stop, Close), I am looking to read the "STOP" event button into blocky (Open and Close event are ok). - Open state = On - Close state = Off - Stop state = ??? I don't know which logic value I should write ...