Im very new to Home assistant and would appreciate some help

So i want to have a button that executes a command. in my configiration file i have-

shell_command:
power_on_outlet1:“start http://…”

Can someone ecplain to me how i can get a button to call this

Welcome!

You make this your button’s action: shell_command.power_on_outlet1.

You might want to co sider this too: RESTful Command - Home Assistant.

Remember to format code that you post on the forum. See #11: How to help us help you - or How to ask a good question.

Thank you im gonna try that now. Oh sorry about that i will look and properly format from now on.

Worked beautifully thank you so much for the guidance.

1 Like