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

Error when templating values in device trigger?

$
0
0

Hi …

The following trigger works with the constant numbers (15 and 60):

- id: bathroom_humidity_goes_low
    type: humidity
    device_id: ea366e5190f68e32fc354a80cf7cc390
    entity_id: 8115526df0131de8772f90f4afa4d1a8
    domain: sensor
    trigger: device
    below: 60
    for:
      hours: 0
      minutes: 15
      seconds: 0

And the following template works in other situations:

{{ states('input_number.bathroom_fan_time') }}

But if I try to replace the 15 or the 60 with the template, I get the following error:

** Error loading /config/configuration.yaml: invalid key: "{"states('input_number.bathroom_fan_time') ": None}"

Can anyone tell me what I’m doing wrong ?

Many thanks

Paul

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106682

Trending Articles



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