Page 1 of 1

Sonoff B1 RGB Bulb, MQTT, Espurna, not working

Posted: Friday 22 June 2018 10:11
by Slorf
Hi All,

I got myself some Sonoff B1 bulbs, flashed them with ESPurna.

- Domoticz is running on a PI with the latest beta version
- MQTT is running on my Synology

The issue i have is that i can switch the Sonoff B1 on and off from Domoticz, but as soon as i try and change the color from Domoticz the light switches off.

i came across https://github.com/domoticz/domoticz/issues/1808 with the same issue, but even after installing the latest Domoticz beta the have the same results.

Also see https://github.com/arendst/Sonoff-Tasmota/issues/981 same issue but then with Tasmota

Hope someone can help :-)

Alex

Re: Sonoff B1 RGB Bulb, MQTT, Espurna, not working

Posted: Sunday 24 June 2018 8:10
by miroslavpetrov
Since the last stable update 4.97 RGB lights can be controlled with mqtt. This is the mqtt message in domoticz/out topic when I change the color of a dummy rgb switch:

{
"Battery" : 255,
"Color" : {
"b" : 75,
"cw" : 0,
"g" : 28,
"m" : 3,
"r" : 255,
"t" : 0,
"ww" : 0
},
"Level" : 2,
"RSSI" : 12,
"description" : "",
"dtype" : "Color Switch",
"id" : "00082141",
"idx" : 141,
"name" : "test RGB",
"nvalue" : 10,
"stype" : "RGB",
"svalue1" : "2",
"switchType" : "Dimmer",
"unit" : 1
}

Now the developers of the tasmota,espeasy and espurna firmwares for the esp8266 have to update their firmwares so that the devices can read the mqtt payload and change colors.