I have a few devices with batteries that use a different value range (0 to 10000 as opposed to 0 to 100). UltraJones's Netatmo weather station plugin is an example.
Does your plugin get the 'status' value or 'value' value?
Here's the advanced tab from the Netatmo battery device:
Reference ID 2180
Technology Address 03:00:00:04:5d:ac-Battery-Indoor
Status 5772 = Unknown
Value 5772 = "High"
String
Supports Status False
Dimmable False
Interface UltraNetatmo3
Extra Data Store 0 Named entries, 0 UnNamed entries.
Device Type Internal Plug-In API, Type: Plug-In Root Device, SubType:
Device Type (String)
Netatmo Battery-Indoor
Misc Settings Generate Voice Command, SET_DOES_NOT_CHANGE_LAST_CHANGE
Device Image File images\Devices\Image-Not-Selected.png
Thumbnail Image File images\Devices\Image-Not-Selected_small.png
Relationship Status Child
Associated Devices Netatmo UltraNetatmo3 Plugin 48SBC [Master Bedroom]
The SDJ-Health device is reporting this as:
48SBC [Master Bedroom]
Last Good Check: 15/04/2018 10:21 AM
Battery Level: 0% (<=20)
Battery Rate: 0.0% per day
Battery Life: 0 days
Status: Low Battery
Is that because the status is out of range for the plugin (i.e. >100)? Or because the value contains the word "High"?
Perhaps I could create a new virtual device that converts the 0 to 10000 to a range of 0 to 100 and associated that as a child device. Would this then allow your plugin to monitor the battery status correctly?
Thanks for your help. Marty.
Does your plugin get the 'status' value or 'value' value?
Here's the advanced tab from the Netatmo battery device:
Reference ID 2180
Technology Address 03:00:00:04:5d:ac-Battery-Indoor
Status 5772 = Unknown
Value 5772 = "High"
String
Supports Status False
Dimmable False
Interface UltraNetatmo3
Extra Data Store 0 Named entries, 0 UnNamed entries.
Device Type Internal Plug-In API, Type: Plug-In Root Device, SubType:
Device Type (String)
Netatmo Battery-Indoor
Misc Settings Generate Voice Command, SET_DOES_NOT_CHANGE_LAST_CHANGE
Device Image File images\Devices\Image-Not-Selected.png
Thumbnail Image File images\Devices\Image-Not-Selected_small.png
Relationship Status Child
Associated Devices Netatmo UltraNetatmo3 Plugin 48SBC [Master Bedroom]
The SDJ-Health device is reporting this as:
48SBC [Master Bedroom]
Last Good Check: 15/04/2018 10:21 AM
Battery Level: 0% (<=20)
Battery Rate: 0.0% per day
Battery Life: 0 days
Status: Low Battery
Is that because the status is out of range for the plugin (i.e. >100)? Or because the value contains the word "High"?
Perhaps I could create a new virtual device that converts the 0 to 10000 to a range of 0 to 100 and associated that as a child device. Would this then allow your plugin to monitor the battery status correctly?
Thanks for your help. Marty.
Comment