I’m new to HA and find it all a bit confusing, so this question may be simple and hope you can help.
I have an air conditioner integrated through Sensibo (boy was that an effort for me!). The device exists, but there doesn’t seem to be a current temp entity that I can use in other cards etc.
How do I take the data from one entity and split it so I can use it?
The only thing I would add is a state_class (for long term statistics) and a device_class (mainly for the icon, you could also just add mdi:thermometer).
Also please heed this warning when constructing templates:
Hi @tom_l - device_class seems to work fine but state_class causes an error:
Invalid config for [sensor.template]: [state_class] is an invalid option for [sensor.template]. Check: sensor.template->sensors->zone_1_temp->state_class.
Oh. I thought that had been added. Must still have to use customize for that. Sorry.
Nope. Not unless doing any mathematical operations in the template. Even then you might be able to get away without it. Unlike states (that are always strings), attributes can have other types. In this case it is very likely a number already. Mine are.
That whole thing about ‘when is it a number and when is it a string?’ and the conversion from a string to a number, still trips me up, just like the spaces in yaml