This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Change brightness of a light only when it's on
Bvelleko
Member
I have 7 lights in my living room that I want to control trough Homey with a Logitech Harmony remote.
I use these apps for that:
When this flow is triggered
And Diner E is turn on
Then
math (current dim level) + 0.05 > Diner E (better logic)
math round(Diner E ,2) > Diner E
set brightness Diner E
I'm trying to find a way to do this:
* When a light is on and I trigger this flow Homey will change the brightness by 5%
And of course do nothing when I light is not on to prevent turning it on by changing the brightness.
With this flow I already found a way to get the current brightness value and calculate the new value but not the if the light is on for all the lights.
What I can't figure out is how to handle a 'if the light is on' without having to run for every light a separate flow. I don't want that because it will run 7 flows at the same time and send 7 commands to my Hue bridge.
Can anybody help me figuring something out to add that?
I use these apps for that:
- Philips Hue - To control the lights
- Better Logic - To do the calculations for me
- Samsung TV IR- To let Homey receive signals from my remote
When this flow is triggered
And Diner E is turn on
Then
math (current dim level) + 0.05 > Diner E (better logic)
math round(Diner E ,2) > Diner E
set brightness Diner E
I'm trying to find a way to do this:
* When a light is on and I trigger this flow Homey will change the brightness by 5%
And of course do nothing when I light is not on to prevent turning it on by changing the brightness.
With this flow I already found a way to get the current brightness value and calculate the new value but not the if the light is on for all the lights.
What I can't figure out is how to handle a 'if the light is on' without having to run for every light a separate flow. I don't want that because it will run 7 flows at the same time and send 7 commands to my Hue bridge.
Can anybody help me figuring something out to add that?
Comments
The Hue scenes are presets for a room, there's no way to make a preset that changes a little thing about your current situation.
There must be a way! I'm sure of that. Somebody must have had the same issue as me now because changing brightness is a little obvious to do with your setup.
https://github.com/athombv/homey/issues/934#issuecomment-277711659
https://github.com/athombv/homey/issues/1345
What Homey-FW and HUE-app-version are you on? Could you file an error-report on
https://github.com/athombv/nl.philips.hue/issues
Because I did create the flows now I'm no longer depending on whether a light is on or off but still I can't switch all my lights at the same time.
I think that controlling groups of lights in the Hue app would be the only way to successfully change the settings of multiple lights without losing data or time.
So if a flow is triggered then set brightness of group A to 40% where group A has 5 lights in there. And use all the other cards that the app supports now for individual lights.
It is a little weird that the Philips app doesn't support a simple way to control the brightness in a room..