custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
164 stars 50 forks source link

Template in service add to stock #272

Open cob94440 opened 1 year ago

cob94440 commented 1 year ago

Hello Is it possible to template the add to stock service. I want to put 5 bag in an input number and pass this to a script like :

alias: Achat sac pellet sequence:

But it doesn't work :

image

karwosts commented 1 year ago

I don't think what you have is a valid template.

Try

"{{states('input_number.qty_achat_sacs_pellets')}}"

cob94440 commented 1 year ago

Thanks. It seems better