Advertisement
energywave

Per Carlo

May 7th, 2021
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.80 KB | None | 0 0
  1.  - alias: "ROOM ASSISTANT - Restart Devices HOME Mode"
  2.     initial_state: true
  3.     mode: restart
  4.     trigger:
  5.       - platform: state
  6.         entity_id: input_boolean.room_assistant_auto_restart_devices
  7.         from: 'off'
  8.         to: 'on'
  9.       - platform: homeassistant
  10.         event: start
  11.     condition:
  12.       - condition: time
  13.         after: "13:30:00"
  14.         before: "23:00:00"
  15.     action:
  16.       - alias: "repeat reboot devices sequence"
  17.         repeat:
  18.           sequence:
  19.             - service: script.room_assistant_restart
  20.             - delay:
  21.                 hours: "{{ states('input_number.room_assistant_restart_time') | int }}"
  22.           until:
  23.             - condition: state
  24.               entity_id: input_boolean.room_assistant_auto_restart_devices
  25.               state: 'off'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement