43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
automation:
|
|
- alias: "Turn on the Wifi Guest Network"
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: input_boolean.wifi_guest_network
|
|
to: "on"
|
|
actions:
|
|
- action: media_player.play_media
|
|
target:
|
|
entity_id: media_player.view_rd_kitchen_echo_show
|
|
data:
|
|
media_content_type: custom
|
|
media_content_id: ask t.p.link to enable guest network
|
|
|
|
- alias: "Turn off the Wifi Guest Network"
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: input_boolean.wifi_guest_network
|
|
to: "off"
|
|
actions:
|
|
- action: media_player.play_media
|
|
target:
|
|
entity_id: media_player.view_rd_kitchen_echo_show
|
|
data:
|
|
media_content_type: custom
|
|
media_content_id: ask t.p.link to disable guest network
|
|
|
|
- alias: "Switch guest network off after time"
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: input_boolean.wifi_guest_network
|
|
from: "off"
|
|
to: "on"
|
|
for: "02:00:00"
|
|
conditions: []
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
target:
|
|
entity_id: input_boolean.wifi_guest_network
|