Helper for bedtime mode switching

This commit is contained in:
2022-05-22 10:08:43 +03:00
parent 6dbeaff472
commit 50d80cb4d8
3 changed files with 11 additions and 5 deletions
+9
View File
@@ -61,6 +61,15 @@ sensor:
{% endif %}
script:
toggle_bedroom_mode:
alias: Toggle bedroom mode
sequence:
- service: input_select.select_option
entity_id: input_select.bedroom_mode
data_template:
option: "{{ is_state('input_select.bedroom_mode', 'day') | iif('night', 'day') }}"
automation:
- alias: Bedroom mode · Set to day
trigger: