Can anyone help me decipher this error and any obvious solutions I’m missing…The RGB strip works fine but just errors in the log
Error doing job: Exception in callback <bound method MQTT._mqtt_handle_message of <homeassistant.components.mqtt.MQTT object at 0x7585adf0>>
Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 66, in uvloop.loop.Handle._run
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/ init .py”, line 691, in _mqtt_handle_message
msg.topic, payload, msg.qos)
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 300, in async_run_job
target(*args)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/light/mqtt.py”, line 250, in brightness_received
device_value = float(templatesCONF_BRIGHTNESS)
ValueError: could not convert string to float:
I’m using this in my configuration.yaml to control some RGB strip using a MagicHome thats been Tasmota’d ver 6.1.1c
should be something along the lines: {{(value_json.Channel[0]|float*2.55)|int}},{{(value_json.Channel[1]|float*2.55)|int}},{{(value_json.Channel[2]|float*2.55)|int}}
you’re trying to multiply a string value_json.Channel[] with a float 2.55
So with the brightness commented out I get two errors…
Error doing job: Exception in callback <bound method MQTT._mqtt_handle_message of <homeassistant.components.mqtt.MQTT object at 0x75836130>>
Traceback (most recent call last):
File "uvloop/cbhandles.pyx", line 66, in uvloop.loop.Handle._run
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 691, in _mqtt_handle_message
msg.topic, payload, msg.qos)
File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 300, in async_run_job
target(*args)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/mqtt.py", line 272, in rgb_received
templates[CONF_RGB](payload).split(',')]
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/mqtt.py", line 271, in <listcomp>
rgb = [int(val) for val in
ValueError: invalid literal for int() with base 10: '{"POWER":"OFF"}'
and
Error parsing value: 'dict object' has no attribute 'Channel' (value: {"POWER":"OFF"}, template: {{(value_json.Channel[0]|float*2.55)|int}},{{(value_json.Channel[1]|float*2.55)|int}},{{(value_json.Channel[2]|float*2.55)|int}})