-
I have a very simple example where I'm trying to draw a static rectangle on a graph which changes its fill color based on the state of a binary sensor value. Can someone tell me why it doesn't like the syntax? - entity: ''
name: Zone1
mode: lines
fill: toself
fillcolor: >
$ex hass.states["binary_sensor.esp32_home_zone1_presence"].state === "off"
?
RGBA(20,200,0,0.06) :
RGBA(20,255,0,0.1) it says:
|
Beta Was this translation helpful? Give feedback.
Answered by
citoki
Oct 31, 2023
Replies: 1 comment
-
@greg80303 try to write the rgba values in single quotes line:
color: rgba(20,255,0,1)
fill: tozeroy
fillcolor: >
$ex ys === "Idle" ?
'rgba(20,200,0,0.06)' :
'rgba(20,255,0,0.1)' |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
greg80303
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@greg80303 try to write the rgba values in single quotes