Tasmota not discovering flashed CE light switch

Hi all,

My Home Assistant on rpi3 got messed up so I reinstalled from scratch to the newest core 2022.5.4 and OS 8.0. Luckily I saved my yamls and other files. I got everything working except for the CE smart light switch that got flashed to Tasmota 8.2. The Tasmota integration doesn’t see the switch. I have mosquito MQTT add on installed plus MQTT integration installed. The MQTT integration sees 1 entity and 1 device, but sees the switch as a sensor only (weird, I don’t know what I did, but now this is gone too).

The mosquito MQTT log shows keeps repeating this:
1652906548: New connection from 172.30.32.2:53626 on port 1883.
1652906548: Client closed its connection.

I typed the following in the console of the switch GUI
setoption19 1
setoption19 0

I’ve tried flashing Tasmota from 8.2 to 8.5.1 but it gives me an error. I wanted to go from 8.5 to 9.1 to 11.1.

Another thing is every time I make a change to the CE light switch, it loses its wifi connection. Then I have to use the phone and connect to its AP and re-enter the wifi password for it to work. So, I did the Reset 1 command in the console. Now the AP name changed to Tasmota-XXXX. I connected with my phone and setup the wifi, now the LED light on the switch is flashing and on my router I see the switch connecting for 2 seconds, 2 seconds off and alternating. I rebooted my router, now it’s now connecting anymore. I also can’t see the AP on my phone. I tried resetting by pressing on the on button for 40 seconds, but it didn’t do anything (LED just went solid and starts blinking again).

I disconnected the power to the switch and reconnected. I see the AP again, but when entering the wifi info again. It didn’t work and keeps blinking…usually, the LED light should go solid for a few second, but it didn’t, and I can’t see the AP again anymore.

Any help would be appreciated!

I was able to fix the switch…looks like everytime I enter something into the console or save, most of the time the wifi connection on it will cut in and out. Then I would have to reboot the router. Very strange.

The switch is fixed, but I’m not able to detect in Home Assistant. All my settings on the switch GUI is the same as before.

Ok, I didn’t create a user in the HA config users area and have now done so. IN any case, it still doesn’t work.

My Mosquitto log is now:
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] mosquitto.sh: executing…
[21:35:27] INFO: Setting up user mqtt
[21:35:31] INFO: Certificates found: SSL is available
[cont-init.d] mosquitto.sh: exited 0.
[cont-init.d] nginx.sh: executing…
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21:35:33] INFO: Starting NGINX for authentication handling…
[21:35:33] INFO: Starting mosquitto MQTT broker…
1652924133: Warning: Mosquitto should not be run as root/administrator.
[21:35:44] INFO: Successfully send discovery information to Home Assistant.
[21:35:44] INFO: Successfully send service information to the Supervisor.

Ok, I figured it out.

The Tasmota integration needs a min of firmware 9.0. I had to install the tasmota-minimal.bin.gz into the CE smart light first then upgrade it to the 11.1

Everything is working now except for the Envisalink alarm which I never touched…sigh…I hope I can figure this one out.