#✅ Trigger variables not working in "for minutes"

1 messages · Page 1 of 1 (latest)

spare yarrow
#

I am trying to define an automation that is triggered for multiple light drivers, and I want to define the minutes that is turned off as a variable, but does not work.

#

Neither of these options (variables or trigger_variables) does work

mighty parrot
#

"{{ minutes_wait | float }}"

spare yarrow
#

that doesn't seem to work in both cases,

#

(i'm using Home Assistant 2024.11 if it helps)

candid lagoon
#

You can't template device trigger for field

marsh dirge
#

Use a State trigger

spare yarrow
#

checking...

full jewel
candid lagoon
#

you replied too fast

mighty parrot
#

i didn't even notice the device-ness 🤮

#

i think my mind just skips over it

#

refuses to acknowledge

candid lagoon
#

I can't stand that it's a thing

#

it's good for event based things, that's it

#

but now that there is event entities, it's not even that greate for them either anymore

spare yarrow
#

✅ Confirmed, needs quotes and trigger state . Thanks!

#

filter int or float doesn't seem to be required, but quoting does

#

✅ Trigger variables not working in "for minutes"

candid lagoon
#

FYI, you don't need the | int

#

it's already an int at that point

spare yarrow
#

yep yep, noticed that as well 🙇‍♂️

mighty parrot
#

it only gets string'ed if it's a state at some point

candid lagoon
#

well, if you pull it from the states table/machine

mighty parrot
#

yeah that

#

you know what i meant 😛

candid lagoon
#

Never!