Repository navigation
Home Assistant Entities
The app adds a few entities to each Zigbee device Home Assistant already knows from Zigbee2MQTT, so they appear on that device's page and can be used in automations. They're created through MQTT discovery, so you don't need the integration for them.
Turn them on or off with Settings → Home Assistant entities → Add entities to Zigbee devices (ha_entities). Turning it off removes them.
The coordinator and removed devices don't get entities.
| Entity | Type | Enabled by default | For |
|---|---|---|---|
| Needs attention | Binary sensor (problem) | Yes | All devices. On when the device has a warning. The issues attribute lists every current problem, warnings and info. |
| Reading frozen | Binary sensor (problem) | Yes | Devices with monitored readings (temperature, humidity and so on). On when a reading is frozen. |
| Reconfigure | Button | Yes | All devices. Same as Reconfigure in the tracker. |
| Battery replaced | Button | Yes | Battery devices. Records a battery replacement dated today. |
| Battery last replaced | Sensor (date) | Yes | Battery devices. |
| Signal (24 h avg) | Sensor | No | All devices. Average LQI over the last 24 hours. |
| Uptime (30 days) | Sensor (%) | No | All devices. See Uptime. |
| Battery days left | Sensor (days) | No | Battery devices. See Estimates. Unknown until there's enough data. |
| Battery type | Sensor | No | Battery devices. |
| Connected via | Sensor | No | End devices. The router it connected through in the last routing scan. |
Enable the ones that are off by default from the device's page, under the entity's settings.
The entities become unavailable when the app stops, and come back when it starts.
triggers:
- trigger: state
entity_id:
- binary_sensor.kitchen_motion_needs_attention
- binary_sensor.kitchen_door_needs_attention
to: "on"
actions:
- action: notify.mobile_app_your_phone
data:
message: >
{{ state_attr(trigger.entity_id, 'friendly_name') }}:
{{ state_attr(trigger.entity_id, 'issues') | join(', ') }}triggers:
- trigger: state
entity_id: binary_sensor.bedroom_climate_reading_frozen
to: "on"
actions:
- action: button.press
target:
entity_id: button.bedroom_climate_reconfigureEntity IDs follow your device names, so check the real ones on the device's page.
The app publishes discovery messages under homeassistant/<component>/z2m_tracker/<ieee>_<key>/config, and each device's state as JSON on z2m_tracker/<ieee>. The entities attach to the existing device using Zigbee2MQTT's own identifier (zigbee2mqtt_<ieee>). Availability is on z2m_tracker/status. The buttons send PRESS to z2m_tracker/<ieee>/reconfigure and z2m_tracker/<ieee>/battery_replaced.
State is refreshed every minute.
Start
Using it
- Devices and history
- Health checks
- Alerts and notifications
- Network map
- Firmware updates
- Pairing and moving devices
- Replacing a device
- Batteries
- Community ratings
Home Assistant
Help