Advertisement
314ma

on_off_colors

Feb 15th, 2021
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.19 KB | None | 0 0
  1. sensor.door_front:
  2.   templates: &on_off_color
  3.     hs_color: >
  4.      if (state === 'Open') return [0,100,50];
  5.       return [120,100,19];
  6. sensor.door_back:
  7.   templates:
  8.     <<: *on_off_color
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement