On the back of getting this one plug working, I decided to try my other plugs. They are the WHDZ03 type with CB2S boards in them...
I followed the same process of downloading the firmware and re-flashing with the v229 firmware and they all seemed to be working well until I looked this evening.
What have i done wrong or configured wrong?... I went ahead and flashed the plugs and they all go unavailable and then switched "on" every 15 or 16 seconds.
This seems to coincide with MTQQ state toggling between "Disconnected" and "Connected" every 15 or 16 seconds.
What have I done? my switches are going haywire.
The "template" in the web app looks like this...
The Log looks like this...
Thanks
Simon
----
Skasowano z tematu: Tuya T34 UK Mains Plug Adapter: Firmware Flashing, Config Extraction
przez Dnomis77 dnia 04 Jan 2026 23:47
I followed the same process of downloading the firmware and re-flashing with the v229 firmware and they all seemed to be working well until I looked this evening.
What have i done wrong or configured wrong?... I went ahead and flashed the plugs and they all go unavailable and then switched "on" every 15 or 16 seconds.
This seems to coincide with MTQQ state toggling between "Disconnected" and "Connected" every 15 or 16 seconds.
What have I done? my switches are going haywire.
The "template" in the web app looks like this...
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Full Device Name Here",
"model": "enter short model name here",
"chip": "BK7231N",
"board": "TODO",
"flags": "0",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"6": "BL0937CF1;0",
"7": "BL0937CF;0",
"8": "WifiLED_n;0",
"11": "Btn;1",
"24": "BL0937SEL;0",
"26": "Rel;1"
},
"command": "",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
The Log looks like this...
Info:GEN:dhcp=0 ip=192.168.1.202 gate=192.168.1.254 mask=255.255.255.0 mac=f8:17:2d:c8:98:8e
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-61,ssid=*********,channel=13,cipher_type:MIXED
Info:MQTT:mqtt_userName homeassistant
mqtt_pass ********
mqtt_clientID BK7231N_C8980008E
mqtt_host 192.168.1.111:1883
Info:MQTT:mqtt_connection_cb: Successfully connected
Info:MQTT:mqtt_subscribed to BK7231N_C8980008E/+/set
Info:MQTT:mqtt_subscribed to bekens/+/set
Info:MQTT:mqtt_subscribed to cmnd/BK7231N_C8980008E/+
Info:MQTT:mqtt_subscribed to cmnd/bekens/+
Info:MQTT:mqtt_subscribed to BK7231N_C8980008E/+/get
Info:MQTT:mqtt_subscribed to homeassistant/+
Info:MAIN:Time 851, idle 189744/s, free 72520, MQTT 0(28), bWifi 1, secondsWithNoPing 780, socks 2/38
Info:MQTT:Publishing val 241.5 to BK7231N_C8980008E/voltage/get retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/voltage/get
Info:MAIN:Time 852, idle 177075/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 781, socks 2/38
Info:MAIN:Time 853, idle 181374/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 782, socks 2/38
Info:MQTT:Publishing val nan to BK7231N_C8980008E/138/get retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/138/get
Info:MQTT:Publishing val 0.000 to BK7231N_C8980008E/energycounter_last_hour/get retain=0
Info:MQTT:Publishing val 0.000 to BK7231N_C8980008E/energycounter_yesterday/get retain=0
Info:MQTT:Publishing val 0.000 to BK7231N_C8980008E/energycounter_2_days_ago/get retain=0
Info:MQTT:Publishing val 0.000 to BK7231N_C8980008E/energycounter_3_days_ago/get retain=0
Info:MQTT:Publishing val 0000-00-00T00:00+00:00 to BK7231N_C8980008E/energycounter_clear_date/get retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/energycounter_last_hour/get
Info:MAIN:Time 855, idle 216698/s, free 72216, MQTT 1(28), bWifi 1, secondsWithNoPing 783, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/energycounter_yesterday/get
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/energycounter_2_days_ago/get
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/energycounter_3_days_ago/get
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/energycounter_clear_date/get
Info:MAIN:Time 855, idle 125249/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 784, socks 2/38
Info:MAIN:Time 856, idle 190263/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 785, socks 2/38
Info:MAIN:Time 857, idle 183996/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 786, socks 2/38
Info:MQTT:Publishing val 239.1 to BK7231N_C8980008E/voltage/get retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/voltage/get
Info:MAIN:Time 858, idle 189962/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 787, socks 2/38
Info:MAIN:Time 859, idle 176433/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 788, socks 2/38
Info:MQTT:Publishing val 122.581 to BK7231N_C8980008E/energycounter/get retain=0
Info:MQTT:Publishing val 122.581 to BK7231N_C8980008E/energycounter_today/get retain=0
Info:MAIN:Time 860, idle 190006/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 789, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/energycounter/get
Info:GEN:dhcp=0 ip=192.168.1.202 gate=192.168.1.254 mask=255.255.255.0 mac=f8:17:2d:c8:98:8e
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/energycounter_today/get
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-61,ssid=BSC,bssid=9c:c9:eb:f9:57:aa,channel=13,cipher_type:MIXED
Info:MAIN:Time 861, idle 195589/s, free 72304, MQTT 1(28), bWifi 1, secondsWithNoPing 790, socks 3/38
Info:MAIN:Time 862, idle 188977/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 791, socks 2/38
Info:MAIN:Time 863, idle 183586/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 792, socks 2/38
Info:MAIN:Time 864, idle 190643/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 793, socks 2/38
Info:MAIN:Time 865, idle 179390/s, free 72520, MQTT 1(28), bWifi 1, secondsWithNoPing 794, socks 2/38
Info:MQTT:Publishing val 0.000 to BK7231N_C8980008E/current/get retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/current/get
Info:MQTT:Publishing val 0.00 to BK7231N_C8980008E/power_apparent/get retain=0
Info:MQTT:Publishing val 0.00 to BK7231N_C8980008E/power_reactive/get retain=0
Info:MQTT:Publishing val 1.00 to BK7231N_C8980008E/power_factor/get retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/power_apparent/get
Info:MAIN:Time 867, idle 217558/s, free 72216, MQTT 1(28), bWifi 1, secondsWithNoPing 795, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/power_reactive/get
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BK7231N_C8980008E/power_factor/get
Info:MQTT:mqtt_connection_cb: Disconnected, reason: 256(Disconnected)
Thanks
Simon
----
Skasowano z tematu: Tuya T34 UK Mains Plug Adapter: Firmware Flashing, Config Extraction
przez Dnomis77 dnia 04 Jan 2026 23:47