Trend sensor produces an error, need some setup help

Hello,

I’m relatively new to HA, and it’s taken some time but I have been able to work through all issues… except this!

I need a trend sensor for my HVAC temperature. I have added the helper, and configured it every way possible, all I get is the following in my logs:

Error processing sensor state change for entity_id=sensor.abq_office_kitchen_nativezone_temperature, attribute=state_class, state=72: could not convert string to float: <SensorStateClass.MEASUREMENT: 'measurement'>

I can confirm that the sensor it is trying to pull the data from does indeed display the temperature.

I have even tried creating a “Combine the states” helper (it shows the temperature properly), and then tried using the Trend sensor to pull from that.

And all I get is…

Error processing sensor state change for entity_id=sensor.temp_test, attribute=unit_of_measurement, state=72.0: could not convert string to float: <UnitOfTemperature.FAHRENHEIT: '°F'>

I would truly appreciate any help as this is all that is keeping me from completing a large HVAC automation.

Delete this:

image

You want to track the sensor state. Not the attribute that shows the unit. That’s just °F not a number.

Thank you!

I thought I had tried that, I think I tried every combination possible, but apparently when I did try to delete that, it would not let it be blank again. So when I saved it reverted back to what was previously there.

I was able to re-create the sensor and this time I didn’t touch it from its default state. It worked great.