Hello,
I’m not using grafana for long. I’m currently trying to create a dashboard for my home’s energy use. I transmit the inverter data via MQTT to Grafana.
I’d like to make it so that when power comes from the source (PV, battery, grid), the color of the source is blue, but when power goes to this source (charging or selling) the color is green.
In my data source, I have a “Status” field that indicates whether current is being generated (2) or consumed (1).
Here is the MQTT payload:
In my transformations, I use “Extract Fields” to extract Photovoltaic source, Battery Source and Grid Source. Then, I used “Organise by fields name” to hide unwanted fields.
How can I change the color of one of my graphs based on this second value?
Thank you in advance,
Valentin