Need help customizing a lovelace card for Nest Protect

I’m not sure its possible without a Custom UI as mentioned in this thread. I’m running Hass.io so I’m not sure this UI is compatible or not.

image

I’ve tried several suggestions on the forum without success as I also have the Nest protects.

customize: 
  sensor.upstairs_nest_protect_smoke_status:
  icon: mdi:fire
  templates:
    hs_color: >
      if (state === Ok) return 'rgb(124, 252, 0)';
      else return 'rgb(255, 0, 0)';

or

customize: 
  sensor.upstairs_nest_protect_smoke_status:
  icon: mdi:fire
  templates:
    rgb_color: >
      if (state === Ok) return 'rgb(124, 252, 0)';
      else return 'rgb(255, 0, 0)';

Neither config appears to make any change to the Icon colour in either LoveLace UI or the old interface. Someone else maybe able to advise on a solution.