I have an MQTT feed from my solar inverter which publishes a pair of values on the topic “solar/output” every five minutes, in the format such as this: {"power" : "4.562", "output" : "2.011"}
I want to extract both values into separate sensor states, “solar.power” and “solar.output”. This is what I have in my configuration file:
Thanks. I had tried with two completely separate sensor entries and that didn’t work either. What you’re suggesting is a kind of half way between my current effort and the earlier one.
I’m afraid I found the examples in the documentation, and those in the many forum posts I looked at, all rather confusing.
I’m still confused. I’m not at home right now but I’ll try your suggestion when I’m back.
In your configuration.yaml you can only have a single sensor: or anything alike for that matter (automation:, input_boolean, script:, etc). Take a look at the following link for further reading.