So I implemented a custom weather sensor. Part of the weather component is a sensor.warning.
Currently we have a Special weather Statement in our area. I figures this was a great time to implement a conditional card with a weblink to the weather statement if the sensor returned a Special Weather Statement, Watch, or Warning.
I have the card setup, I know the sensor state right now is - SPECIAL WEATHER STATEMENT
My conditional card code is:
#Weather Warning Card - type: conditional conditions: - entity: sensor.ec_warning state: 'SPECIAL WEATHER STATEMENT' card: type: entities entities: - weblink.weather_alerts
So with this the card doesn’t show up. But if I set the state to be SPECIAL WEATHER STATEMENT using the Set State option on the dev-state page the card appears until the sensor is updated.
The kicker is I’m getting SPECIAL WEATHER STATEMENT from the state column next to the sensor.ec_warning entry.
I’m not sure why the card appears when I manually set it.
Oh, I’ve also tried the state: with double quotes with no difference in the outcome.