Hi Guys,
I have a simple 4 button scene controller up and runnning and connected to HASS. but I’m having some difficulty getting an automation working to trigger when I press a button.
I have the following automation which isn’t working, can anyone shed some light on it?
- alias: mqttbutton 1 short press
trigger:
platform: state
entity_id: sensor.scene_controller_11_95
condition:
platform: state
entity_id: sensor.scene_controller_11_95
state: '1'
action:
service: switch.turn_on
entity_id: switch.coffee_maker
- alias: mqttbutton one long press
trigger:
platform: state
entity_id: sensor.scene_controller_11_95
condition:
platform: state
entity_id: sensor.scene_controller_11_95
state: '5'
action:
service: switch.turn_off
entity_id: switch.coffee_maker