Elektroda.com
Elektroda.com
X

[CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N

DasQ 1359 34
  • #1
    DasQ
    Level 4  
    Hi

    My Name is Andi and i am from germany
    My written English is not realy the best so forgive me please ;-)

    i bought two of this Powerstrips and want modify it. i see this OpenBK7231N for the include chip and i flashed it. but i must desolder it for flashing.
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
    AmazonLink

    but now my problem, i dont know how to configure it right. i tried the template for the AOFO smart power strip - WB2S but it wont work.

    i have some knowledge about Tasmota and Fhem. but your software is absoluty new for me and to much input in this short time.
    at this blakadder-Homepage someone desolder the CB2S and changed it to one ESP-02s.

    can me please someone translate the config from blakadder for my Strip with bekenchip?
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N

    thanks a lot

    DasQ aka Andi
  • Helpful post
    #2
    p.kaczmarek2
    Moderator Smart Home
    Hello, it looks like it's a TuyaMCU device.
    Quote:

    dpID 38 Controls all switches and USB

    dpID 1dpID 2dpID 3dpID 4 Control AC

    dpID 7 Controls USB

    So something similar to this:
    https://www.elektroda.com/rtvforum/topic3906443.html
    For a good start, try this autoexec.bat:
    
    
    startDriver TuyaMCU
    
    setChannelType 1 toggle
    setChannelLabel 1 "Relay 1"
    setChannelType 2 toggle
    setChannelLabel 2 "Relay 2"
    setChannelType 3 toggle
    setChannelLabel 3 "Relay 3"
    setChannelType 4 toggle
    setChannelLabel 4 "Relay 4"
    setChannelType 7 toggle
    setChannelLabel 7 "USB"
    
    
    
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 1 2
    linkTuyaMCUOutputToChannel 3 1 3
    linkTuyaMCUOutputToChannel 4 1 4
    linkTuyaMCUOutputToChannel 7 1 7
    
    

    set in Launch Web Application->LittleFS tab. Save and reboot.

    You may also need to change the baud rate, I don't know, try the posted config first and we will see.
  • #3
    DasQ
    Level 4  
    hmmm

    it looks like i foolishly overwrote the post before. I'll write that again for a moment.it works with the autoexec.bat, however, with restrictions
    so first of all thanks for your help. a basic function is now given.
    However, the buttons in the App_webif are not correct responding properly. they bounce or don't react. in the previous post I had a log of the behavior of pushing the buttons on the power strip. If you still want it, I can create one again. I didn't know that the character limit in the forum was playing tricks on me.
    i almost forgot, i.e. usb can’t be switched individually yet and the button for everything on and everything off doesn’t do anything either.
    then I still use the template from the C700 socket. should I delete this?

    Thanks

    and a log from pushing the buttons from AppWebIf
    I
    Info:GEN:11 Button_OnLongPressHold
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1228,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 1231, idle 175505/s, free 73480, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 5 (still set to 0) - ignoring
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1231,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"OFF","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 1232, idle 161089/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 5 (still set to 0) - ignoring
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1232,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 00 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 34 and got checksum 30
    Info:MAIN:Time 1233, idle 165954/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 5 (still set to 0) - ignoring
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1233,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"OFF","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 1235, idle 162062/s, free 73480, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 1236, idle 152439/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1236,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"ON","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1236,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"ON","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 1237, idle 147346/s, free 62000, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1237,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 1238, idle 154165/s, free 73480, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1238,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"ON","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:MAIN:Time 1239, idle 180136/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1239,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 1240, idle 161849/s, free 73480, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:GEN:No change in channel 5 (still set to 0) - ignoring
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1240,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 1241, idle 170031/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 1242, idle 162824/s, free 55816, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1242,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1242,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"ON","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:No change in channel 0 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Error:CMD:cmd RESULT NOT found (args {"Time":"1970-01-01T00:00:00","Uptime":"30T02:59:30","UptimeSec":1243,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":23,"POWER1":"ON","POWER2":"ON","POWER3":"ON","POWER4":"ON","POWER5":"OFF","POWER7":"ON","Wifi":{"AP":1,"SSId":"1","BSSId":"30:B5:C2:5D:70:72","Channel":11,"Mode":"11n","RSSI":78,"Signal":-60,"LinkCount":21,"Downtime":"0T06:13:34"}})
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:MAIN:Time 1244, idle 176243/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:MAIN:Time 1245, idle 189297/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:11 Button_OnLongPressHold
    Info:GEN:11 Button_OnLongPressHold
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 1246, idle 189936/s, free 73696, MQTT 1(3), bWifi 1, secondsWithNoPing -1, socks 2/38 
    
  • Helpful post
    #4
    p.kaczmarek2
    Moderator Smart Home
    I don't know what is your current configuration. If you applied some random template, then you might need to remove it first.

    What do you mean by "bounce"?

    How do you get those entries in log:
    
    Button_OnLongPressHold
    

    This device does not have any physical buttons on BK GPIO. It has only TuyaMCU. It seems like you have some random config applied...

    What do you have in pins settings? It looks like you have some BK buttons configured there, but they should not be here, it's a TuyaMCU device, the buttons are controlled by MCU.
  • #5
    DasQ
    Level 4  
    Hi,
    Thanks again for your patience. I reset template settings. However, I have also installed a rule and would like to delete it again. but how
    I'm starting to understand. I didn't realize that the IC (U3) is from tuya the MCU. I made an amateur sketch of how the TuyaMCU is wired.

    there are 3 main functions
    -functions switches 1-4 for one relay each, and includes a LED each.
    -USB on off (only via Handy App switchable)
    -All on and off switch.

    In the log I see that a response is coming from the individual 5 buttons. But i Can't interpret that correctly though. can you translate this PINOUT to OpenBeken config for me.

    1. pic false templat i use 2. is because the "Rule" 3. my pinout sketch
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
  • Helpful post
    #6
    p.kaczmarek2
    Moderator Smart Home
    Hello, you have indeed too many Toggle channels. You can fix it in two ways.
    First way is to go to Web Application and there set channel types back to default:
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
    Second way, just like our doc says:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
    is to use clearConfig command, but it will return device to AP mode, so backup the autoexec.bat first, because it will be lost.

    Then we can try to figure step by step how to fully support this device. One problem at time. I am here to help.
  • #7
    DasQ
    Level 4  
    Done

    here is a log from pushing the Main button

    Info:MAIN:Time 23, idle 189502/s, free 72912, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 00 0B 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 11 and got checksum 9
    Info:TuyaMCU:Consumed 8 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 24, idle 188935/s, free 72912, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    es
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 25, idle 120679/s, free 72912, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    


    I've now noticed that the red (Led6) communication Led has been blinking since recently. I would also like to deactivate it because it is annoying


    Thanks

    Andi
  • #8
    p.kaczmarek2
    Moderator Smart Home
    What is your current config? How well the device works now?

    If you want to silent the "device not paired" LED, then add this line to the end of the config:
    tuyaMcu_defWiFiState 3

    Without it, device assumes it is paired only when both MQTT and WiFi are on.
  • #9
    DasQ
    Level 4  
    Hi

    Except the main switch for everything off and on is missing (and no function), the rest works perfectly well 👍

    Export Template
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "AOFO Smart Power Strip",
      "model": "C733",
      "chip": "BK7231N",
      "board": "CB2S",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "10": "undefined;1"
      },
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }


    autoexec.bat
    startDriver TuyaMCU
    
    setChannelType 1 toggle
    setChannelLabel 1 "Relay 1"
    setChannelType 2 toggle
    setChannelLabel 2 "Relay 2"
    setChannelType 3 toggle
    setChannelLabel 3 "Relay 3"
    setChannelType 4 toggle
    setChannelLabel 4 "Relay 4"
    setChannelType 7 toggle
    setChannelLabel 7 "USB"
    
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 1 2
    linkTuyaMCUOutputToChannel 3 1 3
    linkTuyaMCUOutputToChannel 4 1 4
    linkTuyaMCUOutputToChannel 7 1 7
    
    tuyaMcu_defWiFiState 3


    *****edit*****

    with the DNS name (fhemmini.local) of my MQTT broker OPENBeken does not connect,but it works via IP (192.168.1.110)
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
  • #10
    p.kaczmarek2
    Moderator Smart Home
    We haven't scripted it yet:
    
    dpID 38 Controls all switches and USB
    


    In order to add that, add the following to current autoexec.bat:
    
    // use channel 5 for Toggle All (it is our choice)
    setChannelType 5 toggle
    setChannelLabel 5 "All"
    // link our channel 5 to the 38 dpId
    // syntax is: [dpId][varType][channelID]
    linkTuyaMCUOutputToChannel 38 1 5
    
    
    

    And now my question would be - does it work fully?
    I am asking because I don't know if TuyaMCU internally will handle everything correctly. Will using "Toggle All" dpID (number 38, as said earlier) automatically update remaining dpIDs or will we have to do it by hand?

    Please check and let me know, as I said, one step at time.
  • #11
    DasQ
    Level 4  
    Hi,

    Unfortunately it doesn't work yet.
    but I've got a log for you right here about switching

    
    mqtt_clientID obkFF68206C
    mqtt_host 192.168.1.110:1883
    Info:MAIN:Time 17, idle 191110/s, free 72568, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to obkFF68206C/+/set
    Info:MQTT:mqtt_subscribed to bekens/+/set
    Info:MQTT:mqtt_subscribed to cmnd/obkFF68206C/+
    Info:MQTT:mqtt_subscribed to cmnd/bekens/+
    Info:MQTT:mqtt_subscribed to obkFF68206C/+/get
    Info:MQTT:Publishing val obkFF68206C to obkFF68206C/host retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 00 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 0 and got checksum 4
    Info:MAIN:Time 18, idle 182214/s, free 72568, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 1c:90:ff:68:20:6c  to obkFF68206C/mac retain=0
    Info:MAIN:Time 20, idle 187520/s, free 72568, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-53,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    Info:MQTT:Publishing val 2 to obkFF68206C/sockets retain=0
    Info:MAIN:Time 21, idle 371033/s, free 72568, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val -53 to obkFF68206C/rssi retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 22, idle 203562/s, free 72568, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 22 to obkFF68206C/uptime retain=0
    Info:MAIN:Time 23, idle 187396/s, free 72336, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 72568 to obkFF68206C/freeheap retain=0
    Info:MAIN:Time 24, idle 187835/s, free 72328, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 192.168.1.41 to obkFF68206C/ip retain=0
    Info:MAIN:Time 25, idle 186522/s, free 72568, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 26, idle 191877/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 27, idle 185829/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 28, idle 196263/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 33, idle 197181/s, free 72344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 34, idle 194308/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 35, idle 190013/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 36, idle 187293/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 37, idle 191238/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 38, idle 192046/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 39, idle 188090/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 40, idle 190732/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-53,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    Info:MAIN:Time 41, idle 186805/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 42, idle 190817/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 43, idle 188765/s, free 60624, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 44, idle 186651/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 50, idle 188713/s, free 72328, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-53,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    Info:MAIN:Time 51, idle 181514/s, free 63936, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 53, idle 191652/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:Publishing val 0 to obkFF68206C/5/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    


    
    startDriver TuyaMCU
    
    setChannelType 1 toggle
    setChannelLabel 1 "Relay 1"
    setChannelType 2 toggle
    setChannelLabel 2 "Relay 2"
    setChannelType 3 toggle
    setChannelLabel 3 "Relay 3"
    setChannelType 4 toggle
    setChannelLabel 4 "Relay 4"
    setChannelType 7 toggle
    setChannelLabel 7 "USB"
    // use channel 5 for Toggle All (it is our choice)
    setChannelType 5 toggle
    setChannelLabel 5 "All"
    
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 1 2
    linkTuyaMCUOutputToChannel 3 1 3
    linkTuyaMCUOutputToChannel 4 1 4
    linkTuyaMCUOutputToChannel 7 1 7
    // link our channel 5 to the 38 dpId
    // syntax is: [dpId][varType][channelID]
    linkTuyaMCUOutputToChannel 38 1 5
    
    tuyaMcu_defWiFiState 3
    
    
  • #12
    p.kaczmarek2
    Moderator Smart Home
    Please provide more information what is exactly wrong with the "Toggle All" button. I need more details.

    a) does it appear on the screen? If no... well, you always must reboot device so autoexec.bat reruns on startup
    b) does it toggle anything at all? if not.... we will think about it.
    c) does it toggle sockets correctly, but doesn't update the buttons on our HTML page? Hmm..
  • #13
    DasQ
    Level 4  
    hi, and thanks

    i reboot every time twice ;-)

    The button is there, but without a function.
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N

    the log is not very meaningful, should I change the log level?
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N

    log "extradebug" press the hardwarebutton on the device

    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=2
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 13930, idle 186388/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-67,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=3
    Info:MAIN:Time 13931, idle 177809/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:TuyaMCU:Consumed 12 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 55 00 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MAIN:Time 13932, idle 188093/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    :TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MAIN:Time 13934, idle 118499/s, free 73304, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    


    and extralog from pressing the button from webif

    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=44
    Info:MAIN:Time 14064, idle 185810/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=45
    Info:MAIN:Time 14065, idle 190230/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=45
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 14066, idle 378745/s, free 64992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=46
    Info:MAIN:Time 14067, idle 176547/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=47
    Info:MAIN:Time 14068, idle 187814/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=48
    Info:MAIN:Time 14069, idle 180037/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=48
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 14070, idle 179132/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-63,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=51
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 14074, idle 190939/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=52
    Info:MAIN:Time 14075, idle 188559/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    


    Hinzugefügt nach 14 [Minuten]:

    and here a log include reboot + switching at webif + switching on hardwarebutton. i hope it helps you

    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=44
    Info:MAIN:Time 14064, idle 185810/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=45
    Info:MAIN:Time 14065, idle 190230/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=45
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 14066, idle 378745/s, free 64992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=46
    Info:MAIN:Time 14067, idle 176547/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=47
    Info:MAIN:Time 14068, idle 187814/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=48
    Info:MAIN:Time 14069, idle 180037/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=48
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 14070, idle 179132/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-63,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=51
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 14074, idle 190939/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=52
    Info:MAIN:Time 14075, idle 188559/s, free 73600, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 5 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 5, idle 186957/s, free 78984, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:ssid:1 key:1234567890SaGeR!1234567890
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 6, idle 117868/s, free 74008, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:CFG:####### Set Boot Complete #######
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 03 00 00 05 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 3 (WiFiState) with 7 bytes
    Info:MAIN:Time 7, idle 180514/s, free 73312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 8, idle 163377/s, free 71312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 9, idle 0/s, free 71312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 10, idle 0/s, free 71312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Time 11, idle 33440/s, free 70112, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 12, idle 172371/s, free 60912, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 13, idle 188644/s, free 72656, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 2 to obkFF68206C/sockets retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 00 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 0 and got checksum 4
    Info:MAIN:Time 18, idle 195813/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val -69 to obkFF68206C/rssi retain=0
    Info:MAIN:Time 19, idle 381829/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 19 to obkFF68206C/uptime retain=0
    Info:MAIN:Time 20, idle 190097/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-69,ssid=1,bssid=3c:37:12:a1:65:f4 ,channel=11,cipher_type:CCMP
    Info:MQTT:Publishing val 72560 to obkFF68206C/freeheap retain=0
    Info:MAIN:Time 21, idle 182759/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 192.168.1.41 to obkFF68206C/ip retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 22, idle 188151/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 23, idle 185847/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68206C/5/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 24, idle 183633/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:Publishing val 0 to obkFF68206C/5/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 26, idle 182589/s, free 60864, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 30, idle 192454/s, free 63952, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=1,bssid=3c:37:12:a1:65:f4 ,channel=11,cipher_type:CCMP
    Info:MAIN:Time 31, idle 192691/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:Publishing val 0 to obkFF68206C/5/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 32, idle 177753/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 33, idle 192081/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68206C/5/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 34, idle 183580/s, free 72344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:Publishing val 0 to obkFF68206C/5/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 37, idle 191816/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 41, idle 71256/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 42, idle 189519/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 43, idle 187022/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    essage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:MQTT:Publishing val 0 to obkFF68206C/3/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68206C/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:MQTT:Publishing val 0 to obkFF68206C/7/get retain=0
    Info:TuyaMCU:Consumed 12 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 44, idle 220474/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/2/get
    Info:MQTT:MQTT in topic obkFF68206C/2/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/3/get
    Info:MQTT:MQTT in topic obkFF68206C/3/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:channelSet NOT 'set'
    3 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68206C/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:MQTT:Publishing val 1 to obkFF68206C/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 5 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 45, idle 95251/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/2/get
    Info:MQTT:MQTT in topic obkFF68206C/2/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/3/get
    Info:MQTT:MQTT in topic obkFF68206C/3/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 48, idle 71129/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 49, idle 193550/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
     (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68206C/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:Publishing val 1 to obkFF68206C/7/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68206C/5/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 50, idle 216608/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-70,ssid=1,bssid=3c:37:12:a1:65:f4 ,channel=11,cipher_type:CCMP
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/3/get
    Info:MQTT:MQTT in topic obkFF68206C/3/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 51, idle 72082/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 52, idle 189830/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 1C 00 00 1E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 28 (SetTime) with 7 bytes
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: received TUYA_CMD_SET_TIME, so sending back time
    Info:TuyaMCU:MCU time to set: 0
    Info:TuyaMCU:ptime ->gmtime => tm_hour: 0
    Info:TuyaMCU:ptime ->gmtime => tm_min: 0
    Info:MAIN:Time 53, idle 193575/s, free 72560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    
  • #14
    p.kaczmarek2
    Moderator Smart Home
    The logs you have posted indicates that dpID 38 is indeed being sent from TuyaMCU to OpenBeken. Futhermorer, it indicates that Channel 5 is being also changed.
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    

    However, I can see only:
    
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    

    all the time. Is there any situation, when after repeated press, it wants to set channel 5 to 1 instead of 0?

    Can you please do one more test?

    Does your device has a "Toggle all" button on a case? If so, then does pressing it toggles the "Toggle All" state on GUI?
  • #15
    DasQ
    Level 4  
    yes there is a "toggle all" button on the case. I've posted the log several times, but would like to post it again
    Quote:
    log "extradebug" press the hardwarebutton on the device


    5-6 pushings at the case(toggle)button

    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 10706, idle 191240/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 10707, idle 199271/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
     data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68206C/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:MQTT:Publishing val 1 to obkFF68206C/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68206C/5/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 00 09 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 7 bytes
    Info:TuyaMCU:Consumed 8 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 10708, idle 217622/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/2/get
    Info:MQTT:MQTT in topic obkFF68206C/2/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/3/get
    Info:MQTT:MQTT in topic obkFF68206C/3/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 10709, idle 71276/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68206C/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:MQTT:Publishing val 0 to obkFF68206C/5/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 10710, idle 212873/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.41 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:20:6c 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-74,ssid=1,bssid=3c:37:12:a1:65:f4 ,channel=11,cipher_type:CCMP
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/2/get
    Info:MQTT:MQTT in topic obkFF68206C/2/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/3/get
    Info:MQTT:MQTT in topic obkFF68206C/3/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68206C/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:MQTT:Publishing val 1 to obkFF68206C/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68206C/5/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 10711, idle 94524/s, free 73368, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/2/get
    Info:MQTT:MQTT in topic obkFF68206C/2/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 10712, idle 75360/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    l set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68206C/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68206C/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:MQTT:Publishing val 0 to obkFF68206C/5/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:Consumed 15 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 55 00 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:MAIN:Time 10713, idle 216695/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/2/get
    Info:MQTT:MQTT in topic obkFF68206C/2/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 10714, idle 76085/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    d to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68206C/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/1/get
    Info:MQTT:MQTT in topic obkFF68206C/1/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/1/get
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:Publishing val 1 to obkFF68206C/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68206C/5/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 10715, idle 190709/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/2/get
    Info:MQTT:MQTT in topic obkFF68206C/2/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/3/get
    Info:MQTT:MQTT in topic obkFF68206C/3/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/4/get
    Info:MQTT:MQTT in topic obkFF68206C/4/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/7/get
    Info:MQTT:MQTT in topic obkFF68206C/7/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/7/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68206C/5/get
    Info:MQTT:MQTT in topic obkFF68206C/5/get
    Info:MQTT:MQTT topic not handled: obkFF68206C/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 10716, idle 111699/s, free 73672, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    


    you are doing a truly remarkable job

    thanks a lot
  • #16
    p.kaczmarek2
    Moderator Smart Home
    Considering your last log, I would say that dpID 38 indeed changes from 0 to 1 and but does not toggle all.
    
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 1 (flags 0)
    

    
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 5 has changed to 0 (flags 0)
    


    Well, you didn't answer my question:
    Quote:

    If so, then does pressing it toggles the "Toggle All" state on GUI?

    but it seems that yes, the Toggle All changes its status on GUI, but it doesn't toggle remaining channels.

    If so, if my assumption is correct, then you can script remaining channels to toggle when that toggle all channel changes.
    
    alias set_all_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1;
    alias set_all_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0;
    alias myToggle if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on
    addEventHandler OnChannelChange 5 myToggle
    

    Following code (add it to autoexec.bat) will make Relays 1, 2, 3 and 4 react to toggling channel 5 (marked as toggle all).
    Can you check if it works for you as expected?

    This is not a final solution, but at least check if it works from both HTTP GUI and from physical toggle all button....
  • #17
    DasQ
    Level 4  
    Nice!

    it looks like it woks as well :-)

    but i did some small changes
    startDriver TuyaMCU
    
    setChannelType 1 toggle
    setChannelLabel 1 "Relay 1"
    setChannelType 2 toggle
    setChannelLabel 2 "Relay 2"
    setChannelType 3 toggle
    setChannelLabel 3 "Relay 3"
    setChannelType 4 toggle
    setChannelLabel 4 "Relay 4"
    setChannelType 5 toggle
    setChannelLabel 5 "All Relays"
    setChannelType 6 toggle
    setChannelLabel 6 "All"
    setChannelType 7 toggle
    setChannelLabel 7 "USB"
    
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 1 2
    linkTuyaMCUOutputToChannel 3 1 3
    linkTuyaMCUOutputToChannel 4 1 4
    linkTuyaMCUOutputToChannel 7 1 7
    
    alias set_all_relays_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1;
    alias set_all_relays_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0;
    alias myRelaysToggle if $CH1||$CH2||$CH3||$CH4 then set_all_relays_off else set_all_relays_on
    alias set_all_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;
    alias set_all_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;
    alias myToggle if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on
    
    addEventHandler OnChannelChange 5 myRelaysToggle
    addEventHandler OnChannelChange 6 myToggle
    
    tuyaMcu_defWiFiState 3
    


    and a log from toggle from WebIf. first "toggle all relays" then "toggle all"

    Debug:CMD:cmd [myRelaysToggle]
    Debug:CMD:cmd [if $CH1||$CH2||$CH3||$CH4 then set_all_relays_off else set_all_relays_on]
    Debug:CMD:cmd [set_all_relays_off]
    Debug:CMD:cmd [backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0;]
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Debug:CMD:backlog executed 4
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=9
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:MAIN:Time 330, idle 142845/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.43 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:24:9e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-68,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=10
    Info:MAIN:Time 331, idle 143020/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=11
    Info:MAIN:Time 332, idle 190250/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68249E/5/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myRelaysToggle
    Debug:CMD:cmd [myRelaysToggle]
    Debug:CMD:cmd [if $CH1||$CH2||$CH3||$CH4 then set_all_relays_off else set_all_relays_on]
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/5/get
    Info:MQTT:MQTT in topic obkFF68249E/5/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/5/get
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:CMD:cmd [set_all_relays_on]
    Debug:CMD:cmd [backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1;]
    Debug:CMD:backlog [setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1;]
    Debug:CMD:cmd [setChannel 1 1]
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Debug:CMD:cmd [setChannel 2 1]
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:MQTT:Publishing val 1 to obkFF68249E/2/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:CMD:cmd [setChannel 3 1]
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:MQTT:Publishing val 1 to obkFF68249E/3/get retain=0
    Debug:CMD:cmd [setChannel 4 1]
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68249E/4/get retain=0
    Debug:CMD:backlog executed 4
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=12
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 01 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 35 and got checksum 28
    Info:MAIN:Time 333, idle 159591/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=12
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 334, idle 124238/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 6 
    Info:MQTT:Publishing val 0 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Debug:CMD:cmd [myToggle]
    Debug:CMD:cmd [if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on]
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:CMD:cmd [set_all_off]
    Debug:CMD:cmd [backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;]
    Debug:CMD:backlog [setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;]
    Debug:CMD:cmd [setChannel 1 0]
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to obkFF68249E/1/get retain=0
    Debug:CMD:cmd [setChannel 2 0]
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 0 to obkFF68249E/2/get retain=0
    Debug:CMD:cmd [setChannel 3 0]
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:MQTT:Publishing val 0 to obkFF68249E/3/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:CMD:cmd [setChannel 4 0]
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Debug:CMD:cmd [setChannel 7 0]
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68249E/7/get retain=0
    Debug:CMD:backlog executed 5
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Debug:MQTT:channelSet topic 4210628 with arg 0
    Info:MQTT:channelSet NOT 'set'
    , product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=13
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MAIN:Time 335, idle 133518/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=14
    Info:MAIN:Time 336, idle 120542/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 6 
    Info:MQTT:Publishing val 1 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Debug:CMD:cmd [myToggle]
    Debug:CMD:cmd [if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on]
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:CMD:cmd [set_all_on]
    Debug:CMD:cmd [backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;]
    Debug:CMD:backlog [setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;]
    Debug:CMD:cmd [setChannel 1 1]
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Debug:CMD:cmd [setChannel 2 1]
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:MQTT:Publishing val 1 to obkFF68249E/2/get retain=0
    Debug:CMD:cmd [setChannel 3 1]
    nfo:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MAIN:Time 337, idle 158379/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4210628 with arg 1
    Info:MQTT:channelSet NOT 'set'
  • #18
    p.kaczmarek2
    Moderator Smart Home
    Your code seems okay, but you have the toggle all fully done in OpenBeken, without dpID 38 link. Is that a desired approach?

    That way the dpID 38 physical button connected to MCU won't work
  • #19
    DasQ
    Level 4  
    Hi, this is not desired, but it works. I thought, since the first approach via dpID38 didn't work as expected, comment out this part. and later I just deleted it to save memory. didn't know that I should leave the physical assignment in there.
  • #20
    p.kaczmarek2
    Moderator Smart Home
    I am not sure if it's a communication error or intended behaviour, but I think that this line:
    
    linkTuyaMCUOutputToChannel 38 1 5
    

    will make physical toggle all button toggle channel 5, and then this line:
    
    addEventHandler OnChannelChange 5 myRelaysToggle
    

    would make relays follow the toggle.

    Can you check?

    I am thinking this because I saw in your logs that dpID 38 is indeed sent by the device and OpenBeken can receive it, both 0 and 1 values.
  • #21
    DasQ
    Level 4  
    ok i change it again and log

    startDriver TuyaMCU
    
    setChannelType 1 toggle
    setChannelLabel 1 "Relay 1"
    setChannelType 2 toggle
    setChannelLabel 2 "Relay 2"
    setChannelType 3 toggle
    setChannelLabel 3 "Relay 3"
    setChannelType 4 toggle
    setChannelLabel 4 "Relay 4"
    setChannelType 5 toggle
    setChannelLabel 5 "All Relays"
    setChannelType 6 toggle
    setChannelLabel 6 "All"
    setChannelType 7 toggle
    setChannelLabel 7 "USB"
    
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 1 2
    linkTuyaMCUOutputToChannel 3 1 3
    linkTuyaMCUOutputToChannel 4 1 4
    linkTuyaMCUOutputToChannel 7 1 7
    // link our channel 6 to the 38 dpId
    // syntax is: [dpId][varType][channelID]
    linkTuyaMCUOutputToChannel 38 1 6
    
    alias set_all_relays_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1;
    alias set_all_relays_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0;
    alias myRelaysToggle if $CH1||$CH2||$CH3||$CH4 then set_all_relays_off else set_all_relays_on
    
    alias set_all_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;
    alias set_all_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;
    alias myToggle if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on
    
    addEventHandler OnChannelChange 5 myRelaysToggle
    addEventHandler OnChannelChange 6 myToggle
    tuyaMcu_defWiFiState 3
    
    
    
    
    



    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 47, idle 180043/s, free 70656, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 48, idle 168611/s, free 62336, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68249E/7/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 23 and got checksum 16
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 49, idle 168354/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 50, idle 183048/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.43 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:24:9e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-63,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:Publishing val 1 to obkFF68249E/7/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 51, idle 174332/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68249E/4/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 52, idle 185811/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 01 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 53, idle 173154/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 54, idle 180664/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 5 
    Info:MQTT:Publishing val 1 to obkFF68249E/5/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myRelaysToggle
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to obkFF68249E/1/get retain=0
    Info:GEN:No change in channel 2 (still set to 0) - ignoring
    
    Info:GEN:No change in channel 3 (still set to 0) - ignoring
    
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/5/get
    Info:MQTT:MQTT in topic obkFF68249E/5/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 55, idle 165906/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:Publishing val 0 to obkFF68249E/5/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myRelaysToggle
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/5/get
    Info:MQTT:MQTT in topic obkFF68249E/5/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/5/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:MQTT:Publishing val 1 to obkFF68249E/2/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 01 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 56, idle 178407/s, free 59232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:channelSet NOT 'set'
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:MQTT:Publishing val 1 to obkFF68249E/3/get retain=0
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68249E/4/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 57, idle 103034/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 6 
    Info:MQTT:Publishing val 1 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 0 to obkFF68249E/1/get retain=0
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:MQTT:Publishing val 0 to obkFF68249E/2/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:TuyaMCU:Consumed 8 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 58, idle 171571/s, free 59232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:channelSet NOT 'set'
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:MQTT:Publishing val 0 to obkFF68249E/3/get retain=0
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68249E/7/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:channelSet NOT 'set'
     dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 59, idle 115667/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 6 
    Info:MQTT:Publishing val 0 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:MQTT:Publishing val 1 to obkFF68249E/2/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 01 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 60, idle 143999/s, free 58928, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.1.43 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:24:9e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-63,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:channelSet NOT 'set'
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:MQTT:Publishing val 1 to obkFF68249E/3/get retain=0
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68249E/4/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:channelSet NOT 'set'
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 1 to obkFF68249E/7/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 00 07 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 7 and got checksum 9
    Info:TuyaMCU:Consumed 5 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 01 00 01 01 18 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 61, idle 137986/s, free 70960, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
  • #22
    p.kaczmarek2
    Moderator Smart Home
    I am unable to find any mentions of dpID 38 in the log from your last post. It was in logs before, but not know.

    Does pressing a "Toggle all" physical button on the device toggles all relay channels?
  • #23
    DasQ
    Level 4  
    no i pressed the button in the webif
    The original firmware turns everything off or on when you press the physical button (ch1-ch4 including USB).
    but I also like the new function to switch only all relays (1ch-ch4)

    sorry here is a log from pressing the device button

    Debug:CMD:cmd [if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on]
    Debug:CMD:cmd [set_all_on]
    Debug:CMD:cmd [backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;]
    Debug:CMD:backlog [setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;]
    Debug:CMD:cmd [setChannel 1 1]
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Debug:CMD:cmd [setChannel 2 1]
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:MQTT:Publishing val 1 to obkFF68249E/2/get retain=0
    Debug:CMD:cmd [setChannel 3 1]
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:MQTT:Publishing val 1 to obkFF68249E/3/get retain=0
    Debug:CMD:cmd [setChannel 4 1]
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68249E/4/get retain=0
    Debug:CMD:cmd [setChannel 7 1]
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:Publishing val 1 to obkFF68249E/7/get retain=0
    Debug:CMD:backlog executed 5
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 1C 00 00 1E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 28 (SetTime) with 7 bytes
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: received TUYA_CMD_SET_TIME, so sending back time
    Info:TuyaMCU:MCU time to set: 0
    Info:TuyaMCU:ptime ->gmtime => tm_hour: 0
    Info:TuyaMCU:ptime ->gmtime => tm_min: 0
    Info:MAIN:Time 1203, idle 148891/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=16
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 00 00 01 01 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 18 and got checksum 17
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MAIN:Time 1204, idle 95551/s, free 63296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    essing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:MQTT:Publishing val 0 to obkFF68249E/3/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68249E/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 6 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MAIN:Time 1205, idle 146450/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=17
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 1206, idle 99062/s, free 63296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    fo:MQTT:Publishing val 1 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Debug:CMD:cmd [myToggle]
    Debug:CMD:cmd [if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on]
    Debug:CMD:cmd [set_all_off]
    Debug:CMD:cmd [backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;]
    Debug:CMD:backlog [setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;]
    Debug:CMD:cmd [setChannel 1 0]
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to obkFF68249E/1/get retain=0
    Debug:CMD:cmd [setChannel 2 0]
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:MQTT:Publishing val 0 to obkFF68249E/2/get retain=0
    Debug:CMD:cmd [setChannel 3 0]
    Info:GEN:No change in channel 3 (still set to 0) - ignoring
    
    Debug:CMD:cmd [setChannel 4 0]
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Debug:CMD:cmd [setChannel 7 0]
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68249E/7/get retain=0
    Debug:CMD:backlog executed 5
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MAIN:Time 1207, idle 210705/s, free 71616, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 1
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 1, wifi_state_timer=19
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:MAIN:Time 1208, idle 49826/s, free 60208, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    ype 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 6 
    Info:MQTT:Publishing val 0 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Debug:CMD:cmd [myToggle]
    Debug:CMD:cmd [if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on]
    Debug:CMD:cmd [set_all_on]
    Debug:CMD:cmd [backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;]
    Debug:CMD:backlog [setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;]
    Debug:CMD:cmd [setChannel 1 1]
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Debug:CMD:cmd [setChannel 2 1]
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:MQTT:Publishing val 1 to obkFF68249E/2/get retain=0
    Debug:CMD:cmd [setChannel 3 1]
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:MQTT:Publishing val 1 to obkFF68249E/3/get retain=0
    Debug:CMD:cmd [setChannel 4 1]
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68249E/4/get retain=0
    Debug:CMD:cmd [setChannel 7 1]
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:Publishing val 1 to obkFF68249E/7/get retain=0
    Debug:CMD:backlog executed 5
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped
    Info:MAIN:Time 1209, idle 152092/s, free 71920, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Debug:MQTT:channelSet topic 4208856 with arg 0
    Info:MQTT:channelSet NOT 'set'
    

    *****************************************************************
    Hinzugefügt nach 2 [Stunden] 54 [Minuten]:

    after some trys i made a big crashing one of my strips.
    befor i flashed the new version 1.15.573. so i thinked this was the problem, but no, i discovered that the line
    linkTuyaMCUOutputToChannel 38 1 6

    made this problem. always i press the hardware (or webif) button, randomly switches ch1 + ch2 on and ch3 + ch4 off or other shapes absolutly random. So i coment it back out and every thing is ok.

    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:MAIN:Time 42, idle 221210/s, free 58912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 43, idle 68964/s, free 59216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 44, idle 177278/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 45, idle 192707/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 46, idle 197655/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 47, idle 183901/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 48, idle 189577/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 50, idle 50040/s, free 59216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.1.43 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:24:9e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-66,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    Info:MAIN:Time 51, idle 147788/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 52, idle 192120/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 53, idle 191796/s, free 70696, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 4 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 6 
    Info:MQTT:Publishing val 0 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to obkFF68249E/1/get retain=0
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:MQTT:Publishing val 1 to obkFF68249E/2/get retain=0
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:MQTT:Publishing val 1 to obkFF68249E/3/get retain=0
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:MQTT:Publishing val 1 to obkFF68249E/4/get retain=0
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:MQTT:Publishing val 1 to obkFF68249E/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 54, idle 194217/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 01 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 55, idle 98856/s, free 62288, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 56, idle 153430/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 57, idle 188570/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    uyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:MQTT:Publishing val 0 to obkFF68249E/2/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:MQTT:Publishing val 0 to obkFF68249E/3/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:Publishing val 0 to obkFF68249E/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 6 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 35 and got checksum 28
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 59, idle 218927/s, free 70592, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    nged! Publishing 1 to channel 7 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:Publishing val 1 to obkFF68249E/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 6 
    Info:MQTT:Publishing val 1 to obkFF68249E/6/get retain=0
    Info:EVENT:EventHandlers_FireEvent: executing command myToggle
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to obkFF68249E/1/get retain=0
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:MQTT:Publishing val 0 to obkFF68249E/2/get retain=0
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:MQTT:Publishing val 0 to obkFF68249E/3/get retain=0
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to obkFF68249E/4/get retain=0
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to obkFF68249E/7/get retain=0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 62, idle 228159/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/6/get
    Info:MQTT:MQTT in topic obkFF68249E/6/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/6/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/1/get
    Info:MQTT:MQTT in topic obkFF68249E/1/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/1/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/2/get
    Info:MQTT:MQTT in topic obkFF68249E/2/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/2/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/3/get
    Info:MQTT:MQTT in topic obkFF68249E/3/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/3/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/4/get
    Info:MQTT:MQTT in topic obkFF68249E/4/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/4/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obkFF68249E/7/get
    Info:MQTT:MQTT in topic obkFF68249E/7/get
    Info:MQTT:MQTT topic not handled: obkFF68249E/7/get
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet NOT 'set'
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 01 01 00 01 00 11 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 1 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 2 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 7 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 63, idle 48416/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 64, idle 156601/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes
    Info:MAIN:Time 66, idle 190340/s, free 70912, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    
  • #24
    DasQ
    Level 4  
    After doing some tests and trying a quick review.

    the hardware button dpID38 does not want to work yet. The built-in time are still without function.the timers in the original firmware were times paired with the desired state. e.g. 12:30 power1 on or 15:30 all off

    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 9 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 10 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 11 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 12 with value 0 is not mapped
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Debug:TuyaMCU:TuyaMCU_ApplyMapping: id 15 with value 0 is not mapped


    so did some mappings in the autoexec but no real funktion.

    for me, the feedback via MQTT still occurs with incomprehensibly nested FLAGS. the default statuses are in uppercase, but should be lowercase. why i have 2 "uptimes" one evertime is 30 days wrong after reboot. one uppler and the other lowercase.
    is a featurerequest possible for a LWT state?

    how can i interpret/implement the backlog, rules or scripting like tasmote

    my autoexec.bat for now (but a lot without funktion)
    
    startDriver TuyaMCU
    startDriver NTP
    
    // Toogle each only Relays 1-4 
    setChannelType 1 toggle
    setChannelLabel 1 "R 1"
    setChannelType 2 toggle
    setChannelLabel 2 "R 2"
    setChannelType 3 toggle
    setChannelLabel 3 "R 3"
    setChannelType 4 toggle
    setChannelLabel 4 "R 4"
    
    //new funktion Toggle only all Relais
    setChannelType 5 toggle
    setChannelLabel 5 "All R"
    
    //problemfunktion dpId 38 to 
    setChannelType 6 toggle
    setChannelLabel 6 "All"
    
    // new function toggle USB only
    setChannelType 7 toggle
    setChannelLabel 7 "USB"
    
    // times for R1-R4 to 8-11 and USB 12
    // channel 8, dpId 9, dataType 4-DP_TYPE_ENUM = set timer
    setChannelType 8 TextField
    setChannelType 9 TextField
    setChannelType 10 TextField
    setChannelType 11 TextField
    setChannelType 12 TextField
    
    //mapping hardware
    // syntax is: [dpId][varType][channelID]
    // VarTypes: 0-raw, 1-bool, 2-value, 3-string, 4-enum, 5-bitmap
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 1 2
    linkTuyaMCUOutputToChannel 3 1 3
    linkTuyaMCUOutputToChannel 4 1 4
    linkTuyaMCUOutputToChannel 7 1 7
    //timer mapping
    linkTuyaMCUOutputToChannel 9 2 8
    linkTuyaMCUOutputToChannel 10 2 9
    linkTuyaMCUOutputToChannel 11 2 10
    linkTuyaMCUOutputToChannel 12 2 11
    linkTuyaMCUOutputToChannel 15 2 12
    
    // link our channel 6 to the 38 dpId
    linkTuyaMCUOutputToChannel 38 1 6
    
    alias set_all_relays_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1;
    alias set_all_relays_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0;
    alias myRelaysToggle if $CH1||$CH2||$CH3||$CH4 then set_all_relays_off else set_all_relays_on
    
    //alias set_all_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;
    //alias set_all_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;
    //alias myToggle if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on
    
    addEventHandler OnChannelChange 5 myRelaysToggle
    //addEventHandler OnChannelChange 6 myToggle
    tuyaMcu_defWiFiState 3
    


    and a log from pushing the hardware button dpID38 (but here is a unreadable signe in it)(screeshot) [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 10 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 11 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 657, idle 54464/s, free 71640, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    ocessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 6 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 8 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 9 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 10 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 11 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 658, idle 115641/s, free 71424, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 3/38 
    GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 6 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 8 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 00 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 33 and got checksum 31
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 10 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 11 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 659, idle 109274/s, free 63032, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 3/38 
    ata 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 6 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 8 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 9 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 10 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 11 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 660, idle 114267/s, free 71640, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.43 gate=192.168.1.102 mask=255.255.255.0 mac=1c:90:ff:68:24:9e 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-59,ssid=1,bssid=3c:37:12:de:9e:62 ,channel=11,cipher_type:CCMP
    cessing dpId 1, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 3 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 3 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 6 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 8 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 9 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 10 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 11 (still set to 0) - ignoring
    
    Info:MAIN:Time 661, idle 117040/s, free 63032, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 3/38 
    DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 00 12 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:TuyaMCU:Consumed 12 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 55 00 03 07 00 05 03 01 00 01 00 13 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 00 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 00 17 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 00 36 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 6 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 8 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 9 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 10 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 11 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 15, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:MAIN:Time 662, idle 101453/s, free 63032, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 3/38 
    L_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 02 01 00 01 01 13 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 2, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 2 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 2 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 03 01 00 01 01 14 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 3, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:No change in channel 3 (still set to 1) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 04 01 00 01 01 15 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 4, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 4 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 4 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 07 01 00 01 01 18 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 7, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 7 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 7 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 26 01 00 01 01 37 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 38, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:GEN:CHANNEL_Set channel 6 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 6 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 09 02 00 04 00 00 00 00 20 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 8 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0A 02 00 04 00 00 00 00 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 10, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 9 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0B 02 00 04 00 00 00 00 22 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 11, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 10 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 0C 02 00 04 00 00 00 00 23 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 12, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
    Info:GEN:No change in channel 11 (still set to 0) - ignoring
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 00 07 00 08 0F 02 00 04 00 00 00 00 26 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 38 and got checksum 35
    Info:MAIN:Time 663, idle 114649/s, free 71640, MQTT 0(2), bWifi 1, secondsWithNoPing -1, socks 2/38 
    


    and now i removed some mistakes from me and the time still running
    i can put a dezimal for secounds like 35000 or 10 and after the countdown is done the relays toggle state

    Hinzugefügt nach 3 [Stunden] 5 [Minuten]:

    hi

    here is my still running autoexec.bat with timer and All off function

    startDriver TuyaMCU
    startDriver NTP
    
    // Toogle each only Relays 1-4 
    setChannelType 1 toggle
    setChannelLabel 1 "R 1"
    setChannelType 2 toggle
    setChannelLabel 2 "R 2"
    setChannelType 3 toggle
    setChannelLabel 3 "R 3"
    setChannelType 4 toggle
    setChannelLabel 4 "R 4"
    
    //new funktion Toggle only all Relais
    setChannelType 5 toggle
    setChannelLabel 5 "All R"
    
    //problemfunktion dpId 38 to 
    setChannelType 6 toggle
    setChannelLabel 6 "All"
    
    // new function toggle USB only
    setChannelType 7 toggle
    setChannelLabel 7 "USB"
    
    // times for R1-R4 to 8-11 and USB 12
    // channel 8, dpId 9, dataType 4-DP_TYPE_ENUM = set timer
    setChannelType 8 TextField
    setChannelType 9 TextField
    setChannelType 10 TextField
    setChannelType 11 TextField
    setChannelType 12 TextField
    
    // syntax is: [dpId][varType][channelID]
    // VarTypes: 0-raw, 1-bool, 2-value, 3-string, 4-enum, 5-bitmap
    
    //mapping relays
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 1 2
    linkTuyaMCUOutputToChannel 3 1 3
    linkTuyaMCUOutputToChannel 4 1 4
    
    // link our channel 6 to dpId 38 
    // linkTuyaMCUOutputToChannel 38 1 6
    
    //link our channel 7 to dpId 7
    linkTuyaMCUOutputToChannel 7 1 7
    
    //link timer mapping
    linkTuyaMCUOutputToChannel 9 2 8
    linkTuyaMCUOutputToChannel 10 2 9
    linkTuyaMCUOutputToChannel 11 2 10
    linkTuyaMCUOutputToChannel 12 2 11
    linkTuyaMCUOutputToChannel 15 2 12
    
    alias set_all_relays_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1;
    alias set_all_relays_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0;
    alias myRelaysToggle if $CH1||$CH2||$CH3||$CH4 then set_all_relays_off else set_all_relays_on
    
    alias set_all_on backlog setChannel 1 1; setChannel 2 1; setChannel 3 1; setChannel 4 1; setChannel 7 1;
    alias set_all_off backlog setChannel 1 0; setChannel 2 0; setChannel 3 0; setChannel 4 0; setChannel 7 0;
    alias myToggle if $CH1||$CH2||$CH3||$CH4 then set_all_off else set_all_on
    
    addEventHandler OnChannelChange 5 myRelaysToggle
    addEventHandler OnChannelChange 6 myToggle
    tuyaMcu_defWiFiState 3


    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
  • #25
    p.kaczmarek2
    Moderator Smart Home
    Good job on figuring out the timers, however, it can also done without TuyaMCU, fully in our software.
    Just with httpButtons driver (or a custom channels) and addRepeatingEvent (with just 1 repeat).

    DasQ wrote:
    for me, the feedback via MQTT still occurs with incomprehensibly nested FLAGS. the default statuses are in uppercase, but should be lowercase. why i have 2 "uptimes" one evertime is 30 days wrong after reboot. one uppler and the other lowercase.
    is a featurerequest possible for a LWT state?

    I am sorry, but I am not sure if I understand correctly. Can you provide some detailed screenshot showing the issue you experience?

    The current datetime requires a NTP driver running. You need to have 'startDriver NTP' in autoexec.bat.
  • #26
    DasQ
    Level 4  
    Hi,

    I just wanted to get in touch to give you an update.

    the IC U3 is a STM8S003F3P6.
    apparently the signal processing is not implemented correctly in tasmota either. an analog value is displayed there, which cannot be.

    Irrespective of this, the LEDs must be controlled individually. the main switch also changes its state when you press the other hardware switch. but usb stays out. although the main switch actually normaly also activates usb-ports.

    I also have the problem that when the event handler triggers, too many mqtt telegrams are fired at the same time, the connection breaks down.
    In addition, there are the problems already mentioned above, e.g. u(U)ptime (a variant with seconds from 1970), missing LWT, transmission interval, etc. interfere. the status in the web view should also correspond to that on the device, but it doesn't.
    If I switch all relays or everything including USB via MQTT, it can happen that not all relays or USB are switched. and an indiscriminate switching status on the hardware. the mqtt retain only updates 60 seconds later. but then just wrong

    btw. a picture i found in the internet from IC u3
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N

    and the 2 uptimes in fhem
    [CB2S/BK7231N] TuyaMCU AOFO Smart Power Strip C733: Configuring & Modifying with OpenBK7231N
    and a manual for the mcu and protokoll

    so i resoldered the cb2s flashed back the original firmware and sniffed at the rear rt2 tx2 ports from the chip this
    you see some switings from webif and hardware and some timer and countdowns.
    i see also BLE it means bluetooth ...nice ... how can i use this?

    
    V:BK7231N_1.0.1
    
    REG:cpsr     spsr     r13      r14
    
    SVC:000000D3          00401C1C 000033AC
    
    IRQ:000000d2 00000010 00401e0c a169686d 
    
    FIR:000000d1 00000010 00401ffc 4cd65360 
    
    SYS:000000df          0040192c 00000158 
    
    ST:00000000
    
    J 0x10000
    
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x411fa0, size:122976
    [Flash]id:0xeb6015
    sctrl_sta_ps_init
    cset:0 0 0 0
    [01-01 18:12:15 TUYA Info][lr:0x9fc21] mqc app init …
    [01-01 18:12:15 TUYA Info][lr:0xb2e6b] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
    [01-01 18:12:15 TUYA Info][lr:0xb2e6b] thread_create name:cmmod,stackDepth:4096,totalstackDepth:8192,priority:4
    [01-01 18:12:15 TUYA Debug][lr:0x9fbcf] mq_pro:5 cnt:1
    [01-01 18:12:15 TUYA Debug][lr:0x9fbcf] mq_pro:31 cnt:2
    [01-01 18:12:15 TUYA Debug][lr:0xb2cf7] Thread:sys_timer Exec Start. Set to Running Stat
    [01-01 18:12:15 TUYA Debug][lr:0xb16f5] read m:0 f:0 l:0
    [01-01 18:12:15 TUYA Debug][lr:0xa75e3] svc online log init success
    [01-01 18:12:15 TUYA Info][lr:0xb2e6b] thread_create name:wk_th-0,stackDepth:5120,totalstackDepth:13312,priority:3
    [01-01 18:12:15 TUYA Err][lr:0xb929d] wd_protected_read fails gw_bi -1
    [01-01 18:12:15 TUYA Debug][lr:0xb955f] gw base read finish:-1
    [01-01 18:12:15 TUYA Debug][lr:0xa2a75] ty bt cmmod regist ok:1
    [01-01 18:12:15 TUYA Debug][lr:0xa2e8d] upd adv para, send conn_req beacon.
    [PLATFORM DEBUç���������������
    
    V:BK7231N_1.0.1
    
    REG:cpsr     spsr     r13      r14
    
    SVC:000000D3          00401C1C 000033AC
    
    IRQ:000000d2 00000010 00401e0c b168686d 
    
    FIR:000000d1 00000010 00401ffc 4cd65360 
    
    SYS:000000df          0040192c 00000158 
    
    ST:00000000
    
    J 0x10000
    
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x411fa0, size:122976
    [Flash]id:0xeb6015
    sctrl_sta_ps_init
    cset:0 0 0 0
    [01-01 18:12:15 TUYA Info][lr:0x9fc21] mqc app init …
    [01-01 18:12:15 TUYA Info][lr:0xb2e6b] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
    [01-01 18:12:15 TUYA Info][lr:0xb2e6b] thread_create name:cmmod,stackDepth:4096,totalstackDepth:8192,priority:4
    [01-01 18:12:15 TUYA Debug][lr:0x9fbcf] mq_pro:5 cnt:1
    [01-01 18:12:15 TUYA Debug][lr:0x9fbcf] mq_pro:31 cnt:2
    [01-01 18:12:15 TUYA Debug][lr:0xb2cf7] Thread:sys_timer Exec Start. Set to Running Stat
    [01-01 18:12:15 TUYA Debug][lr:0xb16f5] read m:0 f:0 l:0
    [01-01 18:12:15 TUYA Debug][lr:0xa75e3] svc online log init success
    [01-01 18:12:15 TUYA Info][lr:0xb2e6b] thread_create name:wk_th-0,stackDepth:5120,totalstackDepth:13312,priority:3
    [01-01 18:12:15 TUYA Err][lr:0xb929d] wd_protected_read fails gw_bi -1
    [01-01 18:12:15 TUYA Debug][lr:0xb955f] gw base read finish:-1
    [01-01 18:12:15 TUYA Debug][lr:0xa2a75] ty bt cmmod regist ok:1
    [01-01 18:12:15 TUYA Debug][lr:0xa2e8d] upd adv para, send conn_req beacon.
    [PLATFORM DEBUG]!!!!!!!!!!tuya_os_adapt_bt_port_init
    ble mac:1c-90-ff-68-24-9f
    [01-01 18:12:15 TUYA No
    xvr_reg_init
    h4tl_initice][lr:0xa3293] ble st-1 ok
    hci_init ok
    !!dk re_inited
    [01-01 18!!!!init_type=0
    rwble_h:12:15 TUYA Notice][lr:0l_init ok
    rwble_init oxa2b5f] ty bt sdk init k
    rwip_driver_init ok
    finish
    [01-01 18:12:15
    [ble_appm_send_gapm_re TUYA Debug][lr:0x6266bset_cmd]
    tx_pwr_idx:0
    ] < TUYA IOT SDK V:2.3.1
    enter normal mode
    !!!!!!init_type=1
    llm_init:312
     BS:40.00_PT:2.[gapm_cmp_evt_handler] co2_LAN:3.3_CAD:1.0.3_CD:nidx:0,operation:0x1,st1.0.0 >
    < BUILD AT:202atus:0x0
    cmd->addr.addr1_09_14_13_24_21 BY emb[5] :0
    !!!!!!init_tyed FOR ty_iot_sdk AT bk72pe=2
    [gapm_cmp_evt_hand31n >
    IOT DEFS < WIFI_ler] conidx:0,operationGW:1 DEBUG:1 KV_FILE:0 :0x3,status:0x0
    gapm_cmSHUTDOWN_MODE:0 LITTLp_evt:GAPM_SET_DEV_CONFIGE_END:1 TLS_MODE:2 ENAB
    gapm_cmp_evt:wait GAPLE_LOCAL_LINKAGE:0 ENABM_GEN_RAND_NB
    LE_CLOUD[gapm_cmp_evt_handler] _OPERATION:0 ENABLE_SUBconidx:0,operation:0x1a,DEVICE:0 ENABLE_ENGINEEstatus:0x0
    gapm_cmp_evR_TO_NORMAL:0 OPERATINGt:GAPM_GEN_RAND_NB
    _SY[gapm_cmp_evt_handler] STEM:2 ENABLE_SYS_RPC:0conidx:0,operation:0x1a, TY_SECURITY_CHIP:0 RELstatus:0x0
    gapm_cmp_evIABLE_TRANSFER:RELIABLEt:GAPM_GEN_RAND_NB
    [ga_TRANSFER ENABLE_LAN_ENpm_cmp_evt_handler] conCRYPTION:1 ENABLE_LAN_Lidx:0,operation:0x28,staINKAGE:0 ENABLE_LAN_LINtus:0x0
    gapm_cmp_evt:BKAGE_MASTER:0 ENABLE_LALE_STACK_OK
    [PLATFORM N_DEV:0 ENABLE_LAN_DEV_NOTICE]STACK INIT OK
    bMASTER:0 >
    
    [01-01 18le create new db
    ble_en:12:15 TUYA Debug][lr:0v->start_hdl = 0x10
    [Px62675] bk7231n_common_LATFORM NOTICE]CREATE Duser_config_ty:2.0.2
    B SUCCESS
    [PLATFORM DEBUG]!!!!!!!!!!tuya_os_adapt_bt_reset_adv
    [01-01 18:12:15 TUYA Notice][lr:0xa2fa5] ble adv upd!
    [PLATFORM NOTICE]!!!!!!!!!!tuya_before_netcfg_cb
    [appm_create_advertising]
    [ble_appm_cr[01-01 18:12:15 TUYA Noeate_advertising]
    adv_stice][lr:0xc42b7] key_atate:1
    [gapm_cmp_evt_hddr: 0x1ee000   block_sandler] conidx:0,operatz 4096
    ion:0x1b,status:0x0
    adv_actv_idx:0,tx_pwr:0
    [PLATFORM DEBUG]UNKNOW EVENT:17
    [gapm_cmp_evt_handler] conidx:0,operation:0xa0,statu[01-01 18:12:15 TUYA Nos:0x0
    [appm_adv_fsm_netice][lr:0xc4387] get kxt] cur adv_state:1
    adey:
    0xe3 0x6d 0xf6 0x1v_state:2
    [ble_appm_se1 0x0 0x1d 0x27 0x8 0t_adv_data]set data:02:01:xc1 0x1a 0x2b 0x71 0xc306:03:02:01:a2:04:16:01 0x78 0xed 0x4e 
    :a2:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    [appm_set_adv_data]ret:0
    end adv_state:2
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [gapm_cmp_evt_handler] conidx:0,operation:0xa9,status:0x0
    [appm_adv_fsm_next] cur adv_state:2
    [appm_set_scan_rsp_data]
    adv_state:3
    [ble_appm_set_scan_rsp_data]
    end adv_state:3
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [gapm_cmp_evt_handler] conidx:0,operation:0xaa,status:0x0
    [appm_adv_fsm_next] cur adv_state:3
    [appm_start_advertising_cmd]
    adv_state:6
    [ble_appm_start_advertising]
    end adv_state:6
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [gapm_cmp_evt_handler] conidx:0,operation:0xa4,status:0x0
    [appm_adv_fsm_next] cur adv_state:6
    adv_state:7
    end adv_state:7
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [01-01 18:12:15 TUYA Notice][lr:0xa17f7] have actived over 15 min, not enter mf_init
    [01-01 18:12:15 TUYA Notice][lr:0x62179] mf_init succ
    bandgap_calm_in_efuse=0x24
    [load]bandgap_calm=0x24->0x24,vddig=4->4
    [FUNC]rwnxl_init
    [bk]tx_txdesc_flush
    [FUNC]intc_init
    [FUNC]calibration_main
    gpio_level=0,txpwr_state=15
    user define rfcali mode:1 
    get rfcali_mode:1
    [01-01 18:12:15 TUYA Notice][lr:0x5e21b] file_download_init OK
    [01-01 18:12:15 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    [01-01 18:12:15 TUYA Notice][lr:0x5a70b] get_dev_info ok memrory left:72432
    [01-01 18:12:15 TUYA Notice][lr:0x58781] cfg_mode:0.first_mode:3.firmware_key:key83r5jq9qqeaxt.product_key:jfbqetkrs9g1a7ti
    
    [01-01 18:12:15 TUYA Notice][lr:0xb2599] wifi mcu init. pid:jfbqetkrs9g1a7ti firmwarekey:key83r5jq9qqeaxt v1:2.0.2 v2:1.0.0
    [PLATFORM NOTICE]bk_rst:0 tuya_rst:0
    [01-01 18:12:15 TUYA Notice][lr:0xb871f] Last reset reason: 0
    [01-01 18:12:15 TUYA Notice][lr:0xb888f] serial_no:1c90ff68249e
    rw_ieee80211_set_country code:
    code: CN
    channel: 1 - 13
    mode: MANUAL
    bk_wlan cca closed
    [01-01 18:12:15 TUYA Notice][lr:0xb88c7] gw_cntl.gw_wsm.stat:2
    [01-01 18:12:15 TUYA Notice][lr:0xb8955] gw_cntl.gw_wsm.nc_tp:9
    [01-01 18:12:15 TUYA Notice][lr:0xb895d] gw_cntl.gw_wsm.md:0
    [01-01 18:12:15 TUYA Notice][lr:0xb8b4b] gw_cntl.gw_if.abi:0 input:0
    [01-01 18:12:15 TUYA Notice][lr:0xb8b57] gw_cntl.gw_if.product_key:jfbqetkrs9g1a7ti, input:jfbqetkrs9g1a7ti
    [01-01 18:12:15 TUYA Notice][lr:0xb8b63] gw_cntl.gw_if.tp:9, input:9
    [01-01 18:12:15 TUYA Notice][lr:0xb8b73] gw_cntl.gw_if.firmware_key:key83r5jq9qqeaxt, input:key83r5jq9qqeaxt
    [01-01 18:12:15 TUYA Notice][lr:0xa2bb3] ty bt upd product:jfbqetkrs9g1a7ti 0
    [01-01 18:12:15 TUYA Notice][lr:0xa312b] upd product_id type:0 jfbqetkrs9g1a7ti a8e79076673f1d8e Azm0RYL7kxGPA5pRAYRSwB87os5X4vv9
    [01-01 18:12:15 TUYA Err][lr:0x624e9] data is invalid :2 ,0
    calibration_main over
    flash txpwr table:0xf
    dif g and n20 ID in flash:4
    dif g and n40 ID in flash:4
    read txpwr tab from flash success
    temp in flash is:342
    xtal in flash is:45
    xtal_cali:45
    —init_xtal = 45
    [FUNC]ps_init
    [FUNC]func_init_extended OVER!!!
    
    start_type:0
    Version:
    Initializing TCP/IP stack
    tcp_port:62642
    app_init finished
    [01-01 18:12:15 TUYA Notice][lr:0xa2bdf] ty bt upd localkey
    [01-01 18:12:15 TUYA Notice][lr:0xa3165] upd login key len:6
    [01-01 18:12:15 TUYA Notice][lr:0xc5b6f] [0]loop timer load |weekday 0x7f| 14:50| {„7“:true} | last_time:1678200610
    [01-01 18:12:16 TUYA Notice][lr:0xc5b6f] [1]loop timer load |weekday 0x7f| 15:25| {„4“:false} | last_time:1678202713
    [01-01 18:12:16 TUYA Notice][lr:0xc5b6f] [2]loop timer load |weekday 0x7f| 9:47| {„2“:false} | last_time:1679564831
    [01-01 18:12:16 TUYA Notice][lr:0xc5b6f] [3]loop timer load |weekday 0x7f| 9:48| {„2“:true} | last_time:1679564890
    [PLATFORM DEBUG]!!!!!!!!!!tuya_os_adapt_bt_reset_adv
    adv_state:12
    !!!!!!!!!!ble_appm_update_adv_data updata adv data
    [gapm_cmp_evt_handler] conidx:0,operation:0xa9,status:0x0
    [appm_adv_fsm_next] cur adv_state:c
    adv_state:13
    [ble_appm_set_scan_rsp_data]
    end adv_state:d
    [PLATFORM DEBUG]UNKNOW EVENT:19
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [gapm_cmp_evt_handler] conidx:0,operation:0xaa,status:0x0
    [appm_adv_fsm_next] cur adv_state:d
    adv_state:7
    end adv_state:7
    [PLATFORM DEBUG]UNKNOW EVENT:20
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [01-01 01:00:01 TUYA Notice][lr:0xa2fa5] ble adv upd!
    fast_connect
    supplicant_main_exiting
    supplicant_exit_done
    [sa_sta]MM_RESET_REQ
    [bk]tx_txdesc_flush
    [sa_sta]ME_CONFIG_REQ
    [sa_sta]ME_CHAN_CONFIG_REQ
    [sa_sta]MM_START_REQ
    bssid 3c-37-12-de-9e-62
    security2cipher 2 2 16 16 security=5
    cipher2security 2 2 16 16
    hapd_intf_add_vif,type:2, s:0, id:0
    wpa_dInit
    wpa_supplicant_req_scan
    Setting scan[retry16] request: 0.100000 sec
    MANUAL_SCAN_REQ
    enter low level!
    mac 1c:90:ff:68:24:9e
    leave low level!
    net_wlan_add_netif done!, vif_idx:0
    wpa_supplicant_scan
    Cancelling scan request
    wpa_driver_associate
    ssid:1, 1
    ht in scan
    scan_start_req_handler
    found scan rst rssi -65 < -50
    dis ht_support
    me_set_ps_disable:840 0 0 1 0 3
    sm_auth_send:1
    sm_disassoc_handler
    sm_disassoc_handler reason=8,vif=0
    [01-01 01:00:01 TUYA Notice][lr:0x58d6d] wifi status is :5
    temperature_type=2
    temp_code:33 - adc_code:325 - adc_trend:[13]:342->[15]:322
    SM_DISCONNECTING status=1
    sm_disassoc_handler
    sm_disassoc_handler reason=8,vif=0
    sm_disassoc_handler
    sm_disassoc_handler reason=8,vif=0
    ————SM_CONNECT_IND_fail
    deassoc_evt_cb
    wpa_driver_deassoc_cb
    wpa_supplicant_req_scan
    Setting scan[retry15] request: 0.100000 sec
    wpa_supplicant_req_scan
    Ignore new scan request for 10.000000 sec since an earlier request is scheduled to trigger sooner
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    recover ht_support:1 
    ht in scan
    scan_start_req_handler
    [01-01 01:00:03 TUYA Notice][lr:0x58069] send heat beat ,get heap size 44312
    [01-01 01:00:03 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    wpa_driver_scan_cb
    wpa_get_scan_rst:2
    wpa_supplicant_connect
    Cancelling scan request
    wpa_driver_associate
    ssid:1, 1
    found scan rst rssi -66 < -50
    dis ht_support
    no ht in scan
    scan_start_req_handler
    me_set_ps_disable:840 0 0 1 0 3
    sm_auth_send:1
    sm_auth_handler
    ht NOT in assoc req
    sm_assoc_rsp_handler
    rc_init: station_id=0 format_mod=0 pre_type=0 short_gi=0 max_bw=0
    rc_init: nss_max=0 mcs_max=255 r_idx_min=0 r_idx_max=11 no_samples=10
    ————SM_CONNECT_IND_ok
    wpa_driver_assoc_cb
    Cancelling scan request
    __l2_packet_send: ret 0
    __l2_packet_send: ret 0
    hapd_intf_add_key CCMP
    add sta_mgmt_get_sta
    sta:0, vif:0, key:0
    sta_mgmt_add_key
    add hw key idx:24
    hapd_intf_add_key CCMP
    add is_broadcast_ether_addr
    sta:255, vif:0, key:2
    add hw key idx:2
    ctrl_port_hdl:1
    me_set_ps_disable:840 0 0 0 0 3
    sta_ip_start
    
    configuring interface mlan (with DHCP client)dhcp_check_status_init_timer:20000
    ip_addr: 7b01a8c0
    same_bssid_info
    first enable sleep 
    power_save_me_ps_first_set_state:576 
    me_send_ps_req 2 0 0
    ps_keep_timer init
    set_ps_mode_cfm:963 1 4 0 3 255
    enter 0 ps,p:1 m:1 int:100 l:100!
    power_save_dtim_ps_init
    
    new ie: 0 : 31 
    new ie: 1 : 82 84 8b 96 8c 12 98 24 
    new ie: 3 : b 
    new ie: 30 : 1 0 0 f ac 4 1 0 0 f ac 4 1 0 0 f ac 2 c 0 
    new ie: 2d : ad 9 3 ff ff ff ff 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 
    
    [01-01 01:00:05 TUYA Notice][lr:0xac93b] mqtt get serve ip success
     sleep_first 0
     dtim period:1 multi:1
    [01-01 01:00:05 TUYA Notice][lr:0xb00ef] ret = 0
    [01-01 01:00:05 TUYA Notice][lr:0xac93b] mqtt create success, begin to connect
    [01-01 01:00:05 TUYA Err][lr:0xaca79] ret:1.
    [01-01 01:00:05 TUYA Notice][lr:0xaca09] mqtt connect success. begin to subscribe:smart/device/in/bf72be7fc9eb7783edhmbe
    [01-01 01:00:05 TUYA Err][lr:0xaca79] ret:1.
    [01-01 01:00:05 TUYA Notice][lr:0x58d6d] wifi status is :7
    01 01 00 01 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    02 01 00 01 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    03 01 00 01 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    04 01 00 01 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    07 01 00 01 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    26 01 00 01 00 [01-01 01:00:06 TUYA Err][lr:0x592fb] no find dp_num
    09 02 00 04 00 00 00 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0A 02 00 04 00 00 00 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0B 02 00 04 00 00 00 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0C 02 00 04 00 00 00 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0F 02 00 04 00 00 00 00 [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    [appm_stop_advertising]
    adv_state:8
    [ble_appm_stop_advertising]
    [01-01 01:00:06 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [01-01 01:00:06 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connec[PLAt:4
    TFORM DEBUG]UNKNOW EVENT:18
    [gapm_cmp_evt_handler] conidx:0,operation:0xa5,status:0x0
    [appm_adv_fsm_next] cur adv_state:8
    [appm_delete_advertising]
    adv_state:10
    end adv_state:a
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [gapm_cmp_evt_handler] conidx:0,operation:0xa7,status:0x0
    [appm_adv_fsm_next] cur adv_state:a
    adv_state:0
    end adv_state:0
    [PLATFORM DEBUG]UNKNOW EVENT:16
    [01-01 01:00:10 TUYA Err][lr:0xaa4ad] uf_open netcfg_log err 8
    [PLATFORM NOTICE]bk_rst:0 tuya_rst:0
    [01-01 01:00:11 TUYA Notice][lr:0xb00ef] ret = 0
    [03-23 11:16:12 TUYA Notice][lr:0xc5257] Update Timer from cloud
    [03-23 11:16:13 TUYA Err][lr:0xa8693] result null
    [03-23 11:16:14 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37704
    [03-23 11:16:14 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    temp_code:31 - adc_code:329 - adc_trend:[15]:322->[14]:332
    [03-23 11:16:30 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37704
    [03-23 11:16:30 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    [
    [03-23 10:46:23 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    07 01 00 01 01 [03-23 10:46:23 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:46:23 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0F 02 00 04 00 00 00 00 [03-23 10:46:23 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:46:23 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    [03-23 10:46:28 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37576
    [03-23 10:46:28 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    [03-23 10:46:43 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37576
    [03-23 10:46:43 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    gen:2000000
    rx_payload_dma_dead
    [03-23 10:46:51 TUYA Notice][lr:0xc4b93] Recv Timer Mqtt 98
    [03-23 10:46:58 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37576
    [03-23 10:46:58 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    [03-23 10:47:10 TUYA Notice][lr:0xc5257] Update Timer from cloud
    [03-23 10:47:10 TUYA Notice][lr:0xc4b93] Recv Timer Mqtt 100
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [0]loop timer save |weekday 0x7f| 14:50| {„7“:true} | last_time:1678200610
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [1]loop timer save |weekday 0x7f| 15:25| {„1“:false} | last_time:1678202713
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [2]loop timer save |weekday 0x7f| 15:24| {„1“:false} | last_time:0
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [3]loop timer save |weekday 0x7f| 15:25| {„4“:false} | last_time:1678202713
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [4]loop timer save |weekday 0x7f| 9:47| {„2“:false} | last_time:0
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [5]loop timer save |weekday 0x7f| 9:48| {„2“:true} | last_time:0
    [03-23 10:47:11 TUYA Notice][lr:0xc587f] loop timer exe |weekday 0x7f| 9:47| {„2“:false} | last_time:1679564831
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [0]loop timer save |weekday 0x7f| 14:50| {„7“:true} | last_time:1678200610
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [1]loop timer save |weekday 0x7f| 15:25| {„1“:false} | last_time:1678202713
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [2]loop timer save |weekday 0x7f| 15:24| {„1“:false} | last_time:0
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [3]loop timer save |weekday 0x7f| 15:25| {„4“:false} | last_time:1678202713
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [4]loop timer save |weekday 0x7f| 9:47| {„2“:false} | last_time:1679564831
    [03-23 10:47:11 TUYA Notice][lr:0xc5089] [5]loop timer save |weekday 0x7f| 9:48| {„2“:true} | last_time:0
    02 01 00 01 00 [03-23 10:47:11 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:11 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0A 02 00 04 00 00 00 00 [03-23 10:47:11 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:11 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    [03-23 10:47:12 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37200
    [03-23 10:47:12 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    [03-23 10:47:28 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37200
    [03-23 10:47:28 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    [03-23 10:47:43 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37200
    [03-23 10:47:43 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    gen:2000000
    rx_payload_dma_dead
    gen:100
    rx_fifo_over_flow count=0
    
    07 01 00 01 00 [03-23 10:47:56 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:56 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    26 01 00 01 00 [03-23 10:47:56 TUYA Err][lr:0x592fb] no find dp_num
    09 02 00 04 00 00 00 00 [03-23 10:47:56 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:56 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0A 02 00 04 00 00 00 00 [03-23 10:47:56 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:56 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0B 02 00 04 00 00 00 00 [03-23 10:47:56 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:56 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0C 02 00 04 00 00 00 00 [03-23 10:47:56 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:56 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    0F 02 00 04 00 00 00 00 [03-23 10:47:56 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:56 TUYA Notice][lr:0xa3509] ble_sdk_send skip, no connect:4
    [03-23 10:47:58 TUYA Notice][lr:0x58069] send heat beat ,get heap size 37200
    [03-23 10:47:58 TUYA Notice][lr:0x5a85b] recv jump_pack ok.
    01 01 00 01 01 [03-23 10:47:58 TUYA Notice][lr:0xa34dd] ble get conn stat:4
    [03-23 10:47:58 TUYA Notice][lr:0xa3509]&