-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 with webapi DSM 4.2 #8
Comments
Hi, Just got a notification from the home assistant thread as well. Currently only DSM 6 is supported as the API is not present on DSM 5 and lower. (Would love to add support Just dont have synology running this version of DSM. |
Hi @StaticCube I think this is the api call, we need: |
Hi @StaticCube , I'm getting the same error referenced in the home assistant thread as well, but with DSM 6.2.2 |
Hi all, I'm on HomeAsistant 0.104.3 and cannot get synologydsm plugin work: only empty % :-(
In the JSON answer I can see “cpu loads”,“eth0/1 usage” and “memory” Anyone with code knowledge that can help dig into it and help find a fix ? Simone |
Hi, Interesting you are getting this error, could you please provide me with the version of DSM you are using? For home assistant make sure you enter the port if using a different one (you can check using the api with: https://xxxxx/webapi/entry.cgi?api=SYNO.Core.Web.DSM&version=1&method=get) (Resetting up my Home Assistant havent tried the plugin in 0.104.3 yet to be honest) Kind regards, Ferry |
Hi Ferry, thx for replying. I'm accessing DSM trought port 443 using firewall NAT. Simone |
Hi, I bet issue is realted to 2-step auth. https://nasdnsname/webapi/auth.cgi?api=SYNO.API.Auth&version=6&method=login&account=admin&passwd=MyPwd&session=Core&format=cookie&otp_code=OTPcode&enable_device_token=yes (info from https://fossies.org/dox/cinder-15.0.1/synology__common_8py_source.html) Simone |
Hi @cniweb ! Can you register here #26 to concentrate your setup and feature requests ? Also we need data to test DSM < 6, so may you do this request on your browser ? It will list all DSM APIs available + their path and min and max versions. Thanks. PS: 2SA login merged #29 🎉 |
Hi everyone ! Are you still having the issue ? Not having on DSM 6.2 Thanks. |
Hi @cniweb ! May you try with the latest version on Home Assistant ? |
Got the log message Because it's an old Synology (DS209+II) with it latest DSM version 4.2
|
I tried to get some more info
|
@k-van-man python-synology/synology_dsm/const.py Lines 8 to 22 in fb5f5b0
Indeed, the "list" method does not always exists 😅 Try:
With a quick search on Google: https://npmdoc.github.io/node-npmdoc-homebridge-synology/build/apidoc.html#apidoc.element.homebridge-synology.synology.prototype.getCpuLoad So try And paste me the result here please. |
The result of https://xxxxxx:5001//webapi/dsm/system_loading.cgi?api=SYNO.DSM.SystemLoading&method=getinfo&version=1 {"data":{"cpu":{"hard_irq":0,"idle":1,"iowait":0,"nice":0,"soft_irq":0,"steal":0,"system":0,"user":0},"memory":{"buffer":344264,"cached":45796,"free":16992,"swap_cached":52,"total":515440},"netflows":[{"name":"eth0","receive":0,"transmit":0}]},"success":true} And yes I can help you with testing |
My results of http://diskstation209:5000/webapi/query.cgi?api=SYNO.API.Info&version=1&method=query&query=ALL
and my result of http://diskstation209:5000/webapi/dsm/system_loading.cgi?api=SYNO.DSM.SystemLoading&method=getinfo&version=1
I can help you testing, too. |
I had similar problem. HomeAssistant logs show:
DSM 7.1.1 This is also discussed in home-assistant/core#67731 , https://community.home-assistant.io/t/installation-of-dsm-integration-fails/342794/46 In my case solution was to add user to administrators group: |
I use a Synology 209 with DSM 4.2.
And I use this python package with Home Assistant.
Issue in Home Assistant Plugin:
home-assistant/core#30048
I become no values, see debug output:
The text was updated successfully, but these errors were encountered: