-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add device availability functionality for HASS based on router devices ping and attribute reporting also available on battery-powered devices #761
Conversation
Great, could you open the zigbee-shepherd PR here? https://github.com/koenkk/zigbee-shepherd |
PR moved to Koenkk/zigbee-shepherd#8 |
- On restarting Home Assistant, resending device discovery information - Add timestamp on receiving message from Zigbee
Thanks 🐝! |
@Koenkk It is great you merged this feature! 👍 |
@ugrug we dont need the last seen attribute, I prefer to just keep track of this by handling zigbee messages in the handleZigbeeMessage function. Lets keep extensions as standalone as possible. I`m still struggeling with the availabillity of battery based devices as we dont really know how often a sensor could report. A good guess would be 1 day, however this is probably not alwys right, perhaps there should be some devive specific option to disable it for that device. |
Hi, I'm new to zigbee2mqtt and i find that the availabillity of battery based devices is pretty important especially for some sensors like smoke alarm, water leakage sensor, etc. I know that different devices will have different report/heartbeat interval. Like @Koenkk just commented, perhaps just make it configurable for each device? Any plan to include this feature? If not, what is the best way to monitor this in home assistant? Sorry for commenting on the Closed thread. I'm not sure whether this is the correct way to do it. |
@waiweng83 the correct place is #775 |
Thanks |
…s ping and attribute reporting also available on battery-powered devices (Koenkk#761) * Discovery on HASS restart and last_message attribute added - On restarting Home Assistant, resending device discovery information - Add timestamp on receiving message from Zigbee * Add option: add_timestamp in settings * typo * Update homeassistant.js * Update homeassistant.js * Update homeassistant.js * Update controller.js * Update zigbee.js * Add files via upload * Update zigbee.js * Update deviceAvailabilityHandler.js * Update deviceAvailabilityHandler.js * Update deviceAvailabilityHandler.js * Update deviceAvailabilityHandler.js * Update deviceAvailabilityHandler.js * Update deviceAvailabilityHandler.js * Update deviceAvailabilityHandler.js * Update homeassistant.js * Update deviceAvailabilityHandler.js * Update deviceAvailabilityHandler.js * Update homeassistant.js * Fix checkonline callback. * Refactor. * Refactor.
configuration.yaml: advanced/availability_interval
configuration.yaml: devices/device_ID/attribute_report_interval
zigbee-stephard/Controller.prototype.checkOnline
function needed. Related to this, created a pull request for it. For testing, available at: Fix checkOnline callback zigbee-shepherd#8