MQTT sensor, missing platform

Hi,

I have this strange issue, my manually added MQTT sensors are not working in the new config, the error reads: Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 11).

As far as i can tell i am using the latest syntax as per MQTT Sensor - Home Assistant

So …im not sure what i am doing wrong…help?

Just a quick guess: With the new config you should put the mqtt sensors either in configuration.yaml directly under the mqtt: key, or in a mqtt.yaml file that you include. not in the sensors.yaml file.

2 Likes

Yes that fixes it, strange but true, thank you :slight_smile:

Thank you. This just helped me set up a mqtt-driven metermon sensor!