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?
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.
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.
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 %}