Hello,
I would like to know if it is possible to have a restart or shutdown button on the left panel, like the configuration button added with panel_iframe ? I already added a group with the restart service and it works but I think it would be nicer on the left side.
Thank you
I’ve never done one myself but here is how you can do it:
Thanks for your help Finity, but I saw that resource already, my problem is how do I pass a restart script in a url…
You could create an automation that calls the script via webhook trigger.
Thanks Namekal
I already created a group that call a script to restart home HA and it works but I believe it would be nicer on the left panel. Any light on how to make a web hook trigger?
I apologize as apparently what i was thinking wont work because I forgot that the webhook is triggered via POST and not GET. However, this section has some info on the webhook trigger (the webhook in the url can be defined as whatever you like.) https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger