Closed ghost closed 2 years ago
anyone?
I have also tried replacing entity.state
with states['sensor.light_scene_should'].state
cheers.
I am having the same issue with:
state:
- operator: template
value: >
[[[ return states['sensor.hive_heating_current_temp'].state >= states['sensor.hive_heating_target_temp'].state ]]]
styles:
color: var(--state-on-color)
again I know that this should return 'true'.
Can I see the whole error please? And are you sure that this is the failing template?
Hi,
There is no error, but the style color: var(--state-on-color)
is never applied. I can change the >=
to <=
and still no color change.
Because color doesn't sit under styles
ugh. 'snow blindness'. I was missing label:
between styles:
and - color:
thanks!
Hi,
II cannot work out what I am doing wrong with this state template. I am trying to set a style based on the state on the entity in the button being the same as another sensor.
The relevant yaml is:
now, I can see in Developer Tools > States that _sensor.lightscene equals _sensor.light.sceneshould (i.e. it does not appear undefined to me). Why would I get this error?
thanks!