stfnhmplr / homebridge-synology

Control your Synology Diskstation with Homekit
MIT License
161 stars 15 forks source link

Shutdown and power on works. Temperature, CPU load and Disk usage don't #33

Closed fcrespo82 closed 3 years ago

fcrespo82 commented 6 years ago

Itens show on Eve app, but everything is zero.

Power show correctly and I can power on and shutdown the NAS.

homebridge version: 0.4.38 homebridge-synology version: 0.3.0

config.js - removed sensitive information

{
     "secure" : false,
     "version" : 6,
     "timeout" : 5000,
     "port" : "8020",
     "account" : "admin",
     "name" : "NAS",
     "ip" : "nas.house.crespo",
     "accessory" : "Synology"
}

How to troubleshoot? Nothing appears in the logs

johnsills1 commented 6 years ago

I'm having the same issue.

Do I have to install the 4 dependencies listed on my Homebridge?

ak-media commented 6 years ago

Same here, works fine but no CPU load and Disk Usage…

recipriversexcluson commented 6 years ago

+1

Nastras commented 6 years ago

I also had the problem, it is important that the user is a member of the Admin group in DSM. Since then it works for me.

recipriversexcluson commented 6 years ago

That's odd, it didn't work for me.

fcrespo82 commented 6 years ago

Didn't work for me either, and I am using the admin user!

Nastras commented 6 years ago

I thought it was just the admin group. I checked again what I have changed to make it work:

1.) If you have activated the two factor registration you must deactivate it.

2.) Http port from 5000 to 50XX change

3.) Use admin user group for account.

  1. )Check if Http to https redirect is disabled

784ade87-73ce-4ebf-adff-ab300a1a4cc4

Here is my config I use:

accessories": [ { "accessory": "Synology", "name": "xxxxxx", "ip": "192.168.x.xx", "port": "50xx", "mac": "00:11:xx:xx:xx:xx", "secure": false, "account": "xxxxxx", "password": "xxxxxx", "version": 6, "timeout": 5000, "disabled": [], "doPolling": true, "pollingInterval": 60 } ],

I hope that helps you better now?

Nastras commented 6 years ago

Please use the same config as me. If I remember correctly, it worked after I added part of the option.

"version": 6, "timeout": 5000, "disabled": [], "doPolling": true, "pollingInterval": 60

recipriversexcluson commented 6 years ago

That did the trick! Thanks

fcrespo82 commented 6 years ago

"doPolling": true, "pollingInterval": 60

Made it work again! Thanks for the help!

Nastras commented 6 years ago

Cool, that makes me happy 😉👍

DutchmanNL commented 6 years ago

having the same issue, only power off is shown in homebridge adjusted my config with the suggested lines but still only the on/off button is shown nothing else.

DSM version : DSM 6.1.7-15284

config file (personal information replaced with xx):

{
  "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
  "bridge": {
    "name": "Homebridge",
    "username": "CK:xx:xx:BD:xx",
    "port": xxxxx,
    "pin": "xxx-xx-xxx"
  },
  "accessories": [
    {
      "accessory": "SynologyDiskstation",
      "name": "Home_Master",
      "host": "192.168.1.xx",
      "mac": "00:11:xx:xx:xx",
      "port": "5000",
      "secure": false,
      "account": "xxxxx",
      "password": "xxxxx",
      "version": 6.1,
      "doPolling": true,
      "pollingInterval": 60
    }
  ],
  "platforms": [
    {
      "platform": "HarmonyHub",
      "name": "Harmony Hub"
    }
  ]
}

Console output of homebridge at start :

xxx@xxx:~$ sudo homebridge
[2018-6-18 17:47:07] Loaded config.json with 1 accessories and 1 platforms.
[2018-6-18 17:47:07] ---
[2018-6-18 17:47:07] Loaded plugin: homebridge-config-ui-x
[2018-6-18 17:47:07] Registering platform 'homebridge-config-ui-x.config'
[2018-6-18 17:47:07] ---
[2018-6-18 17:47:07] Loaded plugin: homebridge-harmonyhub
[2018-6-18 17:47:08] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[2018-6-18 17:47:08] ---
[2018-6-18 17:47:08] Plugin /usr/lib/node_modules/homebridge-synology-diskstation requires Node version of ^6.0.0 which does not satisfy the current Node version of v8.11.3. You may need to upgrade your installation of Node.
[2018-6-18 17:47:08] Loaded plugin: homebridge-synology-diskstation
[2018-6-18 17:47:08] Registering accessory 'homebridge-synology-diskstation.SynologyDiskstation'
[2018-6-18 17:47:08] ---
[2018-6-18 17:47:08] Loading 2 platforms...
[2018-6-18 17:47:08] [Config] Initializing config platform...
[2018-6-18 17:47:08] [Config] Spawning homebridge-config-ui-x with PID 2037
[2018-6-18 17:47:08] [Harmony Hub] Initializing HarmonyHub platform...
[2018-6-18 17:47:08] Loading 1 accessories...
[2018-6-18 17:47:08] [Home_Master] Initializing SynologyDiskstation accessory...
HAP Warning: Characteristic 00000054-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000003E-0000-1000-8000-0026BB765291. Adding anyway.
Setup Payload:
X-HM://00253OCE4E3LK
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
[2018-6-18 17:47:10] Homebridge is running on port 51826.
[2018-6-18 17:47:10] [Harmony Hub] Fetching Logitech Harmony activities...
[2018-6-18 17:47:11] [Config] Using Form Authentication
[2018-6-18 17:47:11] [Config] Console v3.8.5 is listening on port 8080.
[2018-6-18 17:47:12] [Harmony Hub] Found activities: 
    Watch TV
    Play a Game
    PowerOff
recipriversexcluson commented 6 years ago

Use the config posted above

DutchmanNL commented 6 years ago

i did :

    {
      "accessory": "Synology",
      "name": "Diskstation",
      "ip": "192.168.10.200",
      "mac": "00:11:xx:xx:xx:xx",
      "port": "5000",
      "secure": false,
      "account": "xxx",
      "password": "xxxx",
      "version": 6,
      "timeout": 5000,
      "disabled": [],
      "doPolling": true,
      "pollingInterval": 60
    }
cbrandlehner commented 5 years ago

Works for me with Diskstation DS1815+ and DSM DSM 6.2.1-23824 Update 6. The Disk Usage seems to refer to the usage of Volume 1 (not the usage of the physical disk 1) - not sure about that. I disabled "switch" to prevent shutting down the Diskstation by accident in the Home App.

Good work!

niclasmaurice commented 5 years ago

Hello :)

Could anyone help me? I get this Error, but the Login is correct.

Can't login to Diskstation. Error Code: 402

Thank you!

GusMuche commented 4 years ago

Ok i've tested today and to have it work :

  1. Add a user to synology to the admin group
  2. Disable http to https
  3. Don't use secure mode on the plugin
  4. Add the optional parameter for polling
  5. Restart homebridge

And it's work.

But : Home app only show T° and switch for power, to view CPU and Disk usage, I need to use the eve app (like the README say)

So it'll be interesting to have more return of the plugin to know were the errors are and also if possible add the CPU and Disk usage inside the home app...

Thanks for this job !

ToBro14 commented 4 years ago

But : Home app only show T° and switch for power, to view CPU and Disk usage, I need to use the eve app (like the README say)

So it'll be interesting to have more return of the plugin to know were the errors are and also if possible add the CPU and Disk usage inside the home app...

Same for me here. Works fine, but only shows CPU and disk usage in Eve and not in Home App

stfnhmplr commented 3 years ago

Since the original issue has been resolved, I am closing this.