Git Product home page Git Product logo

homebridge-synology's People

Contributors

stfnhmplr avatar tekuonline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-synology's Issues

Security issue

Everything works perfect.
But I want to ask is there a way to login without entering password directly to the config? (Like a cookie file or something else)

Synology with Homekit

Hi,

I have installed docker on my synology and did the basic setup. I see my synology i homekit now. Can i place the other files in the same directory as the install.sh and config.json?

Greetings Erwin Vos

Compatibility with latest homebridge release

Describe The Bug:
Plug-in no longer compatible with homebridge.

To Reproduce:

  1. Install latest homebridge.
  2. See error in screenshot below.

Expected behavior:
Plug-in is compatible with current homebridge.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

{
    "accessory": "Synology",
    "name": "",
    "ip": "192.168.0.19",
    "mac": ":43",
    "port": "5001",
    "secure": true,
    "account": "",
    "password": "",
    "version": 6,
    "timeout": 15000,
    "disabled": [
        "temp"
    ]
}

Screenshots:
3033948E-9EFF-4235-A01F-1130E7868E63

Environment:

  • Node.js Version: 14.18.1
  • NPM Version: 6.14.15
  • Homebridge Version: 1.3.5
  • Homebridge Config UI X Version: v4.41.2
  • Operating System: Docker
  • Process Supervisor: Docker
  • Alpine Linux: 3.12.8

Error Message

Hi, I have been using Homebridge for a long time. Today I installed the plugin "Synology" and adapted the config.json, but I get a error message (homebridge.err):

`s=libdns_sd&e=nodejs&f=DNSServiceRegister>
/usr/lib/node_modules/homebridge/lib/api.js:104
if (name.indexOf('.') == -1) {
^

TypeError: Cannot read property 'indexOf' of undefined
at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:104:11)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:281:45)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:77:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3`

2-step verification

Hi, I can't see my Synology, I'm guessing it's because I'm using 2-step verification. I don't plan on removing 2-step verification. Is there still a way I can make this work ?

Regards

DSM 7 Support

Hi,

with DSM 7 it is not possible to shutdown anymore. Will we get an update for DSM 7? :)

thanks

Not getting any reading

Hi,

I can see the device from Eve app.
But all the states are showing 0.

Temp: 0 degrees
Power: OFF
CPU Load: 0%
Disk Usage: 0%

Anything I did wrong?

Config.json:
{
"accessory": "Synology",
"name": "Storage",
"ip": "192.x.x.x",
"mac": "00-11-22-33-44-55",
"port": "5000",
"secure": true, <--- should i let it remain to false? changed assume coz my DSM login is https
"account": "admin",
"password": "somepassword",
"version": 6
},

Homebridge V1.3

Hello,
Since i've update homebridge to V1.3.0 , i have this warning error:
[homebridge-synology] This plugin generated a warning from the characteristic 'Current Temperature': characteristic was supplied illegal value: undefined! This might throw errors in the future! See https://git.io/JtMGR for more info.

NAS without WOL

My NAS (DS411j) does not support WOL.

Can you add an option that when there is no mac-address, there is no on/off switch?

A second problem I have is that the cpu and disk usage is not showing in HomeKit.

Is it a downgrade?

Hey,

the new release number is smaller that the last one?

The new version 0.0.3 is no longer working. Before updating everything worked fine. Do we have to change something in config.json?

[Fri Mar 10 2017 20:56:23 GMT+0100 (CET)] ====================
[Fri Mar 10 2017 20:56:23 GMT+0100 (CET)] ERROR LOADING PLUGIN homebridge-synology:
[Fri Mar 10 2017 20:56:23 GMT+0100 (CET)] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:132:14)
at Array.forEach (native)
at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:128:22)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:51:24)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
[Fri Mar 10 2017 20:56:23 GMT+0100 (CET)] ====================

Regards, Oli

unexpected token and homebridge crashes

hi
DS416, DSM 6.0.2, Raspbian
after installing and configuring homebridge-synoloy this happens when starting homebridge:

SyntaxError: Unexpected token <
    at Object.parse (native)
    at null.<anonymous> (/usr/lib/node_modules/homebridge-synology/lib/synology.js:59:33)
    at Request.self.callback (/usr/lib/node_modules/homebridge-synology/node_modules/request/request.js:187:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/lib/node_modules/homebridge-synology/node_modules/request/request.js:1044:10)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/homebridge-synology/node_modules/request/request.js:965:12)
    at emitNone (events.js:72:20)

If Switch is disabled it is no longer displayed in Homekit or Eve App

I run homebridge in a docker container on a Synology NAS. Therfore it is essential, to disable the possibility switch off the Synology.
If Switch is disabled it is no longer displayed in Homekit or Eve app, and therefore it is no longer possible to see cpu and disk usage in Eve app. In older version of the plugin Synology switch was visible, but it was not possible to switch off the nas.

Include
"disabled": [
"switch"
],
in configuration

Synology switch should be visible, but it should not be possible to switch off the nas.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

        {
            "name": "DS416play",
            "host": "192.168.178.xy",
            "mac": "00:11:32:11:22:33",
            "port": 5001,
            "username": "_username_",
            "password": "_password_",
            "protocol": "https",
            "version": "6.2.2",
            "startupTime": 60,
            "shutdownTime": 60,
            "disabled": [
                "switch"
            ],
            "accessory": "synology"
        }

Screenshots:

Environment:

  • Plugin Version: homebridge-synology v0.4.2
  • Homebridge Version: Homebridge v1.3.5 (oznu/homebridge:latest)
  • Node.js Version: v14.18.1
  • NPM Version: v6.14.15
  • Operating System: Synology DSM 6.2.4 / Docker / Alpine Linux (3.12.8)

Sleep Mode

Hi, is it possible to get the power State without waking the DiskStation from SleepMode. Every time i use a Homekit App the DiskStation wakes from sleep mode. With Polling true the Sleep Mode does not work at all.

run this

I have looked into this for a way to use siri in combination with domoticz: https://www.domoticz.com/wiki/Homekit_Siri. A while ago I got this running on a Raspberry Pi without problems, but since I'm running domoticz on a synology diskstation, this will probably work differently. I have installed homebridge-synology, but can you tell me how to run it?

Can't login

Hi,

When i run this plugin i het the error that the login fails.
I use my admin account and am 100% sure that the password is correct in the config file.
What could be going wrong?

Patrick

Possible to display the CPU temperature

Is it possible to display the CPU temperature?
For me only the disk temp is visible in HomeKit. In the DSM info i can see the CPU temp.
I am using DSM 6.2.1.

current power state is: false

Hi,
my power state is always false.... i use DSM 6.1.4-15217 Update 2, need the synology plugin an update with a new API? Or I have a wrong config?

{
        "accessory": "Synology",
        "name": "DiskStation",
        "ip": "xxx",
        "mac": "xxx",
        "port": "5000", 
        "secure": "false", 
        "account": "xxx",
        "password": "xxx,
        "version": "6",
        "timeout": "10000",
        "disabled": "switch",
        "doPolling": "true",
        "pollingInterval": "60"
    }

xxx is changed with my dates

Temperature always 0ยฐ

Hello :)

power on / off function works.
But the temperature shows always 0ยฐ.

I use the SSL

Logfile:
Jul 25 23:10:33 pi homebridge[2449]: [2018-7-25 23:10:33] [DiskStation] An error occured while getting SystemTemp: Can't login to Diskstation. Error: ESOCKETTIMEDOUT

Config:

{
            "accessory": "Synology",
            "name": "Diskstation",
            "ip": "MyIPAddress",
            "mac": "MyMacAddress",
            "port": "5108",
            "secure": true,
            "account": "MyAdminAccount",
            "password": "MyAdminAccountPassword",
            "version": 6,
            "timeout": 5000,
            "disabled": [],
            "doPolling": true,
            "pollingInterval": 60
        },

and I can't see the CPU load

Disks temperatures

Is it possible to display the temperature of the disks in addition to that of the system ?

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

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

Can't get temperature, can't set switch, can't see Disk Usage (Logfile: "Error: HTTP status code: 400")

Describe The Bug:
After installing version 0.4.0 i can't get temperature and can't switch the diskstation off. Seeing an error in the logs: "Error: HTTP status code: 400". And additional: The Disk Usage isn't shown.

I've tried "protocol: http" and "protocol: https".
I've tried "version: 6.2.2" and "version: 6.2.4" too.
I've used the workaround "accessory": "synology".

Switch "on" and display of state works very well with "protocol: https" and "version: 6.2.4"!

The Synology Diskstation type: DS214+ (DSM 6.2.4-25556 Update 2)

To Reproduce:

Expected behavior:
can see the temperature and switch the diskstation on/off

Logs:

[13/10/2021, 14:56:18] [DISKSTATION] Initializing synology accessory...
[13/10/2021, 14:56:26] [Homebridge UI] Homebridge Config UI X v4.41.2 is listening on :: port 8080
[13/10/2021, 14:56:27] [DISKSTATION] Synology DISKSTATION finished initializing!
...
[13/10/2021, 15:04:27] [DISKSTATION] Can't get temperature, Error: HTTP status code: 400
[13/10/2021, 15:05:06] [DISKSTATION] Can't shutdown DISKSTATION: Error: HTTP status code: 400

Plugin Config:

        {
            "name": "DISKSTATION",
            "host": "192.168.XX.YY",
            "mac": "00:11:22:33:44:55",
            "port": 5001,
            "username": "masterofdesaster",
            "password": "topsecret",
            "protocol": "https",
            "version": "6.2.4",
            "startupTime": 60,
            "shutdownTime": 60,
            "disabled": [],
            "accessory": "synology"
        }

Screenshots:

Environment:

  • Plugin Version: 0.4.0
  • Homebridge Version: 1.3.5
  • Node.js Version: 14.18.1
  • NPM Version: 6.14.15
  • Operating System: Raspbian GNU/Linux Stretch (9)

general understanding issue

Hey,
im pretty new in the homebridge scene. Got a few questions about the config.json data

"accessory": "Synology",

"name": "Diskstation", <--- this just standard no need change or? Just the name that shows up on my device?!

"ip": "192.168.178.1", <--- This just the ip of my NAS?!

"mac": "A1:B3:C3:D4:E5:EX", <--- This just the Mac-Adress of my NAS

"port": "port number", <--- Which port is that? is it the 5000 for http or 5001 for https? and which would I have to use?

"secure": false, <--- is the state "false" standard? or when would I have to change it to true?

"account": "admin", <--- This just the admin username of my NAS

"password": "supersecret", <--- This just the admin password of my NAS

"version": 5, //DSM Version, default is 6. <--- Im using DSM 6.x, so I have to change the 5 to a 6?!

"timeout": 5000, //in ms. <--- what is this for?

"disabled": ["switch", "temp"]. <--- I would like to have everything turned on. So I should delete those two options u put in there right? How exactly should it look like afterwards?

Im sorry for my noob Knowledge :(

Get no response on Home app

Hi, I think that home bridge works fine. But when I try to update System Temperature for example I get "updating" then "no Response" on Home iOS 10 app. And in terminal
[NASName] current power state is: false
Could you help me? thanks

latest homebridge crashing

ERROR INITIALIZING PLUGIN homebridge-synology:
Apr 15 21:46:53 DietPi homebridge[3549]: [15/04/2020, 21:46:53] TypeError: Cannot read property 'adminOnlyAccess' of undefined
Apr 15 21:46:53 DietPi homebridge[3549]: at Characteristic.get [as accessRestrictedToAdmins] (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:429:21)
Apr 15 21:46:53 DietPi homebridge[3549]: at fixInheritance (/usr/local/lib/node_modules/homebridge-synology/index.js:24:39)
Apr 15 21:46:53 DietPi homebridge[3549]: at Plugin.module.exports [as pluginInitializer] (/usr/local/lib/node_modules/homebridge-synology/index.js:11:5)
Apr 15 21:46:53 DietPi homebridge[3549]: at Plugin.initialize (/usr/local/lib/node_modules/homebridge/src/plugin.ts:164:10)
Apr 15 21:46:53 DietPi homebridge[3549]: at /usr/local/lib/node_modules/homebridge/src/pluginManager.ts:134:16
Apr 15 21:46:53 DietPi homebridge[3549]: at Map.forEach ()
Apr 15 21:46:53 DietPi homebridge[3549]: at PluginManager.initializeInstalledPlugins (/usr/local/lib/node_modules/homebridge/src/pluginManager.ts:117:18)
Apr 15 21:46:53 DietPi homebridge[3549]: at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:144:24)
Apr 15 21:46:53 DietPi homebridge[3549]: at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:76:10)
Apr 15 21:46:53 DietPi homebridge[3549]: at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Apr 15 21:46:53 DietPi homebridge[3549]: [15/04/2020, 21:46:53] ====================

Can not display CPU load and DiskUsage

Why my homekit can only show the switch with the temperature, the DiskUsage with the CPU load can not be displayed, and I did not set config.json with disable.

Error shutting down Diskstation: Can't login to Diskstation. Error: getaddrinfo EAI_AGAIN undefined

Hi,

status of Diskstation is not reported correctly. I have had a completely new setup of my homebridge server and downloaded / installed newest version of this plugin.

I can wake up my devices via WoL throughout the Home App on my iPhone but neither can collect stats nor temperature nor can shutdown the device by a fingertip.

Error message by shutting down the device is the one sticked in the subject.
I have 2 Diskstations 1x DS212+ & 1x DS213+. The OS-Level is identical: DSM 6.2.2-24922 Update 4

The homebridge user is unique on both appliances and assigned to the admin group. HTTPS and plain HTTP are enabled on Port 5001 respectively 5000. Both methods are not working at all.

My configuration looks like this...sensitive data removed

        "accessory": "Synology",
        "name": "Synology Backupstation",
        "host": "192.168.xx.xx",
        "mac": "00:xx:xx:xx:xx:xx",
        "port": "5001",
        "secure": true,
        "account": "homebridge",
        "password": "xxxxxxxxxxxxxx",
        "version": 6,
        "timeout": 5000,
        "disabled": [],
        "doPolling": true,
        "pollingInterval": 60

Any ideas how I get rid of this!? Thanks in advance.

Error: bind EADDRINUSE 0.0.0.0:5224

Hi,

It appears that the harmony hub plugin also uses port 5224, is there anyway i can change the port number for this plugin? I tried changing the port number to 5225 in the config.json, but that feels too simple (and does not work). Ideally i would like to use both harmony and synology together...

Nick

Error loging to diskstation

Hi,

When it tries to connect to diskstation, it throws this error:

/opt/node/lib/node_modules/homebridge-synology/lib/synology.js:66
                    that.auth.sid = json.data.sid;
                                             ^

TypeError: Cannot read property 'sid' of undefined
    at Request._callback (/opt/node/lib/node_modules/homebridge-synology/lib/synology.js:66:46)
    at Request.self.callback (/opt/node/lib/node_modules/homebridge-synology/node_modules/request/request.js:188:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/opt/node/lib/node_modules/homebridge-synology/node_modules/request/request.js:1171:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/opt/node/lib/node_modules/homebridge-synology/node_modules/request/request.js:1091:12)
    at IncomingMessage.g (events.js:291:16)
    at emitNone (events.js:91:20)

I'm using DSM 6.1.1-15101 Update 2

Thanks

Status Polling

Hi, Can you add pull request and get state and set state for this plugin as plugin philipstv or onkyoavr or winpc.

It would be Marvellous.

Thanks

Wrong power status

First of all I would like to say thank you for your work it is realy great.
But i have a problem with it. The program show that the diskstation is power off but it isn't. If I power on with the app it show power on but when i refreash it shows power off again.

DS216play DSM 6.1-update 2

Connection via HTTPS

Hello and thank you very much for this greatfull plugin.
Works good !

But please make it possible, to use it with enabled HTTPS and redirect from HTTP > HTTPS
Thanks a lot :)

Found 2 vulnerabilities (1 low, 1 moderate)

Hi,

It looks like [email protected] have 2 vulnerabilities (1 low, 1 moderate)
It's maybe not critical, but it will be nice to be fixed.

Thanks

Moderate Regular Expression Denial of Service
Package ms
Patched in >0.7.0
Dependency of homebridge-synology
Path homebridge-synology > polling-to-event > debug > ms
More info https://nodesecurity.io/advisories/46
Low Regular Expression Denial of Service
Package debug
Patched in >= 2.6.9 < 3.0.0 || >= 3.1.0

No Diskspace no CPU load

Hi,
i don't get the current diskspace and the current CPU load.
Temperatur is ok.
WOA works.
What can I do?

Crashes with 214se and dsm6 rc

403 Forbidden
^

SyntaxError: Unexpected token F
at Object.parse (native)
at null. (/usr/local/lib/node_modules/homebridge-synology/lib/synology.js:165:29)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-synology/node_modules/request/request.js:199:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request. (/usr/local/lib/node_modules/homebridge-synology/node_modules/request/request.js:1036:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-synology/node_modules/request/request.js:963:12)
at emitNone (events.js:72:20)

No plugin was found for the accessory

Describe The Bug:
After updating the plugin to the new version - seeing an error in the logs that the plugin was not found.

Expected behavior:
Exposes the NAS to Homebridge

Logs:

No plugin was found for the accessory "homebridge-synology" in your config.json. Please make sure the corresponding plugin is installed correctly.

Plugin Config:

{
            "name": "Disk",
            "host": "192.168.86.12",
            "mac": "XXXX",
            "port": 5001,
            "username": "XXXX",
            "password": "XXX",
            "protocol": "http",
            "version": "6.2.2",
            "startupTime": 60,
            "shutdownTime": 60,
            "accessory": "homebridge-synology"
 }
  • Plugin Version: v0.4.0
  • Homebridge Version: 1.3.5
  • Node.js Version: 14.18.0
  • NPM Version: 6.14.15
  • Operating System: Raspbian

Impossible to see my synology

Hi,

My Homebridge is started without any synology.

When I start my homebridge, I have this :
[2016-09-21 02:33:32] Loaded plugin: homebridge-synology
[2016-09-21 02:33:32] Registering accessory 'homebridge-synology.Synology'
[2016-09-21 02:33:32] ---

I don't understand where is my mistake I added on homebridge config.json my synology like accessories. Can you help me ?

I have my homebridge on raspberry pi2 and my synology is DS215j version with DSM 6

Thanks in advance

UPS status?

Is it possible to extend this to cover UPS status? I don't care about the other options, but knowing when there is a power outage in my home would be a useful notification.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.