Change cell color

Hello,

I want that the color of the cell is changed when the state of my jablotron system is armed or disarmed.
for now i am only able to have the label changed to armed or disarmed.
You can find the yaml code that i use.

You would do something like the following:

component: oh-cell
config:
  color: '=(items.GPSMarkatHome.state === "ON") ? "green" :
    (items.GPSRileyatHome.state === "OFF") ? "green" :
    (items.GPSEthanatHome.state === "OFF") ? "green" : "red"'
  on: true
  title: Presence
slots:
  default:
...

PS. Please use code fences - makes it easier to see what you are doing :slight_smile: