Hi there,
I am playing around with the RESTful API using JSON POST calls from my Home Automation Gateway (that supports webhooks with the GET, POST, PUT, DELETE method and content types (e.g. application/json - which I am using) to HASS and I am asking myself:
Is there any logfile (where?) or a logfile Verbose mode (over and above logger:) showing what has been received on the API and why sth. is not doing what is expected?
What I am doing:
I am posting this
{ “command” : “PowerOn”, “entity_id” : “remote.harmony”, “device” : “40613107” }
to
http://192.168.178.61:8123/api/services/remote/send_command
Edit: Found the missing backslash (corrected now), on the log it shows there is a service call now, but no action. Changed the logging via adding logger: to configuration.yaml, but no info on how the input is hamdled inside HASS.
with no api_password being set (double checked), using the content type application/json.
Expectation is:
Harmony turns on my TV (the number 40613107 comes from the file harmony_wohnzimmer.conf in my config Dir on HASSIO; the same for the command).
Reality is:
Nothing happens and I do not find anything on the regular logs (hassio homeassistant logs via the shell and the API error_log (/api/error_log).
Double and tripple checked the functionality of Harmony itself (it works fine with the Harmony App).