mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Refactor as packages
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
front_door_on_off_wrapper:
|
||||
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 %}
|
||||
|
||||
#
|
||||
# ─── CUSTOMIZATION ──────────────────────────────────────────────────────────────
|
||||
#
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.front_door_on_off:
|
||||
friendly_name: "Front Door Sensor"
|
||||
|
||||
sensor.front_door_power:
|
||||
friendly_name: "Front Door Battery"
|
||||
Reference in New Issue
Block a user