This should theoretically turn the cell orange, when that item changes to “on”. Instead the cell always is orange. With other items similar results, mostly they get always the highlight color, in one case it never gets the highlight color.
The only working dynamic colors are there, where the change through the primary item is working.
I have the impression, that I am missing something substancial - but I am lost in both creation and debugging of those gui elements and thankful for any hints.
Nope he is on the right path.
You are setting your color according to state, but somewhere you have to define the “on” state.
@WoRockt: Why do you compare your string to ‘on’ instead of “ON”? Can you go to developer settings and enable the developer sidebar, then use the widget expression test area to see what =items.heatSources_Hs1_FlameStatus.state gives back?
Think of the color as the “ON” state of the cell. When your cell is “ON” it will have the color you set, otherwise not. Also, having a trend line displayed will prevent you from being able to change the color!
@BobMiles Give me a hint please - I cannot find the developers settings for the developer sidebar- neither in „normal“ settings nor in the developer area. Although I remember reading about it in an announcement…
Hi,
it should be in the side menu under developer tools - unless you are on a mobile device, then that is missing for me.
I was only able to access it via pc for now…
nothing strange at all. You can either have the cell “always on” with on: true and change the color with a conditional statement - or you have only a static color but change the on-state of the cell conditionally.
Think of it as in a light bulb, you can either have the switch set to ON all the time and change brightness to 0 or a 100 to turn it off and on, or you keep the brightness and use the switch instead.