Skip to content

Commit

Permalink
Update examples.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusthvdb authored Feb 2, 2021
1 parent 5ff031c commit 57a8ad2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ homeassistant:
device_tracker.googlehome_*:
templates:
icon_color: >
if (state == 'home') return 'rgb(0,128,0)'; # 'green'
return 'rgb(255,0,0)'; # 'red'
if (state == 'home') return 'rgb(0,128,0)';
return 'rgb(255,0,0)';
# as stated in the readme, any valid Css color code is allowed, abiove is identical to using the color names 'green' and 'red'

input_number.*_volume:
templates: # state is a string
icon: >
Expand Down

0 comments on commit 57a8ad2

Please sign in to comment.