You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the variables to feed data into Home assistant from local sensors and different apis. For example I have a temperature / humidity sensor, which is updating two variables when it gets an update.
However, I want to show the unit in the UI. How can I set a unit of the variable in use?
I have this:
I want this (shot from other SH system):
The text was updated successfully, but these errors were encountered:
I don't think it's possible to assign a unit of measurement to a variable (treat it like a usual "variable" in a programming language), but you can setup a sensor like:
It should be possible as unit_of_measurement is an attribute and you can set the attributes of the variable.
The issue is currently the variable don't restore the attributes after a reboot if you need this.
I use the variables to feed data into Home assistant from local sensors and different apis. For example I have a temperature / humidity sensor, which is updating two variables when it gets an update.
However, I want to show the unit in the UI. How can I set a unit of the variable in use?
I have this:
I want this (shot from other SH system):
The text was updated successfully, but these errors were encountered: