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
