Closed OliverHi closed 6 years ago
I'm able to reproduce this behaviour, definiatly a bug. Thank you for reporting in.
Starting point: MySensorsThingHandler Wrong adapter/converter is choosen: rgbw instead of percentage (dimmer)
@tobof I had a quick look at the code and although I am not familiar with the openhab concepts my best guess is that the problem is that RGBW has no dimmer channel So I guess the dimmer sends a RGBW message to the MySensorsRGBWTypeConverter. To fix this one could either add a dimmer channel, or implement typeFromChannelCommand() and adapt fromCommand() to detect dimmer values and send the right values?!
If you could point me in the right direction I might be able to implement some of this. Would be faster if someone else does it though I guess.
I suppose the best approach is your second suggestion. We should switch the channel to dimmer.
I'll give it a try.
I am running openhab 2.1.0 and the version 2.2.0.201707241115 of the MySensors binding on a raspberry pi.
When trying to dim the RGBW leds via the paperUI's setting
or via the basic ui I get an error message. The node receives either no value at all or and V_RGBW of length 0. No V_DIMMER at all.
This is the used sketch for the node: https://github.com/OliverHi/RGBW-Controller/blob/master/Software/RGBWDimmerV2/RGBWDimmerV2.ino
Looks like the converter function gets called with an empty string somehow.
Error: