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

Rest API and Service Call

$
0
0

@puzuwe wrote:

Example configuration.yaml entry

rest_command:
my_request:
url: https://ifmcaretest.co.uk/php-api-v2/api/3-users.php/
method: POST
payload: ‘{“req”: “{{ status }}”,“sensor_name”: “{{ emoji }}”}’

and in the service
{
“status”:“createSensor”,
“emoji”:“test3”
}

But when I call the api there is no insert into the external database as required. Please what could be wrong with this. This is my first rest call.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



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