Inputs for MCP23017

Moderator: leecollings

Post Reply
RonEN
Posts: 11
Joined: Tuesday 07 June 2016 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Inputs for MCP23017

Post by RonEN »

Dear reader,
I have several MCP23017 connected to the GPIO via an I2C. Via dummy hardware and some code I can use both inputs and outputs.
You can also create an i2c sensor gateway in the hardware and then select the MCP23017. In devices you then have all ports of the MCP23017 available (and it works). However, these are all configured as Output. Does anyone know of a way to also use ports of the MCP23017 as input via these methods?

I'm curious about a solution.

Cheers,
Ronald.
User avatar
waltervl
Posts: 5369
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Inputs for MCP23017

Post by waltervl »

Looking at this topic suggests that it is not possible. viewtopic.php?p=255145.

Perhaps with a python plugin it is possible.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
RonEN
Posts: 11
Joined: Tuesday 07 June 2016 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: Inputs for MCP23017

Post by RonEN »

Hey Waltervl,

Thanks for your comment. I read the post and it is from 2019. I hope someone has come up with a solution in the meantime.

Cheers,
Ronald.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests