For some of my actors I want to change the background-color if they are on. Therefore I used label-cells.
For some reason it is not what I expect. Here is my YAML-code which does not change the “Highlight Color” as expected.
In case I delete the line trendItem: shellyplugs80646f838323108668_Stromverbrauch then all is OK, the background-color changes according to the state of the actor.
This maybe a bug, or do I do something wrong ?
regards Paul
You can accomplish this my manually adding the trend line to the background of the cell using the oh-trend component. A background slot for the cell will override both the trendItem and color properties of the cell, but you can accomplish both of those within the oh-trend.
One caveat. The color property for the cell refers to the f7 color palette. When you move that to the background style of the trend line you are now using the html color palette and some of the color names may be a little different (but you also have far more flexibility). If you want to make sure that your colors match refer to the f7 color docs:
Thank you Justin, this is a solution.
Up to now I didn’t find a limitation saying “either the background is a color or a trend item.”
Therefore it must be a bug…