27 lines
740 B
YAML
Executable File
27 lines
740 B
YAML
Executable File
## -------------------------------------------------------------------------------------------------##
|
|
## 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 |