This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
homeassistant-config/packages/nas/wol.yaml
darthsandmann e46c7eadab Cleanup
2022-08-09 11:21:13 +02:00

27 lines
740 B
YAML

## -------------------------------------------------------------------------------------------------##
## NAS - Wake on Lan
## -------------------------------------------------------------------------------------------------##
wake_on_lan:
switch:
- platform: wake_on_lan
mac: 54:04:A6:BF:1E:43
name: Server
host: ip.wnsrt.de
- platform: template
switches:
server_template:
friendly_name: Server
value_template: "{{ is_state('device_tracker.nas', 'home') }}"
icon_template: mdi:desktop-tower
turn_on:
service: switch.turn_on
target:
entity_id: switch.server
turn_off:
device_tracker:
- platform: ping
hosts:
nas: 192.168.178.81