Search found 8 matches

by easyherve
Wednesday 24 August 2016 17:27
Forum: Other questions and discussions
Topic: basic lua script not working
Replies: 15
Views: 3336

Re: basic lua script not working

Sure, when you know it, it is not even a topic ! but I didn't know that dash was not working into device name !
Thanks anyway for the advice ;)
by easyherve
Tuesday 23 August 2016 16:13
Forum: Other questions and discussions
Topic: basic lua script not working
Replies: 15
Views: 3336

Re: basic lua script not working

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 ...
by easyherve
Tuesday 23 August 2016 15:28
Forum: Other questions and discussions
Topic: basic lua script not working
Replies: 15
Views: 3336

Re: basic lua script not working

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 ...
by easyherve
Tuesday 23 August 2016 15:05
Forum: Other questions and discussions
Topic: basic lua script not working
Replies: 15
Views: 3336

Re: basic lua script not working

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 ...
by easyherve
Tuesday 23 August 2016 14:34
Forum: Other questions and discussions
Topic: basic lua script not working
Replies: 15
Views: 3336

Re: basic lua script not working

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 ...
by easyherve
Tuesday 23 August 2016 13:09
Forum: Other questions and discussions
Topic: basic lua script not working
Replies: 15
Views: 3336

Re: basic lua script not working

do you mean round(off) instead of off ?

If yes, I got an error message on the log "attempt to call global 'round' (a nil value)".
by easyherve
Tuesday 23 August 2016 12:18
Forum: Other questions and discussions
Topic: basic lua script not working
Replies: 15
Views: 3336

basic lua script not working

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 ...
by easyherve
Saturday 24 January 2015 18:45
Forum: PHP and all others
Topic: Venetian Blinds virtual switch
Replies: 6
Views: 4577

Venetian Blinds virtual switch

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 ...