mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
blue_room to boys_room
This commit is contained in:
@@ -12,58 +12,57 @@ trigger:
|
||||
- id: boolean_turned_on
|
||||
platform: state
|
||||
entity_id: input_boolean.restart_network
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: button_pressed
|
||||
sequence:
|
||||
- alias: Create a persistent notification for testing
|
||||
service: persistent_notification.create
|
||||
data:
|
||||
message: "The network would have restarted at {{now()}}"
|
||||
title: "Network restarting"
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: button_pressed
|
||||
sequence:
|
||||
- alias: Create a persistent notification for testing
|
||||
action: persistent_notification.create
|
||||
data:
|
||||
message: "The network would have restarted at {{now()}}"
|
||||
title: "Network restarting"
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: boolean_turned_on
|
||||
sequence:
|
||||
- alias: Turn off switch controlling router
|
||||
service: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_router
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: boolean_turned_on
|
||||
sequence:
|
||||
- alias: Turn off switch controlling router
|
||||
action: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_router
|
||||
|
||||
- alias: Turn off switch controlling modem
|
||||
service: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_modem
|
||||
- alias: Turn off switch controlling modem
|
||||
action: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_modem
|
||||
|
||||
- alias: Waiting for 10 seconds
|
||||
delay: '00:00:10'
|
||||
- alias: Waiting for 10 seconds
|
||||
delay: "00:00:10"
|
||||
|
||||
- alias: Turn on switch controlling modem
|
||||
service: switch.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_modem
|
||||
- alias: Turn on switch controlling modem
|
||||
action: switch.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_modem
|
||||
|
||||
- alias: Waiting for 10 seconds
|
||||
delay: '00:00:10'
|
||||
- alias: Waiting for 10 seconds
|
||||
delay: "00:00:10"
|
||||
|
||||
- alias: Turn on switch controlling router
|
||||
service: switch.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_router
|
||||
|
||||
- alias: Turn of input_boolean controlling the restart
|
||||
service: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.restart_network
|
||||
- alias: Turn on switch controlling router
|
||||
action: switch.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.computer_area_double_power_plug_router
|
||||
|
||||
- alias: Turn of input_boolean controlling the restart
|
||||
action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.restart_network
|
||||
|
||||
Reference in New Issue
Block a user