2020-01-14 21:15:27 +00:00
|
|
|
- platform: template
|
|
|
|
switches:
|
|
|
|
|
|
|
|
desktop_wol:
|
|
|
|
value_template: "{{ is_state('binary_sensor.desktop_ping', 'on') }}"
|
|
|
|
turn_on:
|
|
|
|
service: shell_command.ssh
|
|
|
|
data:
|
|
|
|
sshkey: !secret sshkey_wakeonlan
|
|
|
|
host: !secret nas_ip
|
|
|
|
user: !secret nas_ssh_user
|
|
|
|
port: !secret nas_ssh_port
|
|
|
|
command_or_param: !secret desktop_mac
|
|
|
|
turn_off:
|
2020-07-12 00:06:15 +00:00
|
|
|
service: script.dummy
|
|
|
|
|
2021-03-21 17:41:41 +00:00
|
|
|
desktop_jenny_wol:
|
|
|
|
value_template: "{{ is_state('binary_sensor.desktop_jenny_ping', 'on') }}"
|
|
|
|
turn_on:
|
|
|
|
service: shell_command.ssh
|
|
|
|
data:
|
|
|
|
sshkey: !secret sshkey_wakeonlan
|
|
|
|
host: !secret nas_ip
|
|
|
|
user: !secret nas_ssh_user
|
|
|
|
port: !secret nas_ssh_port
|
|
|
|
command_or_param: !secret desktop_jenny_mac
|
|
|
|
turn_off:
|
|
|
|
service: script.dummy
|
|
|
|
|
2020-07-12 00:06:15 +00:00
|
|
|
onair_lamp_recording:
|
|
|
|
value_template: "{{ is_state('input_boolean.onair_lamp_recording', 'on') }}"
|
|
|
|
turn_on:
|
|
|
|
- service: input_boolean.turn_on
|
|
|
|
entity_id: input_boolean.onair_lamp_recording
|
|
|
|
turn_off:
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
entity_id: input_boolean.onair_lamp_recording
|