I have an element in grafana that shows me the total Energy (kWh) that was sent to the Battery today.
The problem is that until my solar inverter begins to charge the battery, the field does not exists for a “today” query.
And so I get a “field not found” until the inverter begins to charge the battery.
I do not see a clever way for Grafana to change the field E_STORAGE_CHARGE to 0 if it does not exist, but in your results, to avoid the Field Not Found message, perhaps an override or value mapping expression in Grafana would help?
Not related to my issue.
The fields work just fine, if they actually exist/have data.
As I explained I have that problem only with the E_Storage_Charge field as that does not exist for today() until the inverter begins to charge the battery.
As a workaround I now use node-red to read the last value from E_Storage_Charge and store it in E_Storage_Charge at 0:01 AM, so from that time I now do have a value in E_Storage_Charge for today()