Change cell color


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
  color: '=(items.GPSMarkatHome.state === "ON") ? "green" :
    (items.GPSRileyatHome.state === "OFF") ? "green" :
    (items.GPSEthanatHome.state === "OFF") ? "green" : "red"'
  on: true
  title: Presence

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