mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Customize doors
This commit is contained in:
@@ -26,9 +26,13 @@ homeassistant:
|
||||
customize:
|
||||
binary_sensor.living_room_right_window_contact:
|
||||
device_class: window
|
||||
friendly_name: Living room right window
|
||||
binary_sensor.bedroom_left_window_contact:
|
||||
device_class: window
|
||||
friendly_name: Bedroom left window
|
||||
binary_sensor.bedroom_right_window_contact:
|
||||
device_class: window
|
||||
friendly_name: Bedroom right window
|
||||
binary_sensor.kitchen_window_contact:
|
||||
device_class: window
|
||||
friendly_name: Kitchen window
|
||||
|
||||
@@ -4,6 +4,7 @@ group:
|
||||
entities:
|
||||
- binary_sensor.front_door_contact
|
||||
- binary_sensor.bedroom_door_contact
|
||||
- binary_sensor.kitchen_door
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
@@ -13,3 +14,10 @@ sensor:
|
||||
value_template: >-
|
||||
{% set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_doors', 'entity_id')) %}
|
||||
{{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.front_door_contact:
|
||||
friendly_name: Front door
|
||||
binary_sensor.kitchen_door_contact:
|
||||
friendly_name: Kitchen door
|
||||
|
||||
Reference in New Issue
Block a user