lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
570 stars 284 forks source link

Suddenly homebridge not working, error... #345

Open refaelsommer opened 6 years ago

refaelsommer commented 6 years ago

Version 3.5.5

I suddenly see that homebridge does not work and trying to load shows me this error:

[Broadlink] Initializing BroadlinkRM platform... /usr/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/local-storage.js:666 throw Error('[PARSE-ERROR] ' + file + ' does not look like a valid storage file!'); ^

Error: [PARSE-ERROR] /home/pi/.homebridge/plugin-persist/homebridge-broadlink-rm/74525101b52fbaa4f2f9631f0c2ed99d does not look like a valid storage file!

refaelsommer commented 6 years ago

I deleted the file /home/pi/.homebridge/plugin-persist/homebridge-broadlink-rm/74525101b52fbaa4f2f9631f0c2ed99d and homebridge started working again!

Can you explain why did this happen?

Thanks! Refael.S

soska12 commented 5 years ago

I have the same issue, also deleting the file solved the problem, but it appeared 3-4 times yet.

steveb85 commented 4 years ago

i had this as well. deleting it was the fix. thanks for sharing here.

lprhodes commented 4 years ago

The file can become corrupt, I'm working on a fix.