Closed splashibiza closed 4 years ago
This just appeared in the log also
[2020-4-22 8:29:16] [Temperature & Humidity] Error: Unknown event type: 16. 5020aa0155172838342d58100002d900 at Parser.parseEventData (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/parser.js:226:15) at Parser.parse (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/parser.js:64:23) at Scanner.parseServiceData (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/scanner.js:171:52) at Scanner.onDiscover (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/scanner.js:92:25) at Noble.emit (events.js:310:20) at Noble.onDiscover (/usr/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/noble.js:178:10) at NobleBindings.emit (events.js:310:20) at NobleBindings.onDiscover (/usr/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:174:10) at Gap.emit (events.js:310:20) at Gap.onHciLeAdvertisingReport (/usr/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/hci-socket/gap.js:256:10)
Not responding…
This problem appeared after updating Node (12.11.1>12.6.2) and Homebridge (0.4.50>0.4.53)
Hello,
I have had the same problem but it`s solved.
I am running latest versión of node.js, npm and Homebridge 1.0.4.
First of all uninstall plugin and remove data of json. Restart Homebridge.
Install the plugin using HB terminal: npm install --save homebridge-mi-hygrothermograph@latest
Go again to HB terminal and introduce:
sudo setcap cap_net_raw+eip $(eval readlink -f
which node
)
Restart Homebridge
Works for me.
I just released a new version (3.0.1
) with updates to the bluetooth library. Please give it a shot.
Periodically have timeout, only that help me - homebridge restart
Hey, I've the same problems. Always "[Temperature & Humidity] [undefined] Timed out" after a few hours running. May that be due to the distance to the sensor? I try to put it near the raspi and leave it there for some weeks.
strange workaround: when i see "no response" i type in terminal: sudo hcitool lescan
and after that - all comes to normal...
Hey, it also works for me... But what causes the time out? Is there a fix? Actually its isn't working reliable. That makes it unusable for me.
I made workaround:
add this to crontab -e
0 * * * * sudo timeout -s INT 1s hcitool lescan
This command rescan LE devices every one hour
hmm, i have migrated to Raspbian Buster (last OS version) and now all is ok without cron script.
Looks like some firmware / bluetooth-library issue. Since there's known workarounds and @iShift added documentations about these I'm closing this issue.
Expected Behavior
Device should not time out after a couple of hours and work continuously 24/7
Current Behavior
Device does time out and stops working in homekit after a few hours
Steps to Reproduce (for bugs)
Set it up and run normally
Versions
Configuration
Homebridge Log / Command Output
Thank you!