Try to automatically put house in day mode

This commit is contained in:
2020-06-27 19:02:27 +03:00
parent 7af462f4c9
commit c21135997f
3 changed files with 26 additions and 1 deletions
@@ -111,6 +111,7 @@ cards:
- automation.house_mode_set_to_bed - automation.house_mode_set_to_bed
- automation.house_mode_set_to_night - automation.house_mode_set_to_night
- automation.house_mode_toggle_on_bedside_switch_hold - automation.house_mode_toggle_on_bedside_switch_hold
- automation.house_mode_set_to_day_if_bedroom_door_was_opened
- type: entities - type: entities
title: Guest mode title: Guest mode
+24
View File
@@ -49,3 +49,27 @@ automation:
to: "night" to: "night"
action: action:
- service: script.routine_good_night - service: script.routine_good_night
- alias: House mode · Set to day if bedroom door was opened
trigger:
- platform: state
entity_id: binary_sensor.bedroom_door
to: "on"
- platform: state
entity_id: group.bedroom_windows
condition:
- condition: template
value_template: "{{ states('input_datetime.alarm_time')[0:2] | int >= now().hour }}"
- condition: not
conditions:
- condition: state
entity_id: input_select.house_mode
state: "day"
- condition: state
entity_id: input_boolean.georgi_home
state: "on"
action:
- service: input_select.select_option
entity_id: input_select.house_mode
data:
option: "day"
@@ -60,7 +60,7 @@ automation:
conditions: conditions:
- condition: state - condition: state
entity_id: input_select.house_mode entity_id: input_select.house_mode
state: 'day' state: "day"
- condition: state - condition: state
entity_id: input_boolean.georgi_home entity_id: input_boolean.georgi_home
state: "on" state: "on"