Hi All,
Since updating to .8.4.1, I’m now seeing this message in my HA log.
I use esphomeyaml to configure my MQTT devices that are triggering this error.
2018-12-14 17:32:40 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/light/laundrylight01/laundry_light_green_led/config: b'{"brightness":true,"flash":true,"name":"Laundry Light Green LED","platform":"mqtt_json","state_topic":"laundrylight01/light/laundry_light_green_led/state","command_topic":"laundrylight01/light/laundry_light_green_led/command","availability_topic":"laundrylight01/status"}'
2018-12-14 17:32:40 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on laundrylight01/light/laundry_light_green_led/state: b'{"state":"ON","brightness":255}'
2018-12-14 17:32:40 WARNING (MainThread) [homeassistant.components.mqtt.discovery] "platform": "mqtt_json" is deprecated, replace with "schema":"json"
I’m not sure if this a question for the esphomeyaml people (to change this ) or I need to do something in HA to fix it.
I have no idea what your devices are, so I cannot tell how you to upgrade them. You need to follow the instructions you used when you installed the code initially.
This message means that the platform will not be supported at some release in the future, so you need to update your device reasonably quickly to the new schema format.
You have to replace whatever is sending the discovery message in your system with a new version that sends the correct message. But since I have no idea how your system works, I can’t help you any further.
what can I do on the esphomelib side to avoid these error messages in the HA log?
I also see weird behaviour with, after triggering the relay, the status is “Unavailable” for some time, the switch in HA doesn’t move and then suddenly “jumps” to its new position with some delay. Sometimes the relay also seems to be triggered twice, at least you can hear it clicking twice. Maybe related?
this thread title says [solved] yet none of the posts are marked as the solution… I have this error and don’t use (any longer) MQTT so would like to know what I need to do to fix it if someone can assist
Thanks, I’ll give it a try when I get home. The only time I even use MQTT was with an ESP node using ESPhome before the API came out. I’ve since switched to the API but maybe there is still a retained message as you suggest. Cheers