Hi guys,
I am fairly new to HA and after countless futile attempts and days of google research I ask you now.
I try to define the systemmonitor according to the official documentation like this:
Unfortunalety that does not work.
The HA configuration checker says:
Invalid config for [mqtt]: [platform] is an invalid option for [mqtt]. Check: mqtt->mqtt->sensor->0->platform. (See /config/configuration.yaml, line 56).
Is the documentation wrong, or am I making a mistake?
As the error message states, platform is not a valid configuration variable for the mqtt platform… I suspect you are trying to do something like the following:
@ Didgeridrew:
as you can see in my first post, I definitely have only one sensor key as described in the HA documentation.
If I put the sensor statement on the same level as mqtt I get
Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 68).
Just tried to define the systemmonitor on the mqtt level
In your first post you have 0 top-level sensor keys. You have 1 sensor child key with mqtt as the parent. Under that you have a configuration stanza for 1 MQTT sensor, and 1 non-MQTT sensor.
As shown in the example I posted above. Your MQTT-based sensors must be children of the top-level mqtt key… non-MQTT sensors must be children of a top-level sensor key.*
Finally!
I’m not sure I’ve got the configuration guidelines right now, but as you suggested above, I’ve defined an additional top-level sensor statement after my other sensors and - it’s working now.
You are my hero of the day.
Thank you very much!