Closed ghost closed 5 years ago
UPDATE: I posted a note over on the HA forum to see if anyone over there knows.
https://community.home-assistant.io/t/espurna-config-giving-rgb-errors/72844
Once we know what it should be I think the firmware needs to be updated so it suggests the correct config.
Thanks!
UPDATE: Oops! I went though all the espruna config again and found a setting!
Under the “Lights” menu on espurna there is a “Use CSS style” option and changing it from “Yes” to “No” means that Red will be reported as “#FF0000” if ON, otherwise “255,0,0”.
Fixed
Yep, it does not support CSS syntax: https://www.home-assistant.io/components/light.mqtt/#rgb_state_topic Which raises the question - should it just maybe warn about "useCSS" setting when showing config? Overriding might be too much, hass module can be enabled in espurna .bin but #css syntax still can have other consumers like node-red.
Maybe the RGB color should be published in both syntaxes under different topics?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
This issue will be auto-closed because there hasn't been any activity for two months. Feel free to open a new one if you still experience this problem.
Maybe the RGB color should be published in both syntaxes under different topics?
would not this break backwards compatibility? options that come to mind:
rgb_value_template
and do jinja magic to passthrough wthout useCSS and convert #RRGGBB
to r,g,b
#RRGGBB
syntax{"r":...,"g":...,"b":...}
(like domoticz)This issue will be auto-closed because there hasn't been any activity for two months. Feel free to open a new one if you still experience this problem.
Using the latest firmware - espurna-1.13.3-aithinker-ai-light.bin
My ESP light seems to work fine and is defined in HA (copied from bulb suggestion) as:
Problem is that i seem to get errors being reported in the HA log files as per:
I managed to snif the MQTT traffic and get this:
Is this some kind of issue with the formatting in HA or the format of what the bulb sends to MQTT for the RGB value ?
Thanks
Mark