Sonoff button and Philips hue

Hey guys. I have a sonoff snzb-01P smart button and would like to use it to turn on and off my Philips hue bulbs in the bathroom. Is that possible with home assistant? I got both the hue bulbs and smart button added in HA but i cant seem to figure out how to get the button to control the hue lights. I made a script and when i press “Run script” in HA it works. But when i press the button nothing happens.

You need to make an automation.

I did that now. And it still doesn’t work.

What exactly doesn’t work?

  • Is the automation never triggered?
  • Is it triggered but fails to toggle the lights?

Check the automation’s trace.

  • If it has no traces it means it was never triggered.
  • If it has traces, examine them to learn what happened.

Troubleshooting automations