YinHangCode / homebridge-mi-aqara

a homebridge plugin for XiaoMi Aqara plugin.
1.09k stars 154 forks source link

[ERROR]TypeError: Cannot read property 'history' of undefined #229

Open WojtekWro opened 6 years ago

WojtekWro commented 6 years ago

Hi, I installed homebridge-mi-aqara-fakegato on raspberrypizero. Only Homebridge and homebridge-mi-aqara-fakegato. Any other plugins.

And I have issue.

... [2018-9-25 14:30:33] [MiAqaraPlatform] [INFO]create accessory - UUID: 322f0bfa-65b8-4685-9898-5112bc0702c4 [2018-9-25 14:30:33] [MiAqaraPlatform] [ERROR]TypeError: Cannot read property 'history' of undefined ...

I suppose that this error is caused by MotionSensor2, MotionSensor and ContactSensor. The other thing is that MotionSensor shows 0% battery level. Obviously battery is more than half. This same is with ContactSensors.

On this same raspberry plugin Homebridge-mi-aqara ( without fakegato ) works fine. But Elgato history is important for me. I would like to make homebridge-mi-aqara-fakegato works fine as well.

Any idea how to fix?

kiran5k4u commented 6 years ago

I also have the same issue but it has not been answered yet. I tried uninstalling so many times and installing it but the same problem exist. Cannot read property history of undefined. All the batteries show 0%.