stfnhmplr / homebridge-synology Goto Github PK
View Code? Open in Web Editor NEWControl your Synology Diskstation with Homekit
License: MIT License
Control your Synology Diskstation with Homekit
License: MIT License
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)
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
What services have to be enabled on the diskstation to make it work?
Describe The Bug:
Plug-in no longer compatible with homebridge.
To Reproduce:
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"
]
}
Environment:
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`
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
Hi,
with DSM 7 it is not possible to shutdown anymore. Will we get an update for DSM 7? :)
thanks
Always shows 0. Might this be helpful: https://github.com/yannickcr/node-synology/wiki/synology-dsm ?
[2019-10-15 09:02:30] [nas] Diskstation woked up!
Should read
[2019-10-15 09:02:30] [nas] Diskstation woke up!
Is it possible to get a push notification when the HDD temperature gets over certain point ?
Hi,
no infos are recolted on this model.
Great work.
F
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
},
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.
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.
When my Synology is on all works fine but if its off homebrige stops working.
Really don't want everyone in the home able to shut down the Synology device at will. Would be nice to have a flag to disable that option.
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
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)
hi,
I'm using DS412+ and shutdown is not working.
any workaroud I can do?
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:
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.
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?
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
Would you consider using this node library instead to get the information?
I would be happy to help out ๐
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.
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
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
Is it possible to display the temperature of the disks in addition to that of the system ?
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
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:
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 :(
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
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] ====================
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.
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.
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
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
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
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
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 :)
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
Hi,
i don't get the current diskspace and the current CPU load.
Temperatur is ok.
WOA works.
What can I do?
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)
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"
}
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
good morning , i've installed the plugin but when the diskstation is powered on in apple home app and in homebridge ui is still shown as off.
homebridge version is the latest.
please let me know.
hello! do you provide any way to login to diskstation with 2nd factor authorisation like Google Authenticator ?
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.
Will 2FA come at some point in time?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.