Update coming home automation

This commit is contained in:
2020-06-27 18:46:37 +03:00
parent 3767c1bf1a
commit 7af462f4c9
2 changed files with 29 additions and 24 deletions
@@ -71,41 +71,44 @@ script:
message: "AC · Switching on · Above 24 degrees, windows closed" message: "AC · Switching on · Above 24 degrees, windows closed"
domain: climate domain: climate
toshiba_ac_on_cool_if_hot:
sequence:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.trisensor_temperature
above: 23
- condition: numeric_state
entity_id: sensor.dark_sky_apparent_temperature
above: 23
- condition: state
entity_id: input_boolean.georgi_home
state: "on"
- condition: state
entity_id: binary_sensor.living_room_right_window
state: "off"
- condition: state
entity_id: group.bedroom_windows
state: "off"
- condition: state
entity_id: climate.toshiba_ac
state: "off"
- service: script.toshiba_ac_on_cool
automation: automation:
- alias: Climate · AC · Turn on if hot - alias: Climate · AC · Turn on if hot
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.trisensor_temperature entity_id: sensor.trisensor_temperature
above: 24 above: 23
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.living_room_right_window - binary_sensor.living_room_right_window
- group.bedroom_windows - group.bedroom_windows
from: "on" from: "on"
to: "off" to: "off"
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.trisensor_temperature
above: 24
- condition: numeric_state
entity_id: sensor.dark_sky_apparent_temperature
above: 24
- condition: state
entity_id: input_boolean.georgi_home
state: "on"
- condition: state
entity_id: binary_sensor.living_room_right_window
state: "off"
- condition: state
entity_id: group.bedroom_windows
state: "off"
- condition: state
entity_id: climate.toshiba_ac
state: "off"
action: action:
- service: script.toshiba_ac_on_cool - service: script.toshiba_ac_on_cool_if_hot
- alias: Climate · AC · Turn off - alias: Climate · AC · Turn off
trigger: trigger:
@@ -120,7 +123,7 @@ automation:
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.living_room_right_window - binary_sensor.living_room_right_window
- binary_sensor.bedroom_right_window - group.bedroom_windows
from: "off" from: "off"
to: "on" to: "on"
condition: condition:
@@ -17,6 +17,7 @@ script:
brightness_pct: 100 brightness_pct: 100
- service: script.security_camera_off - service: script.security_camera_off
- service: script.routine_coming_home_after_sunset - service: script.routine_coming_home_after_sunset
- service: script.toshiba_ac_on_cool_if_hot
- service: script.sonos_join_bedroom - service: script.sonos_join_bedroom
- service: script.routine_coming_home_welcome_home - service: script.routine_coming_home_welcome_home
@@ -25,6 +26,7 @@ script:
sequence: sequence:
- condition: sun - condition: sun
after: sunset after: sunset
after_offset: "-01:00:00"
- service: light.turn_on - service: light.turn_on
entity_id: light.on_after_dark entity_id: light.on_after_dark
data: data: