Open rpavlik opened 2 years ago
Hi Ryan, did you get any resolution? my Feit dimmers won't work and have the same issue. How can you downgraded esphome to install an older version to get it working again?
I got no information/reply, but I installed esphome=2022.6.3 into a new virtual env and used that to flash it back to that version. (You may need to delete your platformio cache files in your home directory if you get an error) I then made a note in the config file to not update past that version and linked to this issue so I don't update it in the future, at least until this is fixed.
I won't really be able to debug this further myself until I manage to get my second dimmer flashed here and maybe put into a junction box with a plug for testing. I don't really want to experiment too much with the one already on my wall, since the initial flash was a pain involving removing the module... Were you able to tuya convert or did you also have to remove the module to get to gpio0 to flash it? (Or is there a trick I don't know to flash without removing the module?)
@rpavlik Did you have to do anything special to get the old esphome working?
I'm encountering the same issue with Initialization failed. Current init_state: 0
but when I installed the old version pip install esphome==2022.6.3
and tried to compile esphome it complained about PlatformIO version.
INFO Generating C++ source...
INFO Compiling app...
********************************************************************************************************************************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
********************************************************************************************************************************************************************************************
Processing loft-light (board: esp01_1m; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Platform Manager: Installing platformio/espressif8266 @ 3.2.0
Error: Please upgrade to the PlatformIO Core 6
I can't find any workarounds for this.
I had to remove all platform io related files from my system, and I installed the old version in a fresh venv.
The problem
I have a "Feit Electric" smart dimmer switch (from Costco some time ago - they still have them but not sure if they're still esp8285), that uses tuya-mcu. I've manually flashed esphome on it and it worked well for quite a while. However, updating in the last few months broke it, it will error with
Tuya: Initialization failed. Current init_state: 0
(or sometimes init state of 3 after a reset).I can still talk to it fine via the CLI, but because it can't talk to the MCU it won't show up in Home Assistant, etc.
I looked at other tuya-related issues but I don't see an obvious duplicate.
2022.1.2 works fine with this abbreviated log:
while at least 2022.9.4 (but I think a few versions before), don't work.
OK I did a bit more bisecting
Good:
Bad:
Which version of ESPHome has the issue?
2022.9.0
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP8266
Board
configured as esp01_1m but actually tywe2s
Component causing the issue
tuya
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response