#Kitchen timer for plug

1 messages · Page 1 of 1 (latest)

humble kettle
#

@surreal tide I have an input_datetime helper that I can change in lovelace and am trying to access it in a script with a delay. - code is in the above linked thread.

surreal tide
#

what you have works

humble kettle
tropic vault
#

did you checked the logs?

#

is there an error saying invalid value or something like that for the automation?

surreal tide
#

It's a script though 😛

humble kettle
humble kettle
surreal tide
#

No need to ping me on a reply, it just encourages me to ignore you

humble kettle
humble kettle
#

👌🏼- thank you very much!

humble kettle
tropic vault
#

😄

#

the delay actually not working I think

#
hours: '{{ state_attr('input_datetime.he_charge_time', 'hour') }}'```
humble kettle
#

I don’t know what I did wrong with Tinkerer (not tagging on purpose) - i appreciate their time and want to avoid bugging people in the future.

tropic vault
#

also there's no hours attribute of the datetime

#

when you reply there's a on/off which allows to ping ppl

#

he doesn't like it when it's on

humble kettle
tropic vault
#

yes

#

delay: input_datetime.he_charge_time

#

like that

humble kettle
#

But i have to wrap it in a state_attr(), i take it?

tropic vault
#

no

humble kettle
#

Thank you 🙏🏼 - much appreciated

tropic vault
#

only if you want the attribute of the entity

#

in that case it's better as it's fail safe

#

look my previous message how to give it

#

as you don't need template either there

#

I think

humble kettle
#

Got it

#

I’ll try

humble kettle
#

turns out it was a quoting issue: delay: "{{ states('input_datetime.he_charge_time') }}" all the quotes are necessary

#

The thing now works as expected.