Zon
February 28, 2023, 10:22am
1
Dont know for sure if this is the right place to post but I’m fairly new with Home assistant and am trying to make an automation using YAML. Right now Im sending a post request via Curl in the terminal like this:
curl --data ‘’ -X POST --header “auth token: token” http://IP/api/v2/info
My plan is to automate this command via de Homeassist but i couldnt figure it out by googling
Troon
(Troon)
February 28, 2023, 10:24am
2
Let us know if you get stuck.
1 Like
Zon
February 28, 2023, 11:17am
3
Thanks for the quick reaction.
It seems that this is what I was looking for, however I’ve got an error trying to format it this way.
shell_command:
test_sendcommand : 'curl --data "" -X POST --header "auth-Token: <token>" http://ip/api/v2/info'
Any clue on what i did wrong?
Troon
(Troon)
February 28, 2023, 11:19am
4
The error message might be a good clue .
Zon
February 28, 2023, 1:39pm
5
Yes of course, I was having some trouble with saving and realized I used capital letters where I shouldn’t have. Sorry for the extra post. It works now, thx for the Help!
1 Like
Welcome @Zon ,
Please flag @Troon reply as answer and mark your topic as solved
Before we begin…
This forum is not a helpdesk
The people here don’t work for Home Assistant, that’s an open source project. We are volunteering our free time to help others. Not all topics may get an answer, never mind one that helps you solve your problem.
[image]
This also isn’t a general home automation forum, this is a forum for Home Assistant and things related to it. Any question about Home Assistant, and about using things with Home Assistant, is welcome here. We can’t help you with e…