Search found 5 matches

by jautem
Wednesday 27 January 2016 14:44
Forum: Switches and Scenes
Topic: Action On parameter dimmer level
Replies: 6
Views: 4810

Re: Action On parameter dimmer level

This is solved now !! , here the final script working fine : commandArray = {} if (devicechanged['Cuisine_Led'] ) then if (otherdevices['Cuisine_Led'] == 'Set Level') then commandArray['OpenURL']="127.0.0.1/cuisine.php?code=Dim&level=" .. otherdevices_svalues['Cuisine_Led'] print('Level ...
by jautem
Wednesday 27 January 2016 12:22
Forum: Switches and Scenes
Topic: How to generate a short (1 second) negative pulse
Replies: 4
Views: 1315

Re: How to generate a short (1 second) negative pulse

so perhaps fork another script like shell in lua source script , and shell script will sleep and use api to finish job ?
by jautem
Wednesday 27 January 2016 12:20
Forum: Switches and Scenes
Topic: Action On parameter dimmer level
Replies: 6
Views: 4810

Re: Action On parameter dimmer level

thanks to you for answer , it's a good alternative if gui don't permit de retrieve level value.

But the property level is empty , in gui i got " Set Level: 53 %, Level: 53 %" , but in otherdevices_svalues['Cuisine_Led'] , printed in debug i got zero ??!!!

Do you have an idea ?
by jautem
Tuesday 26 January 2016 23:22
Forum: Switches and Scenes
Topic: How to generate a short (1 second) negative pulse
Replies: 4
Views: 1315

Re: How to generate a short (1 second) negative pulse

can you use sleep function in lua script , turn off , sleep 3 et turn back on ?
by jautem
Tuesday 26 January 2016 22:30
Forum: Switches and Scenes
Topic: Action On parameter dimmer level
Replies: 6
Views: 4810

Action On parameter dimmer level

Hye, Does somebody knows if i can retrieve the level of a dummy dimmable switch to inject into ACTION ON URL , when i move the slider of the switch, this command is executed : /cuisine.php?code=On , and i want to add the percent level to my URL , something like that : &level=[level] ?! Is there some ...