Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95414

RESTful command and templated url problem

$
0
0

@hkapanen wrote:

Hi,

I’m trying to post a simple http command to a device with a RASTful command but fail to get the variables through to url;

rest_command:
  set_garo_timer:
    url: http://192.168.0.230:80/v1/timer/{{ id }}
    method: POST
    payload: 'test'
    verify_ssl: false

When calling this from dev tools services with {id:"0"} as data, I get in log:

Error 404 on call http://192.168.0.230:80/v1/timer/.

Also, the payload does not seem to appear there.

Any Advice, please?

Oh, this is with Hassio 0.101.3.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>