custom-components / pyscript

Pyscript adds rich Python scripting to HASS
Apache License 2.0
873 stars 46 forks source link

Feature Request: Make apps configurable from Home assistant UI #571

Open fredrikwestman92 opened 8 months ago

fredrikwestman92 commented 8 months ago

I think it would be a nice feature if you could make and configure app instances from the Home Assistant user interface, as oppose to only being able to set them up from the config file. Both methods could coexist similarly how you can create template sensors for Home assistant both in the configuration file and the user interface.

Each app instance could also be represented by an entity, with a state telling you the last time it ran. This would also give the oppertunity to set up a functionality to disable the apps when you disable the entities. A nice an easy way to manage your apps. (If this is added maybe stand alone pyscripts could be represented as an entity aswell so you can disable them too)

One thing that would be needed to add to make this a posibility is some kind of way to specify what parameters your app expects so Home Assistant know what fields it should ask the user to fill in. Maybe an optional yalm file can be added to each app where the user specifies this.