mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Try to automatically put house in day mode
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user