Have you used MCP23017 binding in Openhabian 1.4.1 ? I would like to migrate to newest Openhabian/Openhab but I’m affraid of problems.
In MCP23017 documentation there is info: “This binding works nicely with openHAB 1.8.3 and 2.0.0 runtimes” . Does this mean that binding will not work with the latest version of Openhab?
current version of openHABian is 1.4.1, current STABLE openHAB2 is 2.3.0, curren NIGHTLY is 2.4.0.
stable is “code freezed”, where nightly is “code may vary from day to day” but of course you don’t need to update if the installed version does fit for you.
I am running OpenHAbian x.x (version missing, sorry - I’m traveling - have to clarify at home and will post later on) with openHab 2.3.0 on a Raspberry Pi 3 B+ and I’m definitely not sure if and how to get MCP23017 binding up and running in any way…
I read the docs several times, really a lot of posts here and also on github - but I’m very mazed. There are many discussions and posts regarding running on OH1 and OH2 - some versions seems to work, some not - additionally there seems to be problems running on openhabian/OH2 - some guys say its working with installation per PaperUI, some times is written you have to install it manually - but then again only a exact version. There seems also to be different syntax-ways to config it per items- and/or things-file. Its also unclear for me if I have to config the MCP23017 by hand before (e.g. I/Os, pull-ups) or if this is done automatically when I set it up in OH2 with the corresponding syntax.
So I’m sorry, but I’m very confused and would like to ask now: Does anyone use the MCP23017 binding with in the title mentioned setup? And if so, can you please shortly sum up how you get it up and running?
I already tried a lot by myself, but can’t find a solution:
My tries and goals till know:
hardware and I2C on Raspberry is working - per I2C tools I can read and write to the MCP23017 chip
I already use I2C in openHab by another feature - so general I2C communication with openHab is working
tried installation and config through PaperUI --> no success
tried installation through PaperUI and config through items- and/or things-file with 2 different syntax like mentioned in binding documention OH1 and OH2 --> no success
My next try would be to execute a manually installation of the binding per jar-file, but I’m very happy with my actual OH2 installation and scary to destroy my running environment…
So feedback and solutions are very welcome!!
Thanks a lot!
Best regards,
strizl
Thanks Alexander and Michel for your fast feedback!
@falkena
I’m sure user openhab is in group i2C and GPIO, but SPI I have to check.
@Michal_Szymanski
Thanks for the addon link and the detailed information.
I already worked with the chip by I2CTOOLS and was able to read/write.
But I will try again and of course the beta version you mentioned above.
Some questions left:
Do I have to create a things-File in addition or is only a items-File needed?
When I want to use the internal pull-ups of the MCP23017, do I have to turn them of before manually by e.g. i2cset -y 1 0x20 0x14 0xff # OLATA all pins high or is this done automatically by openHab when I create a item and/or thing (depends on your answer above) with [pull_mode="PULL_UP"] ?
I will try all of your suggestions and come back to you!