I have couple of rest commands in my configuration:
rest_command:
grenton_update:
url: http://192.168.0.11/HA_Listener
method: POST
headers:
accept: "application/json"
payload: '{"type":"light", "object":"{{object}}", "state":"{{state}}"}'
content_type: "application/json"
verify_ssl: false
grenton_update_cover:
url: http://192.168.0.11/HA_Listener
method: POST
headers:
accept: "application/json"
payload: '{"type":"cover", "object":"{{object}}", "action":"{{action}}", "value": "{{value}}"}'
content_type: "application/json"
verify_ssl: false
webhook_test:
url: https://webhook.site/xxx-yyy-zzz
method: POST
headers:
accept: "application/json"
payload: '{"type":"cover", "object":"{{object}}", "action":"{{action}}", "value": "{{value}}"}'
content_type: "application/json"
verify_ssl: false
They work fine most of the time. However, sometimes they just don’t reach the target. I specifically added webhook_test
to make sure it’s not something on the receiver side. The only way to make it work again is to restart the HA via Developer menu.
When HA fails and I run the same REST request from Postman it’s received by the target.
What should I do to troubleshoot the issue? Are there any logs related to restful command?