Error connecting to Raspberry Pi via web request

We are trying to get a trigger to run a web request and it keeps erroring out. We are at a loss as to what could be causing it and not sure if we are setting up the code correctly. The URL does work when using a get webhook in IFTT so we know the url is correct but not sure why it doesn’t work through home assistant.

In configuration.yaml we have tried:

rest_command:
  orange_request: 
    url: "http://myurl:5000/orange"
    method: get

and in the automation we have put but it errors out when triggering. We are not really even sure if rest command is the right command? Please help!

For those who weren’t on Discord, this turns out to have been a need to restart HA to load the new YAML.

1 Like