mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
More sensors!
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
front_door_on_off_wrapper:
|
||||
front_door:
|
||||
friendly_name: Front door
|
||||
device_class: door
|
||||
value_template: "{{ is_state('binary_sensor.front_door_on_off', 'on') }}"
|
||||
@@ -11,14 +11,24 @@ binary_sensor:
|
||||
{% else %} mdi:door-closed
|
||||
{% endif %}
|
||||
|
||||
bedroom_door:
|
||||
friendly_name: Bedroom door
|
||||
device_class: door
|
||||
value_template: "{{ is_state('binary_sensor.bedroom_door_raw', 'on') }}"
|
||||
entity_id: binary_sensor.bedroom_door_raw
|
||||
icon_template: >
|
||||
{% if is_state('binary_sensor.bedroom_door_raw', 'on') %} mdi:door-open
|
||||
{% else %} mdi:door-closed
|
||||
{% endif %}
|
||||
|
||||
#
|
||||
# ─── CUSTOMIZATION ──────────────────────────────────────────────────────────────
|
||||
#
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.front_door_on_off:
|
||||
friendly_name: Front door sensor
|
||||
|
||||
sensor.front_door_power:
|
||||
friendly_name: Front door battery
|
||||
|
||||
sensor.bedroom_door_power:
|
||||
friendly_name: Bedroom door battery
|
||||
Reference in New Issue
Block a user