Skip to content
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

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

Closed
tmwong2003 opened this issue Aug 22, 2022 · 7 comments
Closed
Labels

Comments

@tmwong2003
Copy link

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 (Temperature readout #59).
  3. Configure homebridge-synology as shown in the config below.

Expected behavior:

  • Diskstation plugin power button is on
  • Temperature gauges read above 0º C.

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:

  • Plugin Version: homebridge-synology v0.5.0
  • Homebridge Version: 1.5.0
  • Node.js Version: v16.16.0
  • NPM Version: 8.11.0
  • Operating System: Synology DSM 7.1-42661 Update 3
@tmwong2003 tmwong2003 added the bug label Aug 22, 2022
@ocager
Copy link

ocager commented Aug 23, 2022

I confirm to have the same issue (as reported by many others in the Issues section). Hope there will be a comment / solution soon available.

@romanr
Copy link

romanr commented Sep 18, 2022

I confirm to have the same issue (as reported by many others in the Issues section). Hope there will be a comment / solution soon available.

Same problem here. Do you have it on https and local network? I think it may be not working because of self-signed certificate not being allowed.

@tmwong2003
Copy link
Author

Switched the plugin config such that "protocol": "http" and "port": 5000, but now I see a different error in the log:

[9/29/2022, 11:36:18 AM] [DiskStation] Device is not online; Polling temperature disabled.
[9/29/2022, 11:36:18 AM] [DiskStation] Device is not online; Polling disk temperature disabled.

The Synology is online since it is hosting the HomeBridge. If this was an authentication issue between the plugin and the Synology would I see a different error?

I tried setting "host" to either "127.0.0.1" (i.e., localhost) or the actual IP address of the Synology, but still see the "Device is not online" error.

@mames13
Copy link

mames13 commented Jan 3, 2023

Hi, Did you guys figure this out. I'm having the same problem. My Homebridge is hosted on a DS120j running 7.0.1. I have one other DS running 7.0.1 and one running 7.1. All three appear to be offline /off when they are not. I did try this plugin on a test Homebridge about 2 weeks ago and it seemed to be working fine so I suspect it is a Synology problem. Would love to get this working.

@nh13
Copy link

nh13 commented Jan 30, 2023

Workaround moved to its own issue: #86

This was referenced Jan 30, 2023
@tmwong2003
Copy link
Author

tmwong2003 commented Jan 31, 2023

The workaround cited in #86 to enable ping works, and I can now see temperatures. While I agree that requiring the end user to ssh into the DiskStation is not ideal, it does work.

I'll leave this issue open while I look at the code to see if one can eliminate the dependency on ping.

Screenshot 2023-01-30 at 8 31 38 PM

@tmwong2003
Copy link
Author

Well, that was embarrassing... ignore that password (which thankfully was the now-changed password for the non-admin account).

215665999-953bec3f-7891-4fc5-a2bc-8f0ff2c84a0d

stfnhmplr added a commit that referenced this issue Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants