johanmeijer / grott

Growatt inverter monitor
https://github.com/johanmeijer/grott/wiki
394 stars 109 forks source link

HA sensor integraton / configuration: mqtt_growatt_eng.yaml, line 121: required key 'platform' not provided #533

Open typxxi opened 6 months ago

typxxi commented 6 months ago

I followed this description, I mean the mqtt section only and not the ha integration here:

https://github.com/johanmeijer/grott/tree/master/examples/Home%20Assistent

I have moved all sensors from config.yaml into /sensors/sensors.yaml

But I get this error after booting is completed in my notifications

Logger: homeassistant.config Quelle: config.py:1335 Erstmals aufgetreten: 17:08:26 (20 Vorkommnisse) Zuletzt protokolliert: 17:08:26

Attention: I have added lines in the mqtt ... yaml therefore the numbers of the lines will be different. All these added lines are descriptions which means they start with #

Invalid config for 'sensor' at sensors/mqtt_growatt_eng.yaml, line 121: required key 'platform' not provided, please check the docs at https://www.home-assistant.io/integrations/sensor
Invalid config for 'sensor' at sensors/mqtt_growatt_eng.yaml, line 143: required key 'platform' not provided, please check the docs at https://www.home-assistant.io/integrations/sensor
Invalid config for 'sensor' at sensors/template_growatt_eng.yaml, line 6: required key 'platform' not provided, please check the docs at https://www.home-assistant.io/integrations/sensor
Invalid config for 'sensor' at sensors/template_growatt_eng.yaml, line 13: required key 'platform' not provided, please check the docs at https://www.home-assistant.io/integrations/sensor
Invalid config for 'sensor' at sensors/template_growatt_eng.yaml, line 19: required key 'platform' not provided, please check the docs at https://www.home-assistant.io/integrations/sensor

I have followed the instructions step by step.

I am running grott on a pi 3 with a manual setup (no docker right now) which I had setup yesterday and that finally worked since I turned the auth= False line in the grott.ini to true. I wonder why that is set to false if in the following line the user and password are mentioned . I was not aware that option which I had to replace with True in HomeAssistant cause otherwise I got mqtt errors en masse.

Since then I saw all the messages rushing through. I was also able to enable the multinverter option in grott ini and I even could see the messages from the inverters rushing in (I have 8 growatt, Min 4600, Mic 3000, Mic 2000, Mic 600 and SPH 4600).

But regarding the HA mqtt sensor integration I have not found any hints what I have to add or change for multiple.

But right now I am stuck with this error mqtt_growatt_eng.yaml, line 121: required key 'platform' not provided, please check the doc

I tried the documents linkt in the error message but I have no clue at all

Thanks a lot.