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

Cant use template in for field of trigger automation

$
0
0

Hi
I get the error : Message malformed: expected float for dictionary value @ data[‘for’][‘minutes’]
when I use this template in an automation


trigger:
  - type: no_motion
    platform: device
    device_id: e0954ea41d7a6da69baeff2e9558ed13
    entity_id: binary_sensor.v4b01_motion
    domain: binary_sensor
    id: '1'
    for:
      hours: 0
      minutes: {{states('input_number.timeout_offices') |float }}
      seconds: 0

when I test this out it works perfectly and returns a float

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106357

Trending Articles



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