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

Pass numeric value of trigger template to action condition template

$
0
0

Hi All - Been scratching my head over this one for a couple of days now so any help gratefully appreciated:

I have the following automation trigger template which works:

{{ states('sensor.temperature')|float(0) > 35 or
   states('sensor.temperature')|float(0) < 1 }}

I then have a condition to determine if the value is above or below the trigger value. This always returns false irrespective of trigger value.

{{states('trigger.to_state.state') | float(0) > 35 }}

For some reason the trigger value is not being evaluated by the condition template.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 108187

Trending Articles



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