ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
305 stars 18 forks source link

Doorbell no longer working #147

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello since the last update my doorbell device is no longer working and i get the following warning during startup:

[04/10/2022, 23:21:36] [RPi] warning: ignoring Raspberry Ingang: Cannot find module './GpioDoorBell'
Require stack:
- /usr/local/lib/node_modules/homebridge-rpi/lib/RpiService/GpioInput/index.js
- /usr/local/lib/node_modules/homebridge-rpi/lib/RpiService/index.js
- /usr/local/lib/node_modules/homebridge-rpi/lib/RpiAccessory/index.js
- /usr/local/lib/node_modules/homebridge-rpi/lib/RpiPlatform.js
- /usr/local/lib/node_modules/homebridge-rpi/index.js
- /usr/local/lib/node_modules/homebridge/lib/plugin.js
- /usr/local/lib/node_modules/homebridge/lib/pluginManager.js
- /usr/local/lib/node_modules/homebridge/lib/api.js
- /usr/local/lib/node_modules/homebridge/lib/childBridgeFork.js
[04/10/2022, 23:21:36] [RPi] Raspberry: warning: TypeError: Cannot read properties of undefined (reading 'init')
    at GpioAccessory.init (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiAccessory/GpioAccessory.js:26:25)
    at RpiAccessory.init (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiAccessory/index.js:111:41)
    at RpiPlatform.checkDevice (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiPlatform.js:364:26)
    at RpiPlatform.init (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiPlatform.js:192:7)
    at RpiPlatform.<anonymous> (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiPlatform.js:16:46)
ebaauw commented 1 year ago

Damn typo in the filename, Doorbell.js instead of DoorBell.js. Didn't show up in my testing, on macOS with case-insensitive file system.

ebaauw commented 1 year ago

Should work in beta v1.5.1-1.

ebaauw commented 1 year ago

Released v1.6.0.