15 řádky
431 B
YAML
15 řádky
431 B
YAML
|
- 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:
|
||
|
service: script.dummy
|