i do have a gauge, which displays my (numeric) state of a solar panel in W(att).
When, at night time, the panel is beeing completely shut off, i get an “entity is not numeric” error at the gauges position.
How can i achive a numeric 0 when state is really “undefined” or not numeric?
I imagine i have to use a template, right?
If your original sensor isn’t created by an intregration that you can control then you can cast the state of the original sensor to a float which will return a zero for any non-numeric values.
Sorry for not delivering all necessary information.
The sensor is coming from the SMA integration and is giving me an numeric value during daytime by reading the corresponding key off of the inverter. it’s not based on a template or something.
During nighttime the solar inverter is completely shutting down, and I get a non numeric state instead of 0.
I hoped for a solution without setting up an additional template sensor, but will try.