How to work around Sensor 'entity is non-numeric' error

I have a MQTT sensor that gets data from a Watchman oil tank sender.

After a restart of HA, I always get errors on the dashboard ‘Entity is non-numeric: sensor_oil_tank_gauge_depth’.
Until a new reading is received via MQTT, this only happens a couple of times a day.

Its odd though, as on the settings page for the sensor, it simply says ‘Oil-Tank Gauge Depth: Unknown’. Yet on any dashboard it gives the error.

Is there anything I can do to work around this?

Is the sensor discovered or defined in YAML?

If discovered: no

If in YAML: yes, share your sensor config.

1 Like

Being new to HA, I am unsure of the answer.

I don’t recall adding any code for this, I seem to remember that once it was setup to talk to MQTT, it appeared automatically. The trending of the depth change on a graph was also automatic.