Page 1 of 1

Hue (AmbiEye) scene's

Posted: Tuesday 15 September 2015 22:32
by thecosmicgate
Playing around with this Windows tool /app. And found some cool and funny scene's like police (red-blue switching) .
Is there a way to implement some of this scene's ?
Or oneother way to let the Hue bulbs change color is different way's , for example slowly from yellow to orange to red and back ?

Re: Hue (AmbiEye) scene's

Posted: Thursday 17 September 2015 21:41
by thecosmicgate
Nobody ;-( ?

Re: Hue (AmbiEye) scene's

Posted: Wednesday 23 September 2015 10:37
by bbqkees
This not that difficult but you need to write some lua scripts.
There are a few examples here on the forum.

Re: Hue (AmbiEye) scene's

Posted: Wednesday 23 September 2015 12:45
by thecosmicgate
bbqkees wrote:This not that difficult but you need to write some lua scripts.
There are a few examples here on the forum.
Ok but LUA is not my specialism;-)
I already searched this forum but can't find the stuff i wass looking for

Re: Hue (AmbiEye) scene's

Posted: Saturday 10 October 2015 18:39
by thecosmicgate
Bbqkees: could you help me with the lua script / hyperlink ?

Re: Hue (AmbiEye) scene's

Posted: Thursday 03 December 2015 21:58
by thecosmicgate
To start I created some scene for some Hue bulbs. But is there a way to repeat scene's?
For example : Hue 1 : 22:00 red, 22:05 orange, 22:10 yellow, 22:15 green etc etc . the last one is 23:00 red and after this start again.
How can I do this ?

Sent from my MotoG3 using Tapatalk

Re: Hue (AmbiEye) scene's

Posted: Sunday 06 December 2015 13:37
by galadril
You could create scenes for your philips hue lamps and then call those scenes from Domoticz:

To get scene id's from your bridge:
http://IPOFBRIDGE/api/USERID/scenes

Then you can call a scene from a lua script:

Code: Select all

os.execute("curl --request PUT --data '{\"scene\": \"7d6d2328f-on-0\"}' http://IPOFBRIDGE/api/USERID/groups/1/action")
- 7d6d2328f-on-0 should be your scene id
- and ofcource you need to configure: POFBRIDGE and USERID

You could make a time base lua script and set different scenes every hour.


-------------------------------------------------------------------------------------------------------


I made a push on button called HueSunset (you could schedule that button on a fixed time). And a lua script that handles the action behind it:

Code: Select all

commandArray = {}

tc=next(devicechanged)
v=tostring(tc)

SunsetStatus = otherdevices['HueSunset']


if (v == 'HueSunset') and (otherdevices[v]   == 'On') then
print('Hue: ' .. v .. ': ' .. SunsetStatus );
os.execute("curl --request PUT --data '{\"scene\": \"5b753cdf2-on-0\"}' http://BRIDGEIP/api/USERID/groups/1/action")
end


return commandArray