[ERROR]TypeError: Cannot read property 'history' of undefined
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? 
