Adding MCP23017 input as normal GPIO to domotish

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
0vereem
Posts: 2
Joined: Sunday 21 January 2018 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Adding MCP23017 input as normal GPIO to domotish

Post by 0vereem »

Hello
It is possible to add MCP23017 input/output like normal Rpi GPIO to domoticz?
Comand "script:///usr/local/bin/gpio -x mcp23017:100:0x20:1 write 100 1" to enable relay is working, but how read for example DOOR/WINDOW contact from mcp23017?

I tried to add this command to domoticz.sh
/usr/local/bin/gpio export 20 out
/usr/local/bin/gpio -x mcp23017:100:0x20 mode 100 out
but at domoticz I have only GPIO 20,

Any ideas?
Best regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest