Closed Tontonpat closed 2 years ago
Something new today since i've update home bridge to V1.3.1
[2/23/2021, 11:31:59 AM] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'CPU Load' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
and that
[2/23/2021, 11:31:53 AM] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'Disk Usage' was slow to respond! See https://git.io/JtMGR for more info. [2/23/2021, 11:31:53 AM] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'CPU Load' was slow to respond! See https://git.io/JtMGR for more info. [2/23/2021, 11:31:53 AM] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://git.io/JtMGR for more info.
the same problem.
[25/02/2021, 20:51:19] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://git.io/JtMGR for more info.
I'm seeing something similar since the upgrade to 1.3.1. I know this plugin hasn't been updated in a while but I hope someone can spend some time updating it because it is really useful.
[3/3/2021, 11:36:05 PM] [Pigpen] An error occured while getting CpuLoad: Can't login to Diskstation. Error Code: 400
[3/3/2021, 11:36:05 PM] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'Disk Usage' was slow to respond! See https://git.io/JtMGR for more info.
[3/3/2021, 11:36:05 PM] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://git.io/JtMGR for more info.
[3/3/2021, 11:36:05 PM] [Pigpen] Can't login to Diskstation. Error Code: 400
[3/3/2021, 11:36:06 PM] [Pigpen] An error occured while getting SystemTemp: Can't login to Diskstation. Error Code: 400
I have verified the credentials are correct.
{
"accessory": "Synology",
"name": "Pigpen",
"ip": "192.168.0.*",
"mac": "*",
"port": "5000",
"secure": false,
"account": "***",
"password": "****",
"version": 6,
"timeout": 15000,
"disabled": [
""
],
"doPolling": true,
"pollingInterval": 120
},
Environment
Not quite as nice a plugin, but homebridge-linux-termperature
is working with homebridge 1.3.1 and 1.3.2 (just released).
{
"accessory": "LinuxTemperature",
"name": "Synology Temperature",
"sensor_path": "/sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/device/temp2_input",
"divisor": 1000
}
You can get the disk & enclosure temps via the cmd4 plugin and snmp.
` { "type": "TemperatureSensor", "displayName": "nas temperature", "CurrentTemperature": 0, "name": "nas temperature", "manufacturer": "Synology", "model": "DS1821+", "serialNumber": "00:11:32:xx:xx:xx", "stateChangeResponseTime": 3, "state_cmd": "/home/pi/.homebridge/Cmd4Scripts/nas-temp-snmp.sh" }, { "type": "TemperatureSensor", "displayName": "nas drive 0 temperature", "CurrentTemperature": 0, "name": "nas drive 0 temperature", "manufacturer": "Synology", "model": "DS1821+", "serialNumber": "00:11:32:xx:xx:xx", "stateChangeResponseTime": 3, "state_cmd": "/home/pi/.homebridge/Cmd4Scripts/nas-drive0-temp-snmp.sh" }, { "type": "TemperatureSensor", "displayName": "nas drive 1 temperature", "CurrentTemperature": 0, "name": "nas drive 1 temperature", "manufacturer": "Synology", "model": "DS1821+", "serialNumber": "00:11:32:xx:xx:xx", "stateChangeResponseTime": 3, "state_cmd": "/home/pi/.homebridge/Cmd4Scripts/nas-drive1-temp-snmp.sh" }
Enclosure temp script:-
#!/bin/sh
/usr/bin/snmpget -v 2c -c **SNMPPASSWORD** -Oqv nas 1.3.6.1.4.1.6574.1.2.0
Disk 0 temp script:-
#!/bin/sh
/usr/bin/snmpget -v 2c -c **SNMPPASSWORD** -Oqv nas 1.3.6.1.4.1.6574.2.1.1.6.0
For the second disk change 1.3.6.1.4.1.6574.2.1.1.6.0 to 1.3.6.1.4.1.6574.2.1.1.6.1
NB if you have a disk in slot 1 and slot 8, the disk in slot 8 will be known as 1.3.6.1.4.1.6574.2.1.1.6.1, if you have a disk in slot 1, slot 2 and slot 8 disk in slot 8 will be known as 1.3.6.1.4.1.6574.2.1.1.6.2, etc ...
Thanks, @NogginTheNog It seems CMD4 is a kind of simulator. How does that come into play here I'm not quite understanding.
Cmd4 basically runs a script when the home app is opened and it polls the nas via snmp to return the values.
I have my network devices polled via ping and show as contact sensors as well.
{
"type": "ContactSensor",
"displayName": "ap-1",
"contactSensorState": "CONTACT_DETECTED",
"statusActive": "TRUE",
"name": "ap-1",
"manufacturer": "Ubiquity",
"model": "UAP-AC-Pro",
"serialNumber": "80:2a:a8:xx:xx:xx",
"stateChangeResponseTime": 3,
"state_cmd": "/home/pi/.homebridge/Cmd4Scripts/ping.sh",
"state_cmd_suffix": "172.16.1.11"
},
Have updated the Homebridge to v1.3.3 but still get the error message on my log:
[10/03/2021, 20:12:40] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://git.io/JtMGR for more info. [10/03/2021, 20:12:41] [Diskstation] current power state is: false [10/03/2021, 20:14:53] [homebridge-synology] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://git.io/JtMGR for more info. [10/03/2021, 20:14:53] [Diskstation] current power state is: false
Can someone please help me how to fix this?
my configuration looks like this:
{
"accessory": "Synology",
"name": "Diskstation",
"ip": "192.168.178.48",
"mac": "xx:xx:xx:xx:xx:xx",
"port": "5001",
"secure": true,
"account": "xxxx",
"password": "xxxxxx",
"version": 6,
"timeout": 5000,
"disabled": [
"temp"
],
"doPolling": false,
"pollingInterval": 120
}
I just released a beta version with a complete rewritten codebase. The CPU usage and disk usage quote are not available anymore. Maybe they will come back with a later version.
You can install the beta version with npm install -g homebridge-synology@beta
. There are several changes, so you have to update your config.json
. For further information see https://github.com/stfnhmplr/homebridge-synology/tree/beta
I hope that this version also addresses the problems mentioned in this issue. Any feedback is welcome.
Should be fixed with 0.4.0
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.