Cannot start MCP23017 binding for openHAB 2.5.10-1

Hi,
I’m trying to migrate from Rpi2 (openhab 2.5.1) to Rpi4 (openhab 2.5.10-1 / openhabian 1.6)
and I have a problem with MCP23017 bindings.

When I use


I’ve got following error (wiringPi was installed before):
2020-11-19 20:31:05.062 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
        at com.pi4j.io.gpio.impl.GpioControllerImpl.provisionPin(GpioControllerImpl.java:546) ~[?:?]
        at com.pi4j.io.gpio.impl.GpioControllerImpl.provisionPin(GpioControllerImpl.java:539) ~[?:?]
        at com.pi4j.io.gpio.impl.GpioControllerImpl.provisionDigitalInputPin(GpioControllerImpl.java:640) ~[?:?]
        at com.pi4j.io.gpio.impl.GpioControllerImpl.provisionDigitalInputPin(GpioControllerImpl.java:668) ~[?:?]
        at org.openhab.binding.mcp23017.internal.handler.Mcp23017Handler.initializeInputPin(Mcp23017Handler.java:177) ~[?:?]
        at org.openhab.binding.mcp23017.internal.handler.Mcp23017Handler.channelLinked(Mcp23017Handler.java:221) ~[?:?]
        at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:267) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_272]

When I use my old binding posted few month ago on forum (org.openhab.binding.mcp23017-2.4.0-SNAPSHOT.jar) I’ve got:

2020-11-19 20:37:05.462 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler Mcp23017Handler tried updating the thing status although the handler was already disposed.
2020-11-19 20:37:05.533 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler Mcp23017Handler tried updating the thing status although the handler was already disposed.
2020-11-19 20:37:05.573 [WARN ] [.core.thing.binding.BaseThingHandler] - BaseThingHandler.initialize() will be removed soon, ThingStatus can be set manually via updateStatus(ThingStatus.ONLINE)

MCP is crucial for my smart home , I have around 20-30 devices connected via MCP :frowning:
Any suggestions?

P.S I’ve make a test using i2c-tools and I can control MCP from my Rpi without any problem.

Michał Szymański

Sorry , do you solve this issue? I have too… My old hdd fail and i search to restart from a backup.

Simply I’ve solved in such way: MCP23017 <=> MQTT bridge

Probably too hard for my knowledge