I am trying to make a scene in LUA where I can dim my Hue bulbs.
I have a Sunricher 4ch switch, which I have created scenes for turnOn and turnOff Hue bulbs, and it works nicely, as in the picture below:
I want to make a new scene, where the button´s HELD DOWN function should utilize dimming of the Hue bulb.
I have tested some commands from the Hue Developer API, and found out that if I "PUT" the below command to the Hue-bulb, it increases the saturation with 1 for each time I press "PUT".
Is it possible to make a repeat loop / while loop or similar that sends this command? I know this is not the LUA API, it is in the REST API.
I can not quite see how to send similar commands in LUA, unless there is a way to make a repeat loop that takes the saturation value and adds "1" e.g. each 10 millisecond while the switch is in HELD DOWN state?
Question
espen_th 0
Hello!
I am trying to make a scene in LUA where I can dim my Hue bulbs.
I have a Sunricher 4ch switch, which I have created scenes for turnOn and turnOff Hue bulbs, and it works nicely, as in the picture below:
I want to make a new scene, where the button´s HELD DOWN function should utilize dimming of the Hue bulb.
I have tested some commands from the Hue Developer API, and found out that if I "PUT" the below command to the Hue-bulb, it increases the saturation with 1 for each time I press "PUT".
Is it possible to make a repeat loop / while loop or similar that sends this command? I know this is not the LUA API, it is in the REST API.
I can not quite see how to send similar commands in LUA, unless there is a way to make a repeat loop that takes the saturation value and adds "1" e.g. each 10 millisecond while the switch is in HELD DOWN state?
Link to post
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.