Closed krzysiek2788 closed 2 years ago
The Requesting 1 bytes from 0x20 failed!
message suggests an issue with your i2c wiring somewhere.
How do you have the buttons wired? What is each side of the button connected to?
This is how I connected it:
mcp23017 source mcp23017 issues mcp23017 recent changes (message by IssueLinks)
Same here, wire between esp32 and mcp is like 4cm max - warnings all over the place
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
HASSIO 5.13 supervisor-2021.04.3 core-2021.4.6 ESP (ESP32/ESP8266, Board/Sonoff):
ESP32, Board: LILYGO® TTGO T-Call V1.3 V1.4 ESP32 ESPHome version (latest production, beta, dev branch)
ESPHome 1.17.2 (it was the same in previous versions) Affected component:
https://esphome.io/components/mcp230xx.html
Description of problem: I have connected MCP23017 to ESP32 and configure it all connection are ok, VCC -> VCC, GND-> GND, I2C -> I2C. The module is available and OUTPUT pins are fine, only INPUT pins are making me crazy. In to the INPUT pin I connected momentary button to turn on/off lights in the rooms and it is giving me false positive signals. I added pull-up resistor even changed INPUT to INPUT_PULLUP which didn't work only setup filter + delay 100ms work but below warning still remains:
[W][i2c:086]: Requesting 1 bytes from 0x20 failed!
My code is quite big and there are part of code which will be used to read energy meter SDM630 over modbus.
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: I tried different VCC 3,3V and 5V, pullup resistors for I2C (which isn't necessary as MCP module I have, has all necessary resistors pullup Now it is connected to 3,3V I don't know why I receive this false positive when I connect those input pins to direct pins on ESP8266 (Wemos D1 mini) I don't have that issue.