Cleanup script for after server freezes #29
This commit is contained in:
101
scripts.yaml
101
scripts.yaml
@ -400,3 +400,104 @@ max_brightness_cleanup:
|
|||||||
- input_text.upstairs_hallway_selected_scene
|
- input_text.upstairs_hallway_selected_scene
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:broom
|
icon: mdi:broom
|
||||||
|
freeze_cleanup:
|
||||||
|
alias: Freeze Cleanup
|
||||||
|
sequence:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.early_night_mode
|
||||||
|
- input_boolean.night_mode
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- switch.presence_simulation
|
||||||
|
- switch.basement_echo_dot_do_not_disturb_switch
|
||||||
|
- switch.living_room_echo_dot_do_not_disturb_switch
|
||||||
|
- switch.master_bedroom_echo_dot_do_not_disturb_switch
|
||||||
|
- if:
|
||||||
|
- condition: time
|
||||||
|
after: input_datetime.master_bedroom_wakeup
|
||||||
|
before: input_datetime.master_bedroom_cooling
|
||||||
|
then:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.master_bedroom_cooling_on
|
||||||
|
else:
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.master_bedroom_cooling_on
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.twitch_ironnerd24
|
||||||
|
state: online
|
||||||
|
then:
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.stream_online
|
||||||
|
else:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.stream_online
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: calendar.family_tinawork
|
||||||
|
state: 'on'
|
||||||
|
- condition: time
|
||||||
|
before: input_datetime.tina_workday_end
|
||||||
|
after: input_datetime.tina_workday_start
|
||||||
|
then:
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.work_today
|
||||||
|
else:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.work_today
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: calendar.kallen_school_days
|
||||||
|
state: 'on'
|
||||||
|
- condition: time
|
||||||
|
before: input_datetime.school_day_end
|
||||||
|
after: input_datetime.school_day_start
|
||||||
|
then:
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.school_today
|
||||||
|
- input_boolean.school_today_extended
|
||||||
|
- input_boolean.kallen_school
|
||||||
|
else:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.school_today
|
||||||
|
- input_boolean.school_today_extended
|
||||||
|
- input_boolean.kallen_school
|
||||||
|
- if:
|
||||||
|
- condition: time
|
||||||
|
before: input_datetime.audible_notification_on
|
||||||
|
after: input_datetime.audible_notification_off
|
||||||
|
then:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.audible_notifications
|
||||||
|
else:
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.audible_notifications
|
||||||
|
mode: single
|
||||||
|
icon: mdi:truck-snowflake
|
||||||
|
Reference in New Issue
Block a user