_tGeneralSwitch and batterylevel
Posted: Sunday 31 December 2017 14:12
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
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