"home assistant entity is non-numeric" on my Gauge Card

I’m sure this is terribly easy, but, I have only been working with Hass for 24 hours now–I cannot seem to figure out how to make this gauge show “0” when the hot tub is turned off. It just shows what you see in the screenshot. Can anyone assist with the code to make it report 0 so it will show a nice gauge and not an error message when the hot tub is turned off?

Much appreciated!

You could make a conditional card, so it displayed off of the spa is off and the gauge when the spa is.on?

Yes, I do think that is going to work! I just worked it up and I will try it later when I turn the spa heater on. Thank you!

How was the sensor created in Home Assistant?

There may be an easy way to make it display 0 (rather than unavailable, which is probably what is happening).

The sensors are added when I added the iAqualink service. I would prefer the card just not be there if the hot tub is not running since it’s connected to the pool–the same temperature for both, unless the hot tub is turned on. I think this “hidden” card will solve it–I’m going to try it tonight when I turn on the hot tub.

1 Like

0 isn’t really accurate when it’s off. It will still have a temperature just not measurable.
I feel it’s better to display OFF or hide the card when it’s off.

It’s what Mark asked for initially.

If you are still having an issue, there are 2 solutions.

1 - Create a ‘dummy’ sensor, I do this for my pool temp so it doesn’t display unknown.
2 - create a conditional card so it only shows based on a condition.

Pool Temperature Status Sensor

# Pool Temperature Status Sensor
-   platform: template
    sensors:
      pool_temp_status:
        unique_id: pool_temp_status
        friendly_name: "Pool Temp Status"
        icon_template: >-
          {% if states('sensor.pool_temp')|int > 0 %}
            mdi:thermometer
          {% else %}
            mdi:thermometer-off
          {% endif %}
        value_template: >-
          {% if states('sensor.pool_temp')|int > 0 %}
            {{states('sensor.pool_temp')}} °F
          {% else %}
            OFF
          {% endif %}

image

Hi
I also have this problem
Am I doing something wrong in yaml?


Bildschirmfoto vom 2022-07-08 13-47-16