Hello everybody,
Until this morning, I had a working MySensors integration on Home Assistant using the MQTTGateway. This morning, I upgraded my host-system to Ubuntu 20.04 LTS, and although Home Assistant itself is running perfectly, I can’t seem to get the MySensors integration part working again. I am not completely sure this is related to the upgrade, but it would be a very unlucky coincidence ![:wink: :wink:]()
My configuration is still quite simple, with 2 remote sensors, one publishing the temperature based on a Dallas sensor, the other publishing both TEMP/HUM based on a DHT22. The configuration.yaml looks like this:
mysensors:
gateways:
- device: mqtt
persistence_file: '/tmp/mysensors.json'
topic_in_prefix: 'MySensorsOut'
topic_out_prefix: 'MySensorsIn'
Now, the problem is in my opinion easily pinpointed to the MySensors integration, as the MQTTGateway has always continued writing sensor-values to the Queue, but since the update, no entities are created anymore.
In the logs, we can see that the Home Assistant plugin is loaded correctly, and that a subscription is successfully done.
2020-05-04 14:11:16 INFO (MainThread) [homeassistant.setup] Setting up mysensors
2020-05-04 14:11:16 DEBUG (SyncWorker_9) [mysensors.persistence] Loading sensors from persistence file /tmp/mysensors.json
2020-05-04 14:11:16 DEBUG (SyncWorker_2) [mysensors.persistence] Saving sensors to persistence file /tmp/mysensors.json
2020-05-04 14:11:16 INFO (SyncWorker_4) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
2020-05-04 14:11:16 INFO (MainThread) [homeassistant.setup] Setting up tts
2020-05-04 14:11:16 INFO (MainThread) [homeassistant.setup] Setup of domain mysensors took 0.1 seconds.
2020-05-04 14:11:16 INFO (MainThread) [mysensors.gateway_mqtt] Setting up initial MQTT topic subscription
2020-05-04 14:11:16 DEBUG (MainThread) [mysensors.gateway_mqtt] Subscribing to: MySensorsOut/+/+/0/+/+, qos: 0
2020-05-04 14:11:16 DEBUG (MainThread) [mysensors.gateway_mqtt] Subscribing to: MySensorsOut/+/+/3/+/+, qos: 0
2020-05-04 14:11:16 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
2020-05-04 14:11:16 INFO (MainThread) [homeassistant.setup] Setting up hassio
2020-05-04 14:11:16 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 0.0 seconds.
2020-05-04 14:11:17 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 9.94s
2020-05-04 14:11:17 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2020-05-04 14:11:17 INFO (SyncWorker_3) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2020-05-04 14:11:17 INFO (MainThread) [homeassistant.core] Timer:starting
I also know this subscription works well, because creating a manual topic causes the system to react. Publishing MySensorsOut/3/0/0/0/0 causes the following item in the logs:
2020-05-04 14:16:22 DEBUG (MainThread) [mysensors.gateway_mqtt] Receiving 3;0;0;0;0;20
2020-05-04 14:16:22 WARNING (MainThread) [mysensors] Node 3 is unknown
2020-05-04 14:16:22 ERROR (MainThread) [mysensors.handler] Node 3 is unknown, will not add child 0
Things that I have allready tried:
- restore of a snapshot from when MQTT was still working. Both with Restore and Restore & Wipe = no luck
- disabling and re-enabling of the Mysensors-integration = no luck
- disabling the persistance-part in the config = no luck.
- restarting the MQTTGateway = no luck.
- restarting almost everything else including emptying the MQTT-queue= no luck
- update to 0.109 = no luck.
Does anybody have an idea what could be causing this issue?
Many thanks & Stay healthy!
Hans.