mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Fix window sensor names
This commit is contained in:
@@ -42,7 +42,7 @@ automation:
|
|||||||
- alias: Notification · Door opened
|
- alias: Notification · Door opened
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.front_door_on_off
|
entity_id: binary_sensor.front_door
|
||||||
to: "on"
|
to: "on"
|
||||||
for:
|
for:
|
||||||
minutes: 2
|
minutes: 2
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ automation:
|
|||||||
data:
|
data:
|
||||||
title: "🏠 *Presence Module · Arrival Detection*"
|
title: "🏠 *Presence Module · Arrival Detection*"
|
||||||
message: "Device marked as home. Waiting for door to open!"
|
message: "Device marked as home. Waiting for door to open!"
|
||||||
- wait_template: "{{ is_state('binary_sensor.front_door_on_off', 'on') }}"
|
- wait_template: "{{ is_state('binary_sensor.front_door', 'on') }}"
|
||||||
continue_on_timeout: false
|
continue_on_timeout: false
|
||||||
timeout: 00:15:00
|
timeout: 00:15:00
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ automation:
|
|||||||
- alias: Security · Door opened while away
|
- alias: Security · Door opened while away
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.front_door_on_off
|
entity_id: binary_sensor.front_door
|
||||||
to: "on"
|
to: "on"
|
||||||
condition:
|
condition:
|
||||||
condition: and
|
condition: and
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ automation:
|
|||||||
Guest mode: {{ states('input_boolean.guest_mode') }}
|
Guest mode: {{ states('input_boolean.guest_mode') }}
|
||||||
|
|
||||||
Windows:
|
Windows:
|
||||||
Living room: {{ states('binary_sensor.living_room_right_window_on_off') }}
|
Living room: {{ states('binary_sensor.living_room_right_window') }}
|
||||||
Master bedroom: {{ states('binary_sensor.bedroom_right_window_on_off') }}
|
Master bedroom: {{ states('binary_sensor.bedroom_right_window') }}
|
||||||
|
|
||||||
Lights:
|
Lights:
|
||||||
Living room: {{ states('light.living_room') }}
|
Living room: {{ states('light.living_room') }}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
>-
|
>-
|
||||||
|
|
||||||
{%- if is_state('group.all_windows', 'on') -%}
|
{%- if is_state('group.all_windows', 'on') -%}
|
||||||
{%- if is_state('binary_sensor.living_room_right_window_on_off', 'on') -%} The living room window is opened. {% endif %}
|
{%- if is_state('binary_sensor.living_room_right_window', 'on') -%} The living room window is opened. {% endif %}
|
||||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'on') -%} The master bedroom window is opened. {%- endif -%}
|
{%- if is_state('binary_sensor.bedroom_right_window', 'on') -%} The master bedroom window is opened. {%- endif -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
All windows are closed.
|
All windows are closed.
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|||||||
@@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
{%- if (states('sensor.dark_sky_temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%}
|
{%- if (states('sensor.dark_sky_temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%}
|
||||||
|
|
||||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'off')
|
{%- if is_state('binary_sensor.bedroom_right_window', 'off')
|
||||||
and (states('sensor.bedroom_weather_temperature') | int) > 22 -%}
|
and (states('sensor.bedroom_weather_temperature') | int) > 22 -%}
|
||||||
You should probably open the master bedroom window{{ getting_hot | random }}
|
You should probably open the master bedroom window{{ getting_hot | random }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'on')
|
{%- if is_state('binary_sensor.bedroom_right_window', 'on')
|
||||||
and (states('sensor.bedroom_weather_temperature') | int) < 18 -%}
|
and (states('sensor.bedroom_weather_temperature') | int) < 18 -%}
|
||||||
You should probably close the master bedroom window{{ getting_cold | random }}
|
You should probably close the master bedroom window{{ getting_cold | random }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user