New MQTT config (json_attributes_topic)

Nice one!

Seems like I have about a million retained messages from my sensors etc… Good spot on this thanks

Got rid of all but 1 now… oddly not showing in MQTT.fx under Sensor even though the message states its a sensor

Hmm, odd indeed.
There’s a couple more things you could try.

  1. Perhaps there’s a package still using json_attributes. I was using the package battery_alert.yaml which had a few json_attributes references. FYI this package isn’t needed anymore because recent versions of zigbee2mqtt add a battery component for each sensor.
  2. I was having issues with mqtt-fx and mqtt-spy, so i installed mqtt snooper on my android phone. I subscribed to homeassistant/# which showed all messages. Cool thing about this app is you can use filters, so I filtered on “json_attributes” (including quotes so it doesn’t include json_attributes_topic).
  3. I don’t know if a) you use the integrated HA mqtt and b) the integrated HA mqtt stores mqtt messages into homeassistant.db, but if you don’t care about your sensors’ history, you could stop HA, remove (or rename) homeassistant.db and start HA. The database will be regenerated and you’ll only have lost your history.
    Hope this helps. Good luck!
1 Like

Nice I will have a look at your suggestions. I am happy to lose the DB only got a weeks worth of data so its not important.