Use of MCP23s17 + Domoticz

Moderator: leecollings

Post Reply
madbastard
Posts: 2
Joined: Friday 08 December 2017 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Poland
Contact:

Use of MCP23s17 + Domoticz

Post by madbastard »

Is there an easy way to integrate MCP23s17 into Domoticz?
I would like to separately control each IO by a dummy switch.
I'm using WiringPi to select and control my additional IOs and my problem is that in python my script works well but in Domoticz dummy buttons don't.

I went through the following posts and pages:
http://wiringpi.com/extensions/spi-mcp23s08-mcp23s17/
viewtopic.php?t=3175
and
http://kiler.blog.pl/2017/03/14/raspber ... -mcp23017/ - though it's for mcp23017 it clearly shows how to use python scripts and parser.

I tried, of course, moving my script to different folders and update the path.
Is there any other way to do it?
User avatar
ILoveIOT
Posts: 59
Joined: Sunday 25 March 2018 17:47
Target OS: Linux
Domoticz version: 2020.2
Location: NL
Contact:

Re: Use of MCP23s17 + Domoticz

Post by ILoveIOT »

try this https://www.domoticz.com/forum/viewtopi ... 32&t=27447

For output i use inside Domoiticz

On;

script:///usr/local/bin/gpio -x mcp23017:100:0x24 mode 110 out ; /usr/local/bin/gpio -x mcp23017:100:0x24 write 110 0

Off;

script:///usr/local/bin/gpio -x mcp23017:100:0x24 mode 110 out ; /usr/local/bin/gpio -x mcp23017:100:0x24 write 110 1
1x OPI PC 5.8.16 Debian 10, MiniDNLA,SMD230,EpEver,MPD,800GB,Wiegand,7 temps,DHT,32/64 I/O,2022.1
2x OPI PC 4.19.25 Debian 9, MPD,7 temps,16/32 I/O,BMP,4.10717
1x IntelNUC 5.10 Debian 10, 2TB,DalyBMS,2023.1
3x ESPEasy NodeMCU V3, 16/16 I/O
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests