stfnhmplr / homebridge-synology

Control your Synology Diskstation with Homekit
MIT License
159 stars 16 forks source link

Plugin appears to come up and connect but temperature sensors read 0 #77

Closed tmwong2003 closed 1 year ago

tmwong2003 commented 1 year ago

Describe The Bug:

I am trying to setup the homebridge-synology plugin to connect to a Synology DS420j running DSM 7.1-42661 Update 3. The plugin comes up, but the accessories appear with the Synology powered off and zero-value temperatures. I know the Synology is up, because my homebridge is running on the Synology itself.

To Reproduce:

  1. Create a dedicated administrative account on the Synology.
  2. Disable auto-block (#59).
  3. Configure homebridge-synology as shown in the config below.

Expected behavior:

Logs:

Using egrep "ynology|isk" homebridge.log:

[8/21/2022, 5:29:31 PM] Loaded plugin: homebridge-synology@0.5.0
[8/21/2022, 5:29:31 PM] Registering accessory 'homebridge-synology.synology'
[8/21/2022, 5:29:31 PM] [DiskStation] Initializing synology accessory...
[8/21/2022, 5:29:31 PM] [DiskStation] Synology DiskStation finished initializing!
2022-08-22T00:29:34.538Z HAP-NodeJS:Accessory [Homebridge FD4A CAD2] Got Characteristic "Manufacturer" value: "Synology"
2022-08-22T00:29:34.538Z HAP-NodeJS:Accessory [Homebridge FD4A CAD2] Got Characteristic "Model" value: "Diskstation"
2022-08-22T00:30:01.977Z HAP-NodeJS:Accessory [DiskStation] Muting event notification for Status Active as ids aren't yet assigned!
2022-08-22T00:30:01.979Z HAP-NodeJS:Accessory [DiskStation] Muting event notification for Status Active as ids aren't yet assigned!
2022-08-22T00:30:05.243Z HAP-NodeJS:Accessory [Homebridge FD4A CAD2] Got Characteristic "Manufacturer" value: "Synology"
2022-08-22T00:30:05.244Z HAP-NodeJS:Accessory [Homebridge FD4A CAD2] Got Characteristic "Model" value: "Diskstation"

Plugin Config:

    {
            "name": "DiskStation",
            "host": "127.0.0.1",
            "mac": "90-09-D0-09-EA-6F",
            "port": 5001,
            "username": "[REDACTED]",
            "password": "[REDACTED]",
            "protocol": "https",
            "version": "6.2.2",
            "startupTime": 60,
            "shutdownTime": 60,
            "accessory": "synology"
     }

Screenshots: Screen Shot 2022-08-21 at 5 50 50 PM

Environment: