Adding MCP23017 input as normal GPIO to domotish
Posted: Sunday 04 February 2018 12:34
Hello
It is possible to add MCP23017 input/output like normal Rpi GPIO to domoticz?
Comand "script:///usr/local/bin/gpio -x mcp23017
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
0x20 mode 100 out
but at domoticz I have only GPIO 20,
Any ideas?
Best regards
It is possible to add MCP23017 input/output like normal Rpi GPIO to domoticz?
Comand "script:///usr/local/bin/gpio -x mcp23017
I tried to add this command to domoticz.sh
/usr/local/bin/gpio export 20 out
/usr/local/bin/gpio -x mcp23017
but at domoticz I have only GPIO 20,
Any ideas?
Best regards