Run a shell_command from panel_custom

Hi all.
I want to a do panel_cutom with inputs and buttons.
Can I do some actions in hass (for example run shell_command) when the button is clicked?

If your not dead set on putting this in a separate panel you can create your shell commands and them call them with a script.

Adding the script to a group/view will provide the script on the HASS front end and there will be a “Activate” link next to it that will fire the script.

1 Like

And while your at it, check out the script @silvrr created for doing backups. He’s too modest to say it but it’s definitely a great addition to HA!

1 Like

It’s a good workaround but I want to input some data and run shell_command with this data as params.