Closed splattner closed 1 year ago
A quick question on this one now that it has been released... How do I pass parameters to the script that needs to be called? I can't seem to find that in the Web Configurator.
How do I pass parameters to the script that needs to be called?
That is currently not possible. For now, HA scripts can only be triggered. Supporting parameters will require more work, most likely with a new entity type, which supports dynamic parameters.
Since this PR is merged, let's continue in #20
thanks for reviewing it. Fmt errors are fixed, still new to Rust, that was my first code in rust ever ;)
I actually never had the need to stop a running scripts, mine are quite short. So for me, a button is enough. Yes, HA allows to stop a running script, there is a
turn_on
&turn_off
and also atoggle
service. And what I did here, is just calling it by name, which is what I did so far in HA. My personal opinion, I think its confusing to have this as a Switch, therefore I'd rather leave it as a Button. with only the the call by name.