Hi Guys,
I’m simply trying to use a sonoff button as a lightswitch to toggle my bedroom light. I’ve tried creating the automation using this code which has worked for someone else in another post:
trigger:
- platform: state
entity_id: sensor.sonoff_a48004a098
to: 'single'
But I simply can’t get anything to happen even though the event is logged when listening.
Any help is appreciated.