Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95397

After Mysensors library upgrade from 2.3.1 to 2.3.2 with MQTT: HA sensor don't update anymore his state

$
0
0

@evb wrote:

It did take me some time to find the solution so I thought that putting it on the forum can help other people to find quicker the solution.

After upgrading my sensors and the gateway from the MySensors library 2.3.1 to the latest 2.3.2, my HA sensor didn’t work anymore.
I saw arriving the mqtt messages into the Developer Tools, MQTT tab, but my HA sensor didn’t update!

First some background information. The HA Mysensors integration saves the information about the found mysensors by default into a persistence file mysensors1.pickle. You will find this file in the same folder as your HA configuration.yaml file. Verify your HA configuration if you did override this by your own path/file.
In this file the version of mysensors is saved and somehow HA detects not that it changed, so it is using the old information and it doesn’t work anymore.
Some remark though: I ‘think’ that this is the reason. If someone knows the exact reason, please do a reply.
The solution is to delete this file mysensors1.pickle and to restart HA so that HA can recreate the file with the correct information.

In short:

  • stop the HA server
  • delete the file mysensors1.pickle (or move it to another folder as backup file)
  • restart the HA server
  • the file mysensors1.pickle will be recreated, but it will be empty!
  • restart the mysensor Arduino by removing the power and putting back the power. At this moment the Arduino sensor will redo his ‘presentation’
  • the file mysensors1.pickle will now be filled with the correct sensor information
  • that’s all

HA will again create the HA sensor and you will see again the state of the HA sensor in your dashboard.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>