I’m stuck with a likely very easy problem. I have a command line switch to switch my computer on or off. The command_on is a “normal” command line, but now i want to change the command_off from a different command line to the using the core_rpc_shutdown addon. How can i make it so that both are one switch called rechner?
- platform: command_line
switches:
rechner:
friendly_name: 'Rechner'
command_on: 'some command line'
command_off: ?
that’s what i want to do as command_off:
turn_off:
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
input: Desktop
I think i need a template switch here, but i’m probably not seeing the forest for the trees.