I need a lot of outputs and a lot of inputs to system. I could use e.g. āIO Pi Plusā and external realy board/ boards or a number of āArduinosā. But it would take a loooot of space. I wanted it to fit into a small Fusebox. Thatās why I designed it myself.
Now STM32F1 controls all inputs and outputs directly. It can work offline without Raspberry Pi. But if I want to use Home Assistant and all cool internet features then I have Raspberry connected. Iām using I2C to connect STM32 - RP3. This is where your component comes in handy. It uses I2C, creates switches and binary sensors and is easy to implement. STM32 is slave and unfortunately it can only have 2 addresses Therefore if I create 3 or more entity in Hassio then STM no longer receives this frames. Thatās why I wanted to push one extra byte before each frame sent from RP3. STM would treat it as an address and based on the rest of frame enable or disable outputs. I was wondering if I should modify your files: switch.py and binary_sensor.py or MCP23017 library itself.
If the library then I need to copy it locally and import it somehow into your component? Do you know where this library should be located so that your component can see it?
Hi,
I used your component (official from hassio) and everything worked and still working perfectly. Thank you With time, however, the number of ābinary sensorsā significantly increased. And Iād rather use interrupt instead of polling. Unfortunately, the official version of your component probably doesnāt have this option
On your github repo, I noticed that binary_sensor component has the ability to use any raspberry pin as an interrupt trigger. This is exactly what I dream of right now But unfortunately this component gives with me errors
Iām sorry that Iām bothering you. And thank you for all your help so far
I am sorry it took me over a month to reply to this message. I was traveling for a couple of weeks and then I didnāt see your message until now. It looks like you downloaded the component after I merged a PR that StephenBeirlaen contributed to it in that repository, his code improves the interrupt handling but It changes the structure of the binary_sensor in the configuration yaml. I have to apologize because I forgot to update the README file, I updated it just now with the right structure, give it a try and let me know if it works well for you, the configuration.yaml should look like this:
I am trying the same. I have a board with 2 MCPās on it and ended up with some of the same sort errors and am playing arond with the versions in de manifest.json to be the latest. I only see the warning about using the custom component. U am using the latest version and config from github.
i am new to HA, could you expalin how to see the other errors (i am using Hassio as os)
as i dont see the binary_senors related to the mcp23017 in my device-list, i therefor asume the component is not working.