Open e1l52 opened 4 years ago
Hello,
Many thanks for this very powerful plugin. I am trying to use it to access the Synology Web API, and I am running into the same issue, i.e. the login URL returns a session key that needs to be passed in the ensuing URLs (&_sid=
{ "accessory": "HttpAdvancedAccessory", "service": "Switch", "name": "SSHomeMode", "forceRefreshDelay": 5, "username": "admin", "password": "admin", "debug": false, "urls": { "login": { "url": "http://xxx.com:5000/webapi/auth.cgi?api=SYNO.API.Auth&method=login&version=7&account=admin&passwd=admin", "mappers": [ { "type": "jpath", "parameters": { "jpath": "$.data.sid" } } ] } "getOn": { "url": "http://xxx.com:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.HomeMode&method=GetInfo&version=1&_sid=${sessionkey}", "mappers": [ { "type": "jpath", "parameters": { "jpath": "$.data.on" } } ] }, "setOn": { "url": "http://xxx.com:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.HomeMode&method=Switch&version=1&on=${value}&_sid=${sessionkey}", "mappers": [] } } }
Many thanks once again,
T
Hi guys,
Thanks a lot for that excellent plugin. I am trying to add my Siemens OZW672 web interface to HomeKit. Unfortunately the API uses SessionID. I have to get once a SessionID with this call
http://ADDRESS/api/auth/login.json?user=USER&pwd=PASSWORD
The result looks like
For all next queries I have to use a call e.g.
http://192.168.1.48/api/menutree/read_datapoint.json?SessionId=6571ac2f-d0bc-4d10-80b4-ef5ebb860626&Id=870
with the SessionID in the URL.
Unfortunately I do not have an idea how to run this method with your plugin. Hope you can help me ?