_tGeneralSwitch and batterylevel

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jbjalling
Posts: 19
Joined: Tuesday 09 February 2016 23:19
Target OS: Linux
Domoticz version:
Contact:

_tGeneralSwitch and batterylevel

Post by jbjalling »

I have been developing a new hardware plugin for a while now, and I would like to create a pull request in the near future (right...!!).
Until now, I have used the existing hardware types (mostly _tGeneralSwitch), but unfortunately it now seems like have to make "my own" type. It seems like _tGeneralSwitch doesn't support battery- and rssi levels - am I right?
My problem is, that when a light is switched from the webinterface, the batterlevel and RSSI are reset to "-". Following the code, this seems like this is by design, but is there a way to get past this (other than creating a new hw type, and handle it that way)?

I suspect that it is prefered to keep the device types/classes to a minimum, am I right?

Thanks in advance, and happy new year.

BR Jonas
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest