Hi,
I have a bunch of Hue lights, and i turn them on and off with Lua scripts (working fine). But i would also like to be able to set the brightness per light, but i cannot find how to do that...
Is there a simple way to post the intensity of the light from a LUA script?
Change hue brightness
Moderator: leecollings
-
- Posts: 54
- Joined: Thursday 23 June 2016 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: NL
- Contact:
Re: Change hue brightness
Yes
you can post these values:
sat
bri
hue
play a bit with them. Brightness is the parameter you're looking for
Code: Select all
os.execute('curl -s -H "Accept: application/json" -X PUT --data \'{"on":true, "sat":'..sat..', "bri":'..bri..',"hue":'..hue..'}\' http://<huebridgeip>/api/<seedocumentatioontogettheapikeyhere>/lights/<device number in hue bridge eg 4/state')
sat
bri
hue
play a bit with them. Brightness is the parameter you're looking for
Who is online
Users browsing this forum: No registered users and 1 guest