NEWS
[gelöst] Iobroker objects zeigt keine MCP23017 Pins an
-
Hallo zusammen,
ich möchte hier mein Problem vorstellen, wenn es vielleicht auch nicht vordergründig ein Problem durch den Iobroker ist.
Da mir im Moment keine weiteren Ideen einfallen, versuche ich hier mal wieder mein Glück, ob vielleicht jemand das gleiche Problem hatte und eine Lösung kennt.Es handelt sich um drei identische ESP32 Wroom 32. Sie sind alle mit derselben Tasmota .bin geflasht, nutzen die gleiche Vorlage, Treiber und Einstellungen. Die Adressen sind mit Hilfe der Pins A0-A2 eindeutig vergeben. Ich habe auch verschiedene MCP23017 ausprobiert, kalte Lötstellen gesucht, usw. Ich kann aber keinen Fehler finden.
Das Problem ist, das ein ESP32 den Chip MCP findet und bei den anderen Beiden zwar die Adressen angezeigt werden, aber den Chip nicht erkennen. Im Iobroker werden in Objekte alle drei Chips angelegt. Die GPIOs werden ebenfalls angelegt, aber nur bei einem auch die MCP23017 Pins.
Hier mal Auszüge aus den jeweiligen Konsolen.
ESP32 Wroom 32_1 00:00:00.001 HDW: ESP32-D0WD-V3 v3.1 00:00:00.032 UFS: FlashFS mounted with 304 kB free 00:00:00.045 CFG: Loaded from File, Anzahl 55 00:00:00.052 QPC: Count 1 00:00:00.055 I2C: Bus1 using GPIO22(SCL) and GPIO21(SDA) 00:00:00.056 I2C: Bus2 using GPIO04(SCL) and GPIO02(SDA) 00:00:00.057 SCR: ufilesystem found 00:00:00.107 BRY: Berry initialized, RAM used 3694 bytes 00:00:00.121 Projekt tasmota - ESP32_Wroom_1 Version 15.2.0(TasmoCompiler-esp32generic)-3.3.4(2026.03.10 09:17:27) 00:00:00.498 I2C: MCP23017 found at 0x20 00:00:00.503 iBeacon register for advert callbacks ESP32 Wroom 32_2 00:00:00.002 HDW: ESP32-D0WD-V3 v3.1 00:00:00.030 UFS: FlashFS mounted with 304 kB free 00:00:00.043 CFG: Loaded from File, Anzahl 41 00:00:00.050 QPC: Count 1 00:00:00.054 I2C: Bus1 using GPIO22(SCL) and GPIO21(SDA) 00:00:00.055 I2C: Bus2 using GPIO04(SCL) and GPIO02(SDA) 00:00:00.055 SCR: ufilesystem found 00:00:00.104 BRY: Berry initialized, RAM used 3694 bytes 00:00:00.117 Projekt tasmota - ESP32_Wroom_3 Version 15.2.0(TasmoCompiler-esp32generic)-3.3.4(2026.03.17 18:53:55) 00:00:00.183 iBeacon register for advert callbacks 18:32:35.966 MQT: tele/tasmota_587DA8/STATE = {"Time":"2026-03-18T18:32:35","Uptime":"0T00:00:19","UptimeSec":19,"Heap":93,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":4,"Objects":48},"Wifi":{"AP":1,"SSId":"via tuta","BSSId":"80:23:95:A1:BC:D9","Channel":1,"Mode":"HT40","RSSI":100,"Signal":-41,"LinkCount":1,"Downtime":"0T00:00:04"},"Hostname":"tasmota-587DA8-7592","IPAddress":"192.168.178.103"} 18:32:36.067 MQT: tele/tasmota_587DA8/SENSOR = {"Time":"2026-03-18T18:32:35","ANALOG":{"Voltage1":0.31,"Voltage2":0.34},"ESP32":{"Temperature":53.3},"TempUnit":"C"} 18:32:36.082 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:36","BLEDevices":{"total":0}} 18:32:36.086 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:36","BLE":{"scans":0,"adverts":0,"devices":0,"resets":0}} 18:32:45.958 MQT: tele/tasmota_587DA8/STATE = {"Time":"2026-03-18T18:32:45","Uptime":"0T00:00:29","UptimeSec":29,"Heap":93,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":4,"Objects":48},"Wifi":{"AP":1,"SSId":"via tuta","BSSId":"80:23:95:A1:BC:D9","Channel":1,"Mode":"HT40","RSSI":100,"Signal":-38,"LinkCount":1,"Downtime":"0T00:00:04"},"Hostname":"tasmota-587DA8-7592","IPAddress":"192.168.178.103"} 18:32:46.060 MQT: tele/tasmota_587DA8/SENSOR = {"Time":"2026-03-18T18:32:45","ANALOG":{"Voltage1":0.30,"Voltage2":0.31},"ESP32":{"Temperature":53.3},"TempUnit":"C"} 18:32:46.076 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:46","BLEDevices":{"total":0}} 18:32:46.080 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:46","BLE":{"scans":0,"adverts":0,"devices":0,"resets":0}} 18:32:49.995 CMD: i2cscan 18:32:50.031 MQT: stat/tasmota_587DA8/RESULT = {"I2CScan":"Device(s) found on bus1 at 0x22"} ESP32 Wroom 32_3 00:00:00.002 HDW: ESP32-D0WD-V3 v3.1 00:00:00.030 UFS: FlashFS mounted with 304 kB free 00:00:00.043 CFG: Loaded from File, Anzahl 41 00:00:00.050 QPC: Count 1 00:00:00.054 I2C: Bus1 using GPIO22(SCL) and GPIO21(SDA) 00:00:00.055 I2C: Bus2 using GPIO04(SCL) and GPIO02(SDA) 00:00:00.055 SCR: ufilesystem found 00:00:00.104 BRY: Berry initialized, RAM used 3694 bytes 00:00:00.117 Projekt tasmota - ESP32_Wroom_3 Version 15.2.0(TasmoCompiler-esp32generic)-3.3.4(2026.03.17 18:53:55) 00:00:00.183 iBeacon register for advert callbacks 18:32:35.966 MQT: tele/tasmota_587DA8/STATE = {"Time":"2026-03-18T18:32:35","Uptime":"0T00:00:19","UptimeSec":19,"Heap":93,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":4,"Objects":48},"Wifi":{"AP":1,"SSId":"via tuta","BSSId":"80:23:95:A1:BC:D9","Channel":1,"Mode":"HT40","RSSI":100,"Signal":-41,"LinkCount":1,"Downtime":"0T00:00:04"},"Hostname":"tasmota-587DA8-7592","IPAddress":"192.168.178.103"} 18:32:36.067 MQT: tele/tasmota_587DA8/SENSOR = {"Time":"2026-03-18T18:32:35","ANALOG":{"Voltage1":0.31,"Voltage2":0.34},"ESP32":{"Temperature":53.3},"TempUnit":"C"} 18:32:36.082 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:36","BLEDevices":{"total":0}} 18:32:36.086 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:36","BLE":{"scans":0,"adverts":0,"devices":0,"resets":0}} 18:32:45.958 MQT: tele/tasmota_587DA8/STATE = {"Time":"2026-03-18T18:32:45","Uptime":"0T00:00:29","UptimeSec":29,"Heap":93,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":4,"Objects":48},"Wifi":{"AP":1,"SSId":"via tuta","BSSId":"80:23:95:A1:BC:D9","Channel":1,"Mode":"HT40","RSSI":100,"Signal":-38,"LinkCount":1,"Downtime":"0T00:00:04"},"Hostname":"tasmota-587DA8-7592","IPAddress":"192.168.178.103"} 18:32:46.060 MQT: tele/tasmota_587DA8/SENSOR = {"Time":"2026-03-18T18:32:45","ANALOG":{"Voltage1":0.30,"Voltage2":0.31},"ESP32":{"Temperature":53.3},"TempUnit":"C"} 18:32:46.076 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:46","BLEDevices":{"total":0}} 18:32:46.080 MQT: tele/tasmota_587DA8/BLE = {"Time":"2026-03-18T18:32:46","BLE":{"scans":0,"adverts":0,"devices":0,"resets":0}} 18:32:49.995 CMD: i2cscan 18:32:50.031 MQT: stat/tasmota_587DA8/RESULT = {"I2CScan":"Device(s) found on bus1 at 0x22"} ESP32 Wroom 32_1 ist der Chip, der vollständig erkannt und eingerichtet wurde. Alle anderen sind nur als Device aufgeführt. Ich hoffe sehr, dass mir einer von euch helfen kann. BG -
H Homoran verschob dieses Thema von ioBroker Allgemein am
-
Problem gelöst. Auf den richtigen Weg hat mich @muchul mit seinem Beitrag gebracht.
https://forum.iobroker.net/topic/34593/tasmota-und-i2c-expander/61
Der Tasmocompiler hatte die Adresse 0x20 standardmäßig schon eingefügt. Ich nehme an, dass die Anpassung der Adresse der entscheidende Schritt war.
#define USE_MCP230xx_ADDR 0x21 <--- diese Änderung hatte es wohl gebracht #define USE_MCP23XXX_DRV #define USE_MCP230xx #define USE_MCP230xx_OUTPUT #define USE_MCP230xx_DISPLAYOUTPUTBG