Skip to content

v1.1.0 — Battery guards, health sensors & position %

Choose a tag to compare

@dgaust dgaust released this 25 Jul 23:04
· 2 commits to main since this release

New

  • Battery / offline sensor guards. These are battery contact sensors — a contact that goes unavailable/unknown (dead battery) is now never acted on, so it can't change the door state or corrupt the learned open/close timings. The door holds its last known state until the contact reports again. An impossible reading (top open while bottom closed) is treated as a faulty sensor the same way.
  • Sensor status sensor (text) — OK, or a warning such as "Top door sensor is not reporting - check its battery". Use it directly as a notification body.
  • Sensor problem binary sensor (device class problem) — on whenever a contact isn't reporting or reads an impossible state; the clean trigger for a notification, with the detail in its message attribute.
  • Position sensor (0–100%) — a device_class: garage cover is shown as open/closed by the HA frontend and doesn't render a percentage, so the learned position is now exposed as its own value for dashboards and templates. (The cover still carries it as current_position.)

Example: notify when a sensor stops reporting

automation:
  - alias: Garage sensor not reporting
    trigger:
      - platform: state
        entity_id: binary_sensor.garage_door_sensor_problem
        to: "on"
        for: "00:05:00"
    action:
      - service: notify.mobile_app_your_phone
        data:
          title: Garage door
          message: "{{ state_attr('binary_sensor.garage_door_sensor_problem', 'message') }}"

Update via HACS, then reload the integration (or restart Home Assistant).