===================================================
- Code: Select all
1. device state " batteryLevelLastUpdate" to iBeacon devices.
with this information you can see when the last successful update of the iBeacon battery level was obtained.
2. add daily report to indigo log / plugin log if batterylevel to low or update older than 2 days eg:
piBeacon Warning batterylevel level test:
b-iHere black2 last level reported: 74%, has not been updated for > 2 days:
b-iHere_black last level reported: 76%, has not been updated for > 2 days:
b-Mazda-aaa level down to: 11% ... charge or replace battery
if all ok one line "batterylevel level test: no iBeacon found with low battery indicator or old update" is printed to plugin.log
you could trigger on event log warning to check for that output
2. if there are any active ibeacons w battery reporting, each morning at 4 or after plugin relaunch
the plugin will request a battery level update from the RPIs
The battery information can be obtained from
aiko
iHERE
xy beacon
social retail
types of iBeacons. May be some others too, but not tested.
Karl