smartechru / homebridge-relays

This Homebridge plugin controls 4 relays through Apple Home App.
MIT License
16 stars 13 forks source link

Raspberry Pi 5 compatibility #12

Open siddely opened 10 months ago

siddely commented 10 months ago

Hello,

I have been using this plugin for the past few years successfully and it has always been very effective and stable, thank you ! I have upgraded my system from a Pi 4 to a Raspberry Pi 5 and it broke the plugin compatibility I think because of the new BCM2712 controller.

Here is the output I get at startup :

[01/01/2024, 23:40:17] [ACCESSORYNAME] Initializing Relay accessory... bcm2835_init: Unable to open /dev/gpiomem: No such file or directory [01/01/2024, 23:40:17] Error: Could not initialize bcm2835 at bindcall2 (/var/lib/homebridge/node_modules/homebridge-relays/node_modules/rpio/lib/rpio.js:119:9) at EventEmitter.rpio.init (/var/lib/homebridge/node_modules/homebridge-relays/node_modules/rpio/lib/rpio.js:837:2) at rpio.open (/var/lib/homebridge/node_modules/homebridge-relays/node_modules/rpio/lib/rpio.js:871:18) at new RelayAccessory (/var/lib/homebridge/node_modules/homebridge-relays/index.js:35:14) at /var/lib/homebridge/node_modules/homebridge/src/server.ts:379:50 at Array.forEach () at Server.loadAccessories (/var/lib/homebridge/node_modules/homebridge/src/server.ts:299:29) at Server.start (/var/lib/homebridge/node_modules/homebridge/src/server.ts:179:12) [01/01/2024, 23:40:17] Got SIGTERM, shutting down Homebridge... [01/01/2024, 23:40:17] AssertionError [ERR_ASSERTION]: Cannot generate setupURI on an accessory that isn't published yet! at Bridge.Accessory.setupURI (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:994:11) at Server.setServerStatus (/var/lib/homebridge/node_modules/homebridge/src/server.ts:155:45) at Server.teardown (/var/lib/homebridge/node_modules/homebridge/src/server.ts:199:10) at signalHandler (/var/lib/homebridge/node_modules/homebridge/src/cli.ts:93:12) at process.emit (node:events:517:28) at process.emit (/var/lib/homebridge/node_modules/homebridge/node_modules/source-map-support/source-map-support.js:516:21) [01/01/2024, 23:40:22] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

I get that the Pi 5 is still very new hardware and would gladly help to test for a potential update of the plugin. Thank you !