Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 111361

Automation, compare sensor with numeric helper

$
0
0

We live in a house where we still cook on (hopefully not Russian) gas. Unfortunately, the ventilation of the house is seriously deficient. For this I built a CO2 sensor, so that I at least get notifications when there is too much CO2 in the air, like with cooking.

However, I actually want to set up the automation so that I only get notifications when the CO2 level exceeds a certain value and keeps rising. And not if it drops (provided it is not severe).

For this, I have a condition in mind, but it doesn’t seem to work:

condition: numeric_state
entity_id: sensor.nocnoc_mhz19b_carbondioxide
above: "{{ states('input_number.co2_helper_a') }}"

I get the error message:

Message malformed: expected float for dictionary value @ data['condition'][0]['above']'

The value of the helper is delayed updating by another automation.
I’m doing something wrong, I know, but I don’t understand why it’s going wrong or how to fix it…
Would you guys mind taking a look with me?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 111361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>