Alright guys, got my first order of Xbee's yesterday and man am I loving these little things!
Here comes my first contribution:
I have created a small mircopython app that runs on the XBee which sends every minute the current voltage attached to the Zigbee. In additon, I have created a new device driver that is a Presence Sensor and exposes the battery status. I think you already know where I am going with this. I am going to try to install an Xbee powered by batteries in a car to see how reliably you can get presence detection with these guys. I am just waiting on an Amazon order for some parts.
However, what I have now is already usable, even for Router XBees.
You can find my device driver here: Hubitat/xbee.groovy at master · danTapps/Hubitat · GitHub
Just install it in Hubitat and assign it to your Xbee devices in Hubitat
Here comes the installation for the XBee.
First and foremost, you have to change the parameter PS to 1. This will tell the XBee to run a script on start.
Download my little script Hubitat/main.py at master · danTapps/Hubitat · GitHub
and name it main.py
With XTCU, transfer this file to your Xbee (XTCU->Tools->File System Manager) and just store it right in the root folder.
Reset your Xbee and you should receive updates in Hubitat in regard to presence and battery. The first update might fail as the device is not connected to your Zigbee network yet but you should see an update within 2 minutes. The little python app tries to send it every 60 seconds.
Why is this helpful even for a Router? You can see that your Router is alive and actually connected to Hubitat. Let's say the router has an issue, the device driver will change the presence status from "present" to "not present" and you can be alerted about this.
I have tested this with an XB3-24Z8ST and firmware 1006, however, I am doing nothing specific here and it should also work with other devices/firmware versions.
All the other functions of the Router XBee are not affected, you can still to spectrum analysis, mapping, etc.
Hope this might be helpful for someone.....