Show only the number (in Celsius) from a DECT Comet Thermostat

Hello, I am a newbee :slight_smile:
I just try to let me showing only the Number of the temperature of my Comet DECT ( fom Fritzbox) , but he didnt show …can someone tell me …is this possible ?

this is the only number I want to see in dashboard :slight_smile:

The Gauge card expects an entity that reports a numeric state value. A climate entity’s state value is not a number. What you want is to have the Gauge card display the climate entity’s current_temperature attribute. Unfortunately the card can’t be configured to use an entity’s attributes.

Here’s what I suggest you do:

  1. Create a Template Sensor that reports the value of the climate entity’s current_temperature attribute.

  2. Configure the Gauge card to use the Template Sensor you created.

Let me know if you need help to create the Template Sensor. You can create it using YAML or via the UI as a Template Sensor Helper.

1 Like

Thanks to try to help me :slight_smile:
I think I can make an template in UI …but how I can get the name of this entity ( 17.5 )
I try " sensor.schlafzimmer_current_temperature " … only errors :slight_smile:

Probably

{{ state_attr('climate.schlafzimmer','current_temperature') }}

Have a look in Developer Tools / States for confirmation. For me, it’d be

{{ state_attr('climate.central_heating','current_temperature') }}

and that would return 19.1 at the moment:

Here’s the template sensor for mine:

1 Like

The nature of your question suggests you do need help to create a Template Sensor.

The value you want was explained in my previous post: it’s the current_temperature attribute of your climate entity.

Getting the value of an entity’s state or one of its attributes is explained in the Templating documentation. Troon has spared you a trip to the documentation and provided you with an example of the template needed to get the value of a climate entity’s current_temperature attribute. It simply requires the use of the state_attr() function.

Here’s an example of how to create a Template Sensor using YAML. It creates sensor.schlafzimmertemperatur which is what you would then use in the Gauge card.

template:
  - sensor:
      - name: schlafzimmertemperatur
        state: "{{ state_attr('climate.schlafzimmer', 'current_temperature') }}"
        device_class: temperature
        unit_of_measurement: '°C'

Or you can create a Template Sensor via the UI as a Template Sensor Helper. The last image in Troon’s post shows an example of a Template Sensor Helper.

1 Like

Thanks a lot, i see a temperature ! :slight_smile:
have to work now, but in a few hours , will test this more :slight_smile: Thanks !