I’m trying to create an expression in YAML to create a dynamic label for a gauge in the overview page of main UI. My problem is that I need to compare something with a Unit of Measurement (Watts) on it. The typecasting you can find in the forums does not work here. The version below does something, but is behaving unexpected. For example:
1 Watt -> Done
2 Watt -> Done
5 Watt -> Not done
50 Watt -> Not Done
150 Watt -> Done <-- ?!
=items.Waschmaschine_Watt.state < “3 W”?“Done”:“Not done”
I’ve not found any guidance to this in the docs. Any idea?