Complete newbie here. Trying to get automations to work with a xiaomi wall switch to trigger a philips hue scene
Have codes setup here, but clicking trigger to test the scene don’t seem to do anything. I’d assume my trigger codes are wrong. Have also tried to switch the codes around where when scene is triggered, wall switch turns on. But no luck on that one either. So far I’ve only been successful in executing automations when its connected to a boolean trigger. Help is appreciated.
- action:
- data:
entityid: script.bedroom_reading
service: script.turn_on
alias: Reading auto test
condition: []
id: '1509307819703'
trigger:
- event_data:
entity_id: switch.wall_switch_left
state: 'on'
event_type: button_pressed
platform: event