Hello Khimo
Support,
thanks for
your reply and I am looking forward to your further explanation. I think that
all the bits and pieces are there, but I have no clue how to combine them into
one HTTP-request…
My home
automation system is able to send and receive WebHooks.
General format:
URL: (IP)
Method: GET;
PUT; POST; DELETE
Content Type: application/json;
application/x-www-form-urlencoded; text/plain; application/xml
Body: (code)
Here are
some examples:
Xiaomi Yeelight Candela BLE Lights
URL : http://(IP)/api/manager/logic/webhook/toggle
Method: GET
Content Type: (optional)
Body: (optional)
NUKI Smart Lock
URL: http://(IP):8080/lockAction?nukiId=(ID)&deviceType=2&action=3&token=(token)
Method: GET
Content Type: (optional)
Body: (optional)
LametricTime
URL: http://dev:(secret)@(IP):8080/api/v2/device/notifications
Method: POST
Content Type: application/json
Body: {
"priority": "warning",
"model": {
"cycles": 1,
"frames": [
{
"icon": "9832",
"text": "HELLO!"
}
],
"sound": {
"category":
"notifications",
"id":
"cat"
}
}
}
Do you have
any hint for me how the HTTP-request should look like and where to put the authentication
information?
Thanks!
Best
regards
Doc Leisure