ESP32 losing configuration #19408
-
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 18 replies
-
What are the i2c addresses of the EZO chips? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
OK. I can reproduce:
Let me chk where it goes wrong.... |
Beta Was this translation helpful? Give feedback.
-
Diving in the code I think Mode1 could never co-exist with GPIO relays; it tries to index an array to short dimensionend based on available relays. I suggest you use Mode2 by keeping below commented:
but enable:
once restarted add this as rule 3:
and then perform a restart (command |
Beta Was this translation helpful? Give feedback.
-
With version v13.1.0.2 mode 1 is fixed solving the initial issue from OP too. |
Beta Was this translation helpful? Give feedback.
-
I think the problem is not solved with 13.1.0.2. I can't see the PCF8574 menu in Mode1.
Log:
|
Beta Was this translation helpful? Give feedback.
-
sorry my config was wrong, it works.
|
Beta Was this translation helpful? Give feedback.
-
In my case the same thing happens. Simply program the esp32 with GPIO34/35/36/39 with a button, after a short time it restarts and is left with the default configuration |
Beta Was this translation helpful? Give feedback.
@arendst, you're the MEN! (Let me know if I can buy you coffee!)
I had to adjust the rule3 to this:
rule3 on file#pcf8574.dat do {"NAME":"PCF8574 A=R5-12","GPIO":[224,225,226,227,228,229,230,231]} endon
This is what works with the 4 relay on GPIO and the 8 extender relay on the i2c PCF8574.
So to recap:
I compiled on gitpod
modified /tasmota/my_user_config.h
2.1) removed comments here:
#define USE_PCF8574
#define USE_PCF8574_MODE2
2.2) added the EZO chip I need:
#define USE_EZOPH
#define USE_EZOORP
#define USE_EZOEC
#define USE_EZODO
2.3) Removed some other module I don't need (for fun)
2.4) in /platform_overide_sample.ini
commented tasmota
uncommented tasmota32
Compiled with : plat…