Alexa, I’m using the “Home Assistant Cloud” with a paid subscription.
If you’re interested you can reduce the automation to this:
alias: Kettle
description: ""
trigger:
- platform: event
event_type: call_service
event_data:
domain: input_boolean
service_data:
entity_id: input_boolean.kettle
condition: []
action:
- delay: '00:00:0.5'
- service: "shell_command.kettle_{{ states('input_boolean.kettle') }}"
mode: single
It’s triggered by either an input_boolean.turn_on
or input_boolean.turn_off
service call event and then executes the appropriate shell_command
(kettle_on
or kettle _off
) based on current state of input_boolean.kettle
.