Change hue brightness

Moderator: leecollings

Post Reply
dennusb
Posts: 12
Joined: Thursday 23 October 2014 8:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Change hue brightness

Post by dennusb »

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?
commentator
Posts: 54
Joined: Thursday 23 June 2016 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Change hue brightness

Post by commentator »

Yes

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')
you can post these values:

sat
bri
hue

play a bit with them. Brightness is the parameter you're looking for
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest