home-assistant-custom-components-cover-time-based icon indicating copy to clipboard operation
home-assistant-custom-components-cover-time-based copied to clipboard

Parameter to script

Open fabiobott opened this issue 4 years ago • 1 comments

Is it possible to send parameters to open script, stop script and close script? I have 12 covers and I wouldn't do 36 scripts. Thanks

fabiobott avatar May 23 '20 11:05 fabiobott

Not possible, sorry. I also have many covers (11). Making scripts for each is super-easy. Just create them for one of the covers, test them thoroughly, and after that just Ctrl+C and Ctrl+V for each and just replace the names accordingly. If you split up your configuration you can have the scripts in separate files/folders making things easy to look after.

As I've noted several times, the requirement to create the scripts is a way to stimulate people to adapt the component to their custom requirements straight in Home Assistant, without the need to learn programming in Py. One can create a Home Assistant script for anything. You can have any customly developed thing over there to move your curtains which easily embed in your script and then hook it into the time based cover component. You can even embed automations into scripts etc. this gives best flexibility.

There are literally dozens of cover-moving systems out there which weren’t designed originally to be integrated into a smart home system, it’s nearly impossible to create a custom component for each type. Now this is a more universal solution for such cases.

nagyrobi avatar May 23 '20 12:05 nagyrobi