Setting up server commands to control lights

More
2 years 5 months ago #980 by Fattykidd
I'm setting up my hue lights and it appears as though when you try to activate a scene it turns all lights in the house to that scene. 
Also the "toggle" command only turns lights on, you need to send an "off" command as the "toggle" does not shut them down ? 
I'm trying to figure out how to "toggle" a group as well. Seems to only allow toggling of "dimmers" and "scenes". 

If I could set it to toggle a group, it would be able to include the 4 "dimmers" in my theater and a corresponding "scene". Is this possible ? 
 

Please Log in to join the conversation.

More
2 years 5 months ago #1012 by davep
The groups you have defined in the Hue hub should be imported. They'll appear as devices with device addresses starting with G. They should respond to the On, Off and Toggle commands.

If there are no groups you could create a macro to logically group individual lights.

LivingRoomLights is

Macro|
Lighting|1~<p1>!
Lighting|2~<p1>!
Lighting|3~<p1>!

Then  LivingRoomLights|On  or LivingRoomLights|Off or LivingRoomLights|Toggle


 

Please Log in to join the conversation.

More
2 years 5 months ago #1016 by Fattykidd
Replied by Fattykidd on topic Setting up server commands to control lights

The groups you have defined in the Hue hub should be imported. They'll appear as devices with device addresses starting with G. They should respond to the On, Off and Toggle commands.

If there are no groups you could create a macro to logically group individual lights.

LivingRoomLights is

Macro|
Lighting|1~<p1>!
Lighting|2~<p1>!
Lighting|3~<p1>!

Then  LivingRoomLights|On  or LivingRoomLights|Off or LivingRoomLights|Toggle



 
Works perfectly when you manually enter the correct id number for the "group", I didn't even think about that. For some reason I thought it could only be one of the listed device targets. 

 

Please Log in to join the conversation.

More
2 years 5 months ago #1084 by Fattykidd
Replied by Fattykidd on topic Setting up server commands to control lights
What is the correct way to add hue lights to the "sources" and "sources in rooms" pages. 
I created a couple sources for different lighting groups in my house. 
The server does not make an activate macro for them though and I'm lost as to how to do this. 

Then how do you make an entry on the index.html page to then point to the lighting.html page. 

​​​​​​
​​​​​

Please Log in to join the conversation.

More
2 years 5 months ago #1087 by David Li
Replied by David Li on topic Setting up server commands to control lights

What is the correct way to add hue lights to the "sources" and "sources in rooms" pages. 
I created a couple sources for different lighting groups in my house. 
The server does not make an activate macro for them though and I'm lost as to how to do this. 

Then how do you make an entry on the index.html page to then point to the lighting.html page. 

​​​​​​
​​​​​
allonis.com/support/documentation?view=category&id=419
You can add the new webpage similar to how the Weather webpage is added.
The following user(s) said Thank You: Fattykidd

Please Log in to join the conversation.

More
2 years 5 months ago #1093 by Fattykidd
Replied by Fattykidd on topic Setting up server commands to control lights
Thank you David. 
Will make an attempt this evening. 

Please Log in to join the conversation.

Time to create page: 0.196 seconds