HA Control of myServer

More
7 months 4 weeks ago - 7 months 4 weeks ago #4648 by bowlingbeeg
Replied by bowlingbeeg on topic HA Control of myServer
@bitzerjd, you don't want to define each command in your config.yaml. Do it like I showed you with the {{ command }} syntax so that you can pass in the correct command to run each time you run the shell_command action.
Last edit: 7 months 4 weeks ago by bowlingbeeg.

Please Log in to join the conversation.

More
7 months 4 weeks ago #4649 by bowlingbeeg
Replied by bowlingbeeg on topic HA Control of myServer

bowlingbeeg, Your solution is almost identical to mine (by setting your request parameters into variables then making the HTTP request), except using CURL instead of a RESTFUL request. I am not all that familiar with HA, so I was wondering which is the better way to make HTTP requests in Home Assistant, and why?
 
I don't think it matter one way or the other.  curl is just a standard linux command line tool that is used for this sort of thing.  The HA rest stuff will work just fine for this.

Please Log in to join the conversation.

More
7 months 4 weeks ago #4650 by bitzerjd
Replied by bitzerjd on topic HA Control of myServer
Sorry, I don't follow what you are saying. When I try to create a script my screen and options are totally different. I'm fine leaving things where they are right now. My head is starting to hurt working through these hurdles... Thanks for the help, it's greatly appreciated.

Please Log in to join the conversation.

Time to create page: 0.187 seconds