I have what I believe is very simple automation. I have a helper input boolean which is set through a toggle switch on the dashboard and I want to switch on a plug based on that input boolean. The Yaml for the automation is below and when I run the automation, the plug switches on but the automation is never triggered by the input boolean. Can anyone suggest what I’m doing wrong?
alias: Someone Comes Home
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.someone_home
to: 'On'
condition: []
action:
- type: turn_on
device_id: 5446093d2e5896ceee8bcaf2a3b8ebe9
entity_id: switch.smart_plug_coffee_machine_on_off
domain: switch
mode: single