Cannot create temperature entity from climate using a template

I have spent weeks trying to work this out on my own but I need some help. I think I’m looking to hard and missing something simple.

I’m trying to create a Thermostat to control an A/C unit and want to use the current_temperature value from the A/C integration as the input for the thermostat.

As its a climate sensor i need to use a template to extract that value, but after following may guide and reading endless post i can;t make it work.

The error is telling me that the value needs to be a number but i presume its unhappy as its being reporting as a string, other people don’t seem to have the problem and the below configure should work. what am i doing wrong?

Remove the trailing double-quote character from your template. It’s being included with the temperature value thereby changing the result from a number to a string.

{{ state_attr('climate.man_cave', 'current_temperature') }}"
                                                           ^
                                                           |
                                 Delete this double-quote 

Thank you, as i suspected, I was looking so hard i missed something super obvious

1 Like