HA-Sensor numeric: unknown


If a numerical comparison: greater than or less than - is used in the automation, the automation stops if the sensor has the status "Unknown" for any reason:

"Unknown" status

Executed: May 4, 2023 at 7:20:27 AM
result: false
message: value 'unknown' is non-numeric and treated as False

Solution: Value Template

This can be remedied by using a "value template" in the automation: 

{{states('sensor.rain_zamg_12') | default(0)}}

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

created by Bernhard | published: 2024-01-07 Übersetzung Deutsch |🔔 | Comments:0

Questions / Comments

By continuing to browse the site, you agree to our use of cookies. More Details