hansen-hasst/packages/pc/pc.yaml
2022-08-18 16:45:03 +02:00

27 lines
631 B
YAML
Executable File

wake_on_lan:
switch:
- platform: wake_on_lan
mac: !secret tower_mac
name: tower
#Office Steckdosenleiste
automation:
- alias: office_light_socket
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_long_press
subtype: button
action:
- type: toggle
device_id: 343b205f3ed48a715e59c5490050150f
entity_id: light.office_switch_socket
domain: light
- delay:
seconds: 15
- service: switch.turn_on
target:
entity_id: switch.tower