Closed AaronLionsheep closed 3 years ago
can use setErrorStateOnServer(message)
detailed in the API.
The low battery level should be configurable from the plugin settings.
There should also be a trigger that fires for a specific device or for all devices when the battery level changes AND it is below the threshold.
For battery devices, the user could specify a maximum period between data reporting. If a device does not report, then the battery must have died (or lost connection).
If an announce message is seen from the device over the specified period, maybe log some error.