Rename front window sensor
This commit is contained in:
@ -39,7 +39,7 @@ media_lights_sync_basement:
|
||||
# - media_player.living_room_echo_dot
|
||||
# doors_windows:
|
||||
# - binary_sensor.kitchen_big_window
|
||||
# - binary_sensor.front_window_near
|
||||
# - binary_sensor.front_window_1
|
||||
# - binary_sensor.stairway_window_lower
|
||||
# - binary_sensor.mud_room_window
|
||||
# announcements:
|
||||
|
@ -2897,7 +2897,7 @@
|
||||
alias: Windows are open
|
||||
action:
|
||||
- variables:
|
||||
porch: '{{ true if states(''sensor.windows_open'') == ''1'' and is_state(''binary_sensor.front_window_near'',''on'')
|
||||
porch: '{{ true if states(''sensor.windows_open'') == ''1'' and is_state(''binary_sensor.front_window_1'',''on'')
|
||||
else false }}'
|
||||
message: "{% if porch == true %}\n It is raining and a window by the porch
|
||||
is open. This is generally acceptable, but please close it if the wind is
|
||||
|
@ -133,7 +133,7 @@ template:
|
||||
unit_of_measurement: 'open'
|
||||
state: >-
|
||||
{% set windows = [
|
||||
states.binary_sensor.front_window_near,
|
||||
states.binary_sensor.front_window_1,
|
||||
states.binary_sensor.kitchen_big_window,
|
||||
states.binary_sensor.mud_room_window,
|
||||
states.binary_sensor.stairway_window_lower,
|
||||
@ -142,7 +142,7 @@ template:
|
||||
{{ windows_open }}
|
||||
icon: >-
|
||||
{% set windows = [
|
||||
states.binary_sensor.front_window_near,
|
||||
states.binary_sensor.front_window_1,
|
||||
states.binary_sensor.kitchen_big_window,
|
||||
states.binary_sensor.mud_room_window,
|
||||
states.binary_sensor.stairway_window_lower,
|
||||
|
Reference in New Issue
Block a user