Allow Lovelace cards to add automations, scripts and helpers #7350
Replies: 3 comments 2 replies
-
There's nothing really stopping a card from all ready doing this as far as I know. You just need to look through the codebase to find the proper API/WS calls to list/create/delete them |
Beta Was this translation helpful? Give feedback.
-
@KTibow the method is documented but not all endpoints |
Beta Was this translation helpful? Give feedback.
-
Another method to do this would be to create a lightalarm integration and have that create the necessary helpers in the backend. The integration can also serve the frontend card code through its own endpoint on the HA webserver. I believe Dwain (of Dwains theme fame) is working on something like this... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I think Lovelace cards could cover a much wider range if they had the ability to define automations, scripts and helpers by themselves. For example if a card is for a much more abstract feature than just editing an entity (for example my lightalarm-card) this would be very helpful, so the user doesn't have to manually create all things required for such a card to work
Beta Was this translation helpful? Give feedback.
All reactions