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.

Change brightness of a light only when it's on

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:

  • 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
In the flow to increase the brightness I've done this:

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

  • Nobody? :(
  • You'll need 7 flows I guess? And check for light is on in the when-column? Then it won't send 7 commands to the HUE. Or maybe use HUE scenes (don't have HUE myself)?
  • I think if I use 7 flows it will overflow my Hue bridge because of the amount of commands in a short time. Besides It won't set the brightness for all the lights at the same to so the transaction won't be that nice to see.

    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.
  • These 7 flows prevent Homey to send data to the bridge, that's why you need the condition "light is on" or "off". And 7 flows in itself is doable by Homey. To be honest, I thought this issue was dealt with long ago.
    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

  • bvdbos said:
    These 7 flows prevent Homey to send data to the bridge, that's why you need the condition "light is on" or "off". And 7 flows in itself is doable by Homey. To be honest, I thought this issue was dealt with long ago.
    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

    I tested a 7 flow system (lots of work!) and found out that I can only switch 3 or 4 lights at the same time. The other commands to the bridge are getting ignored.

    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..
Sign In or Register to comment.