I received two pcf8574 boards today, I was able to get one of them to work with my Wemos D1 Mini, but when I daisy chain two of them, the Wemos D1 Mini doesnāt boot.
My connections from Wemos D1 Mini to first pcf8574
pcf8574 -> Wemos D1
vcc -> 3.3v
gnd -> G
SDA -> D2
SCL -> D1
On the first pcf8574 Iām using 0x20 address. All three address pins are to the right (on -). When just one pcf8574 is connected using the 0x20 address it works. When a second pcf8574 is connected using 0x21, or if the single pcf8574 is changed to address 0x21, the Wemos D1 Mini doesnāt boot.
To make sure Iām understanding addressing correctly, to get the 0x21 address Iām moving the top yellow pin (A2) to the left (+) and leaving the other two ins (A1 & A0) to the left (-). Iām using this table.
Sorry about this reply. iāve retested it and it doesnāt work. SwitchTopic applies to all switches.
So same question as your original post:
āIs there a good way to differentiate between the GPIO pins when sending the MQTT message to HA?ā
i tried using tele but it Teleperiod only goes down to 10sec. i need to be updated as soon as one of my magnetic reed switches turns on. Any update on this?
you can conect it with serveral address settings and look into the log whtich adress found:
[12:05:18][C][i2c:028]: I2C Bus:
[12:05:18][C][i2c:029]: SDA Pin: GPIO4
[12:05:18][C][i2c:030]: SCL Pin: GPIO5
[12:05:18][C][i2c:031]: Frequency: 50000 Hz
[12:05:18][I][i2c:033]: Scanning i2c bus for active devicesā¦
[12:05:18][I][i2c:040]: Found i2c device at address 0x20
[12:05:18][I][i2c:040]: Found i2c device at address 0x27
[12:05:18][I][i2c:040]: Found i2c device at address 0x39
[12:05:18][I][i2c:040]: Found i2c device at address 0x76
[12:05:18][C][pcf8574:021]: PCF8574:
[12:05:18][C][pcf8574:022]: Address: 0x20
[12:05:18][C][pcf8574:023]: Is PCF8575: NO