jay (support) wrote:Battery status is going to be handled at the device base class level (since just about every class of device could potentially have a battery) and will likely (not in 6.0 but probably a dot release following that) have it's own column in the device table.
Nice. If I may... maybe instead of implementing a specific "battery" property or class just for batteries, maybe go a little more generic. Very much like berkinet's original post. Some sort of notification property/class for the device base class. Have a few pre-set icons that we could choose from, as well as a string description. This would allow us to easily notify the user of plugin updates, zone faults, battery low, etc. Just a few icons like a low battery, exclamation mark, caution sign, etc. would be required. When they mouse over it they see the notification message.
We could set a notification in a plugin by passing it the icon we'd like as well as the message...
dev.setNotification('batteryLow', u'This zone's battery is getting low.')
or
dev.setNotification('warning', u'This zone is not responding.')
OR, create a separate notification property in addition to the battery one to accomplish the above. They could probably share the same little column for icons.
Thanks