Hi everybody,
I have been running Hassbian for a while and decided to switch to Hass.io to see what the fuss is about Everything went smooth but I simply cannot get my MQTT lights up and running
I can see the following error in the logs:
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File â/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.pyâ, line 258, in _async_add_entity
await entity.async_added_to_hass()
File â/usr/lib/python3.6/site-packages/homeassistant/components/light/mqtt_json.pyâ, line 245, in async_added_to_hass
self._qos)
File â/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/init.pyâ, line 241, in async_subscribe
topic, msg_callback, qos, encoding)
File â/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/init.pyâ, line 559, in async_subscribe
await self._async_perform_subscription(topic, qos)
File â/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/init.pyâ, line 594, in _async_perform_subscription
_raise_on_error(result)
File â/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/init.pyâ, line 680, in _raise_on_error
âError talking to MQTT: {}â.format(mqtt.error_string(result_code)))
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.
Some snips from my config:
mqtt:
broker: 192.168.1.80
port: 1883
keepalive: 60
username: xxxxx
password: xxxxx
light:
- platform: mqtt_json
name: Cabinet
state_topic: âhome/rgbw1â
command_topic: âhome/rgbw1/setâ
brightness: true
rgb: true
white_value: true
effect: true
effect_list: [colorfade_slow, colorfade_fast, flash]
optimistic: false
qos: 0
(Sorry if spaces doesnt match)
My Mosquitto broker (installed via Hass.io)
{
âplainâ: true,
âsslâ: false,
âanonymousâ: true,
âloginsâ: [
{
âusernameâ: âxxxxxxxâ,
âpasswordâ: âxxxxxxxxâ
}
],
âcustomizeâ: {
âactiveâ: false,
âfolderâ: âmosquittoâ
},
âcertfileâ: âfullchain.pemâ,
âkeyfileâ: âprivkey.pemâ
}
I hope somebody can help me and make my sunday!
BR,
Lars
PS running HA 66.1