Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: "ROOM ASSISTANT - Restart Devices HOME Mode"
- initial_state: true
- mode: restart
- trigger:
- - platform: state
- entity_id: input_boolean.room_assistant_auto_restart_devices
- from: 'off'
- to: 'on'
- - platform: homeassistant
- event: start
- condition:
- - condition: time
- after: "13:30:00"
- before: "23:00:00"
- action:
- - alias: "repeat reboot devices sequence"
- repeat:
- sequence:
- - service: script.room_assistant_restart
- - delay:
- hours: "{{ states('input_number.room_assistant_restart_time') | int }}"
- until:
- - condition: state
- entity_id: input_boolean.room_assistant_auto_restart_devices
- state: 'off'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement