It’s been a bit of a challenge to sort out how to configure my Sonoff B1 to use the MQTT Light component. Using some of the other threads in this forum(this one and this one), as well as the commands documentation, I’ve managed to get things working.
However, I’m running into the bounds of my knowledge. I’ve never implemented effects before, and tasmota incorporates effects from 0 through 4. I’d like to have these effects show up in the UI with descriptive names, but I can’t see any way to define that in the effects list, while still having the MQTT send the number correlated to the effect I want. How can specify human-friendly names to each of these effects?
I’m also not able to figure out how to enable the speed control, as the effects use the speed to determine how fast/slow to zip through the different colours. How can I set up the interface to have a speed input?
This is not a solution for your problem… but according to the links you mentioned, I have tried to configure a sonoff b1 with tasmota and it gave me a lot of errors… And i don’t understand why and how to stop from appear at error log… That doesn’t happen to you?
Hi,
The errors i’m receiving is on Hass, in tasmota everything is ok, i noticed the problem was related to the stat-topic-result that was send from tasmota, sometimes send the payload with more than one field with comma as separate and sometimes (for power p.e.) it only send info like ‘on’ or ‘off’.
The thing is the stat topic for brightness and for rgb, if I comment those lines the errors stop occurring.
I’m not sure if this an “error” from hass or something that should be fixed from tasmota.
Now I’m out of home and not able to get error log and configuration file.
Here’s an example entry in my lights.yaml file. This is what I’m using for the B1. I’ve used yaml parameters to help keep things tidy. Still haven’t managed to get color temperature to parse properly and render in the UI, but this is at the very least, functional.
Does the UI detect the color temperature properly? That is, if you set the color temperature, then close the browser tab and re open it, and open the light again, does it show the current level? Mine always defaults to cold.
OK, I think that this does it. The problem with previous versions is the fact that Sonoff-Tasmota reuses the “stat/xxxxxx/RESULT” topic but doesn’t always supply all of the information that HA is looking for. So the fix is to check to see if the information is there, otherwise fill in with the current state. It’d be nice too if HA could make use of the “tele/xxxxxx/STATE” messages that Sonoff-Tasmota sends out periodically to refresh the state but that’ll take some coding.
FYI, esphomelib/esphomeyaml works with the B1 now. I personally like esphomelib/esphomeyaml better than Tasmota but it’s mainly a matter of preference.
Yes, in terms of my automation. I just entered the following in the service data section of the “call service” part of the automation:
color_temp: 800
That command activates the novastella warm white leds.
The lovelace entries have a color temp slider. So should your entries. If yours does not, here is my configuration.yaml code for adding the floodlights: