home-automation-home-assistant/config/switches/misc.yaml

15 строки
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