zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

"platform": "mqtt_json" is deprecated, replace with "schema":"json"

Open trwolff04 opened this issue 7 years ago • 6 comments

I'm receiving this message under errors after upgrading to the latest version of hassio.

Log Details (WARNING) Sun Dec 16 2018 14:53:45 GMT-0500 (Eastern Standard Time)

"platform": "mqtt_json" is deprecated, replace with "schema":"json"

Any ideas?

trwolff04 avatar Dec 16 '18 19:12 trwolff04

Have you updated to the latest, looks like this was fixed a day ago

danpowell88 avatar Dec 16 '18 23:12 danpowell88

Has been fixed in https://github.com/Koenkk/zigbee2mqtt/pull/689 (which is in 1.0.0). These are probably old MQTT messages which are still retained by the broker.

Koenkk avatar Dec 17 '18 07:12 Koenkk

Hi. I have the same issue. I have tried to delete mosquitto.db and homeassistant database. Is any retained kept in zigbee2mqtt?

BergAutomations avatar Dec 17 '18 08:12 BergAutomations

I am on version 0.2.0 ... I dont see an update available for hass.io add-on yet. I have auto update checked. That's the latest release ( Nov 14 ) on github.

trwolff04 avatar Dec 17 '18 13:12 trwolff04

@trwolff04 1.0.1 is now available for hassio.

For those still having this in their logs:

  • Download mqtt.fx
  • Subscribe to zigbee2mqtt/light/+/+/config
  • Create a list of all topics that published with a payload containing mqtt_json.
  • For all these topics, publish and empty retained message.

Koenkk avatar Dec 20 '18 18:12 Koenkk

I had to subscribe to the following

homeassistant/sensor/+/+/config homeassistant/light/+/+/config homeassistant/switch/+/+/config

Then sent an empty message to the RETAINED via MQTT.fx and got rid of all but 1 of my errors in the log

stratplayer avatar Feb 10 '19 22:02 stratplayer