More sensors!

This commit is contained in:
2020-05-31 18:56:39 +03:00
parent f5d6520fb1
commit 0397fcbb42
11 changed files with 87 additions and 43 deletions
+34
View File
@@ -0,0 +1,34 @@
binary_sensor:
- platform: template
sensors:
front_door:
friendly_name: Front door
device_class: door
value_template: "{{ is_state('binary_sensor.front_door_on_off', 'on') }}"
entity_id: binary_sensor.front_door_on_off
icon_template: >
{% if is_state('binary_sensor.front_door_on_off', 'on') %} mdi:door-open
{% 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:
sensor.front_door_power:
friendly_name: Front door battery
sensor.bedroom_door_power:
friendly_name: Bedroom door battery