But the icon shows up white. Am I doing wrong or is it simply not supported? I verified that #āMyThermostat_Temperatureā returns a dimensionless number.
I donāt use the floor plan pages, but Iām fairly certain that the answer is ānot supportedā.
The functions configuration is only available in the oh-context component. You cannot add functions to the page configuration, and thereās no place in the overall page floor plan page to add an oh-context component.
It is a reasonable idea, however, to be able to add a context with functions and constants to an entire page. So, it might be worth putting in a feature request in the MainUI repository to see if this gets any traction from the UI devs.
Agree - it would make life so much easier if you use floor plans with repetitive configuration selections⦠Currently I have this for all my thermostats in my floor plans - very DRY workā¦
I was lucky I never had to change my expression for the icons and icon color after I first came up with it.
To not be bored too much I just use the copy-dialogue in the visual designer to generate a new instance of a thermostat. This at least saves a little time.
Yes being able to use a function is great and should be added if possible.
Now that the pages can be created using file-based yaml, we can copy paste the common stuff.
Then the coming yaml composer can DRY it using a template, alias or include file so there will be no repetition in any yaml file. You can modularize and even parameterize every part of your page, and even share the same piece of code across multiple pages.