Hey everyone, I’m trying to set up a simple automation with my Hue lights using Alexa, but I’m running into a bit of a snag. I’ve created an automation in HA where I can toggle the lights on and off using a button, but the button’s color doesn’t change to reflect the current state of the lights. This makes it a bit confusing because I can’t tell if the lights are on or off just by looking at the button.
I’ve looked into using call-service to trigger the automation, but I’m not sure if that’s the right approach. When I try it, the lights do turn on and off, but the button doesn’t update its state. I’ve also tried adjusting the brightness, but that only works when I set the action to ‘turn on’ instead of ‘toggle’.
Is there a way to make the button reflect the current state of the lights? Maybe by using a different service or adding some conditional logic to check if the lights are already on or off before toggling them? Any advice would be greatly appreciated!
Also, if anyone has tips on how to set the brightness precisely when toggling, that would be super helpful too. I want to make sure the lights come on at the exact brightness I prefer without having to adjust them manually every time.