Improvements Wishlist

Way to pass parameters when calling Script

marcolino7Suggested this wish Β·

I have some script that need some additional data to work fine, here is an example calling a script from a card:

type: custom:button-card
icon: mdi:volume-minus
size: 34%
tap_action:
  action: call-service
  service: script.ir_ampli_mansarda
  data:
    comando_ir: VolDw

As you can see, some additional data is needed to script to work. Is it possible to add a field where pass additional data to a script?

Thanks

Discussion 0

Add a comment

Start the conversation

Share an example, ask a question or explain how you would use this.

Add your thoughts, a screenshot or a useful link.

Markdown & basic HTML
Paste or drop images Β· URLs on their own line become previews0 / 10,000
Create your account to join in

We need a verified email address to reach you about your contribution. Your address stays private.

Continue with GitHub

Your draft stays in this tab. Return here after verification.