MCP23017 - MQTT subscribe - MCP23017

Moderators: grovkillen, TD-er, Stuntteam

Post Reply
Message
Author
Stejin
Normal user
Posts: 2
Joined: 19 Feb 2020, 23:42

MCP23017 - MQTT subscribe - MCP23017

#1 Post by Stejin » 20 Feb 2020, 00:45

Currently flashed the ESP_Easy_mega-20200204_normal_ESP8266_4M1M.bin

What I want to accomplish:
ESP2688 (NodeMCU) + Multiple MCP23017 (Up to 8x16 = 128 GPIO) + RelayBoard (Up to 128 Relay's)
Using these to trigger relays or use them as inputs.

I did what is described here:
viewtopic.php?t=6712

That lead to Topics in my ioBroker + MQTT Broker to be displayed and getting values based on the values on the GPIO Pins on the MCP23017.

Is there a way with rules to subscribe (and create) all 16+ topics from ESPEasy in ioBroker?

What I also noticed that the "/cmd" Endpoint/Topic is not present in ioBroker. (so i can't test the command feature, with which I could accomplish my goal, but it would be nice to have "fixed" topics/ maybe even the same as the currently created ones)

hvdwolf
Normal user
Posts: 50
Joined: 09 Jun 2016, 12:37

Re: MCP23017 - MQTT subscribe - MCP23017

#2 Post by hvdwolf » 20 Feb 2020, 12:09

If you define an MQTT controller and assign your devices to that controller, the values of your devices will "automatically" been sent. You do not need a cmd or publish at all.

Stejin
Normal user
Posts: 2
Joined: 19 Feb 2020, 23:42

Re: MCP23017 - MQTT subscribe - MCP23017

#3 Post by Stejin » 20 Feb 2020, 16:39

hvdwolf wrote:
20 Feb 2020, 12:09
If you define an MQTT controller and assign your devices to that controller, the values of your devices will "automatically" been sent. You do not need a cmd or publish at all.
I added the device "MCP23017" like this: https://www.letscontrolit.com/wiki/inde ... e=MCP23017

As far as I noticed this only supports one Port per device? With 12 devices max that is less then the MCP23017 supports and much less I want to accomplish.
Furthermore it seems this adapter only works one way? ESP -> MQTT but not the other way around.

Post Reply

Who is online

Users browsing this forum: sanyafifa1 and 18 guests