Elektroda.com
Elektroda.com
X

[BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

p.kaczmarek2 89283 1198
This content has been translated flag-pl » flag-en View the original version here.
  • p.kaczmarek2
    Moderator Smart Home
    Hello @omelchuk890 , Happy Christmas.
    Our project is using a user-driven development, so basically you request a feature and we're adding it.
    I can look into DHT22 or anything if you want.
    I must check if I have such a part in my drawers.
    I am certain that I added TC74 support in the past, but DHT22 is more popular and provides more info.
  • omelchuk890
    Level 10  
    @p.kaczmarek2
    Thank you for your responsiveness.
    The development model became clear to me.
    It is at this moment that I have the need to attach an 18B20 sensor module to maintain the temperature of a ceramic heater for poultry. If everything works out, maybe I'll use it on a storage water heater.
  • p.kaczmarek2
    Moderator Smart Home
    Oh wait... 18B20... I have actually looked into the DHTs:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    I think I got it working now (just ported the library):
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    Dodano po 2 [godziny] 27 [minuty]:

    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
  • omelchuk890
    Level 10  
    p.kaczmarek2 wrote:
    I think I got it working now (just ported the library):

    it's just some kind of holiday!!!
    waiting for 18B20
  • p.kaczmarek2
    Moderator Smart Home
    Do you have any DHTs at hand to test?

    When setting a DHT pin role, first textfield is an index of channel to store t temperature, and second one is for humidity.
  • ferguson88
    Level 11  
    ferguson88 wrote:
    Thank you for your huge contribution to the development of the software and its continuous development.
    I have three power metering sockets based on W600 and BL0937 purchased three years ago.
    So far, I've used them with a replaced module for esp8266.
    Recently I found the OpenBK7231T project page and decided to go back to the W600 TW-02 V2.0 module.
    I managed to replace the firmware and connect to the wifi network.
    OTA updates and integration with Home Assistant work without problems.
    I configured the pins and the button and relay work, but there are no readings from BL0937.
    I tried to load the BL0937 driver via Command Tool but I get the error: Error:CMD:cmd startDriver NOT found (args BL0937)
    What can I do to enable BL0937 support?
    Also, remembering the last state of the butcher doesn't work.
    If I enter 1, it is on after startup, and if I enter -1, it is always off.
    Is it possible to configure it so that the relay does not turn off for a second after restarting (esp8266 does not have this effect).
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    Thank you for adding BL0937 support and remembering the last state of the relay to the W600.
    The calibration went smoothly and the values were saved.
    I can restore the original TW-02 modules in the remaining slots, and use the recovered ESP in other projects.
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
  • p.kaczmarek2
    Moderator Smart Home
    @ferguson6600 nice, so BL0937 works for you now? That's great, but thanks should go to @iprak , he did the missing HAL calls for that platform.
  • p.kaczmarek2
    Moderator Smart Home
    That's a great idea!
    I exposed the ping watchdog time as a change event.

    Setup and test:
    Settings - the "reconnect wifi" timer is set to a large value so nothing happens too early:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    Script:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    
    alias doRelayClick backlog setChannel 1 1; addRepeatingEvent 2 1 setChannel 1 0; ClearNoPingTime
    addChangeHandler NoPingTime > 40 doRelayClick 
    

    After boot, device waits a bit for things to settle in..
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    It pings the device:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    After disabling this device:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    At this point, relay clicks on and comes back to 0:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    You need latest update for that!

    IMPORTANT
    New flashing tool is available! https://github.com/openshwprojects/BK7231GUIFlashTool
    For all beginners, simple Windows GUI application that requires no knowledge to flash the devices and can even automatically download latest binaries!
    https://github.com/openshwprojects/BK7231GUIFlashTool
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
  • 7825995
    Level 4  
    Hi all!
    I successfully flashed the WB3S with the OpenBK7231T_UA_1.15.279.bin file in this switch:
    https://www.aliexpress.com/item/1005003696236608.html
    Connected switch to home WiFi and MQTT broker.
    Unfortunately, this switch is not in the list of supported devices.
    Here is the original Tuya firmware
    I want to add this switch to HA using MQTT
    How can I set it up?
    What should I do next?
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant[/url][/center]
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
  • p.kaczmarek2
    Moderator Smart Home
    Hello, I can guide you step by step with the configuration, but I need more information.
    The second picture of the board is not attached correctly and I can't zoom it to see what's there.
    I also need the picture of the second side of the board. Photos must be high quality, so I can figure out what's going on there.
    We need to determine:
    - is this a TuyaMCU device or not?
    - what kind of energy metering chip is there?
    - where is relay connect, where are buttons connected, etc (NOTE: in case of TuyaMCU device, that is not needed, because then relay etc etc will be connected to TuyaMCU and not to the WiFi module)
    PS: When posting a device link, also please post device name and screenshot from offer, because this link might expire soon. So, your device model seem to be YCB9ZF-100W CNC 2P :
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
  • 7825995
    Level 4  
    I didn't think the link might stop working.
    You are right, model YCB9ZF-100W CNC 2P
    I tried using this switch through Tyua,
    When the switch is turned on/off, the color of the LED changes.
    The Tuya app showed the voltage in volts.
    It was possible to program at what voltage the switch would turn off.
    Program the on and off according to the schedule.
    There were no power values.
    I think the protection works in the same way as in a conventional circuit breaker, from an electromagnet.
    The small motor turned on the switch.
    Shutdown occurred as if from a spring


    Unfortunately, all microcircuits are varnished. I see that you can read something on them, but I can't read it.
    I need to remove the varnish, but I don’t know how to do it.
    Here is a photo: [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
  • p.kaczmarek2
    Moderator Smart Home
    This is most likely a TuyaMCU device. I usually suggest people to do not flash TuyaMCU devices too early and do a packet capture first, but maybe we will get away without doing a capture.

    Do the following steps:
    1. Go to Open Web Application, open LittleFS tab, create file called autoexec.bat and add there command:
    
    startDriver TuyaMCU
    

    2. Open logs tab in Web app
    3. Reboot the device
    4. See if any of TuyaMCU messages comes up in logs and paste them here

    If you don't get any TuyaMCU messages, edit autoexec.bat like that:
    
    startDriver TuyaMCU
    tuyaMcu_setBaudRate 115200 
    


    Please refer to this topic to see how support process for that kind of device looks like:
    https://www.elektroda.com/rtvforum/viewtopic.php?p=20251805#20251805
  • 7825995
    Level 4  
    thanks for the answer! Unfortunately, I am not at home now (I went with my family to visit relatives). In the evening I will definitely do it and write here))
  • p.kaczmarek2
    Moderator Smart Home
    Oh ok, I look forward to reading your log files. Btw, wasn't similar device posted by @TurkeyMan somewhere? Maybe we could use his information to support your one.

    @TurkeyMan , how is the UART capture process going?
  • ferbulous
    Level 15  
    @p.kaczmarek2 thanks for adding this!
    so i'll just need to enter the homeassistant ip address in the ping watchdog option
  • 7825995
    Level 4  
    p.kaczmarek2 wrote:
    This is most likely a TuyaMCU device. I usually suggest people to do not flash TuyaMCU devices too early and do a packet capture first, but maybe we will get away without doing a capture.

    Do the following steps:
    1. Go to Open Web Application, open LittleFS tab, create file called autoexec.bat and add there command:
    
    startDriver TuyaMCU
    


    i did it
    Two lines appeared in the log (I removed messages from MQTT from the log so as not to make the post very large:
    
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) C8 27 72 C1 08 10 90 16 A0 28 85 10 FF 
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 23 9F 2A C1 80 82 48 0B 04 A1 10 24 FD 
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 90 2D 54 88 60 10 90 16 A0 2A 85 10 FF 
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 98 24 52 89 41 10 90 16 A0 2E 85 10 FF 
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 10 8B 51 10 50 10 90 16 30 79 C1 08 FF 
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 10 9B 31 82 D3 00 90 36 88 C6 02 07 FC 
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 10 53 31 90 18 51 90 36 88 C6 02 4F F9 
    Info:TuyaMCU:Consumed 13 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 48 AB 14 89 50 10 90 16 A0 91 04 E0 FC 
    


    p.kaczmarek2 wrote:
    This is most likely a TuyaMCU device. I usually suggest people to do not flash TuyaMCU devices too early and do a packet capture first, but maybe we will get away without doing a capture.

    If it's easier, I can revert the Tuya firmware (I didn't remove the soldered wires).
    Or do you need a second USB->TTL adapter?
    Need to connect to RX2/TX2?
    Interestingly, as a second USB-> TTL, you can use USB-> COM?
    p.kaczmarek2 wrote:
    Please refer to this topic to see how support process for that kind of device looks like:
    https://www.elektroda.com/rtvforum/viewtopic.php?p=20251805#20251805

    Thanks for the tip! I read this while waiting for my wife from relatives, but I understood little ((((. I will definitely re-read this one or two times)))

    P.S. It scares me that most likely in this switch, there is no control over the actual position of the switch. If you turn it off by hand, then the application will most likely show it is on. I forgot to check this while using the Tyua firmware. On the printed circuit board, I did not find the control button.
    It would be nice to somehow organize this control :-)

    P.S.S On the Tasmota website, I found a similar device: https://templates.blakadder.com/hoch_ZJSB9-80Z.html
    If I try the same GPIO settings and it doesn't work for my device, can I brick it?
  • p.kaczmarek2
    Moderator Smart Home
    Setting pin roles to relay, led, button, won't break it most likely, but it seems that linked version is an older one, that didn't have TuyaMCU yet.

    It seems that you removed too much from that log.
    It also seems the device is sending messages that seem not supported yet.

    I'd rather expect something like that in the logs:
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 01 02 00 04 00 00 00 04 1C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 1, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 4
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 13 06 00 00 0F 00 00 00 0C 00 00 00 10 01 C3 00 00 77 09 1C AD 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 26 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 6, dataType 0-DP_TYPE_RAW and 15 data bytes
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 09 05 00 01 00 1D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 9, dataType 5-DP_TYPE_BITMAP and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 10 01 00 01 01 21 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 16, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    


    or maybe you really need to include the baud rate change.... maybe it's receiving random garbage now...
  • 7825995
    Level 4  
    p.kaczmarek2 wrote:
    or maybe you really need to include the baud rate change.... maybe it's receiving random garbage now...

    You're right!
    When changing the speed, other messages appeared:
    
    Info:MAIN:Time 161, idle 251357/s, free 87520, 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 162, idle 248578/s, free 87520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    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 163, idle 247766/s, free 87520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 164, idle 272202/s, free 87520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 3F 75 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2367
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 165, idle 257147/s, free 87520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
    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 166, idle 182531/s, free 87520, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38

    but I don't understand well how to map these dpId 1 to what it means((
    maybe it's easier to return the tuya firmware and play around with the application? and then compare the events in the log with the actions in the application?
  • p.kaczmarek2
    Moderator Smart Home
    This log is perfect!

    Now, can you please do following steps?
    1. connect 60W bulb load, also measure current and voltage with other meter and tell me results here (if you have another meter)
    2. with 60W bulb connected, copy packets from log again and post them here
    3. Repeat steps 1 and 2 but with, for example, 10W bulb load or a 120W bulb load (two bulbs?)
    4. Again, clear logs, and if that device has some button on the case, try toggling button several times, and copy the logs again.

    Basically, I need logs from different power loads so I can compare results and figure out meaning. I also need separate logs from operations like a button change ,etc.

    Just please, do not confuse logs, and keep logs from each load separate...

    PS: If you don't have a way to measure voltage in your sockets, at least tell me , are you 230V zone or 120V?
  • 7825995
    Level 4  
    p.kaczmarek2 wrote:
    This log is perfect!
    Now, can you please do following steps?
    1. connect 60W bulb load, also measure current and voltage with other meter and tell me results here (if you have another meter)
    2. with 60W bulb connected, copy packets from log again and post them here
    3. Repeat steps 1 and 2 but with, for example, 10W bulb load or a 120W bulb load (two bulbs?)
    4. Again, clear logs, and if that device has some button on the case, try toggling button several times, and copy the logs again.
    Basically, I need logs from different power loads so I can compare results and figure out meaning. I also need separate logs from operations like a button change ,etc.
    Just please, do not confuse logs, and keep logs from each load separate...
    PS: If you don't have a way to measure voltage in your sockets, at least tell me , are you 230V zone or 120V?

    This is a great idea, though I'm not sure if it will help. There was no load indication in the Tuya application (I myself looked for it there). There were only voltage readings in volts.
    At home, I could not find a single portable lamp (my beloved wife made "beauty" again and everything not used was either thrown away or sent to my mother)))). I can connect an iron (power 2400w) and show the logs))
    Of the meters, I have a tester, I can measure the mains voltage and show the logs, maybe the tester's data will match one of the TuyaMCU messages.
    My electricity network is 220 volts.
    For the sake of sport, tomorrow I can buy a simple lamp and a few light bulbs of different wattage,
    in the meantime - the current voltage (although it constantly jumps)
    
    Info:MAIN:Time 3787, idle 248883/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3788, idle 251776/s, free 87520, MQTT 1(4), 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 3790, idle 185614/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-78,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 3794, idle 257529/s, free 87520, MQTT 1(4), 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 3798, idle 266854/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 30 66 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2352
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 3799, idle 247793/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3800, idle 180135/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 3801, idle 250785/s, free 87304, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 3803, idle 253958/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3804, idle 251294/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3807, idle 255046/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3808, idle 249619/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3809, idle 253660/s, free 87560, MQTT 1(4), 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 3814, idle 255262/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 3F 75 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2367
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 00 EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 235 and got checksum 125
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 3820, idle 255877/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 3822, idle 258274/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    


    this is with the iron on:
    
    Info:MAIN:Time 4312, idle 252677/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4315, idle 253147/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4324, idle 254920/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    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 4328, idle 259040/s, free 75824, MQTT 1(4), 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 4330, idle 197008/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 4332, idle 248705/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4335, idle 249868/s, free 75608, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 4/38
    Info:MAIN:Time 4339, idle 162554/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2239
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 00 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 125 and got checksum 124
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 4340, idle 257192/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-58,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 4342, idle 252891/s, free 75824, MQTT 1(4), 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:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0E 65 03 00 0A 6E 6F 72 6D 61 6C 20 52 75 6E 67 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 21 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 10 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2239
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 05 65 04 00 01 08 80 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 128 and got checksum 121
    Info:MAIN:Time 4346, idle 256737/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4348, idle 276263/s, free 75824, MQTT 1(4), 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:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 26 5C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2342
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 00 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 124 and got checksum 123
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 4350, idle 186526/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 4352, idle 256098/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4353, idle 249612/s, free 75824, MQTT 1(4), 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 4354, idle 251588/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    

    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    P.S. The MCU somehow determines the actual position of the switch. See photo. When off, the indicator lights up blue, when turned on, red. I wonder how he does it? When there is no load, the color of the indicator also changes.
  • p.kaczmarek2
    Moderator Smart Home
    i didn't analyze the packets yet, but I will just note, that for the voltage guessing, it might also help to do a test with autotransformer, if you happen to have one. Or with 230V to 120V transformer because this device most likely runs well on 120V and we could compare packets data then and figure where is voltage data stored.

    Thank you for your contribution so far, that data surely will be useful. I will try to look into the packet contents tomorrow.
  • rowan1
    Level 1  
    ilengyel wrote:
    Hello, Thanks for the great project. I have successfully flashed a WB2L based downlight

    CasaLife Smart LED Downlight

    These LED downlights were sold by ALDI Australia in 2 flavours: RGBCW and CW/WW. This one is the Cool/Warm white downlight. Some pictures:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [url=https://obrazki.elektroda.pl/2025252400_1659263344.jpg]


    I have flashed the RGBCCT variant of this light using cloud cutter. Aldi was selling both versions for the same price. The RGBCCT version is almost identical to the CCT only version but also has RGB LEDs and a couple extra header pins from the PCB for them. I have some of the CCT only versions too and can see no difference in white performance between them, so there seems to be no reason at all to buy the CCT only version.

    Also note that flag 3 on the CW/WW version is no longer needed, and flag 8 (colour temp and white brightness controls) should be set for both variants.

    Pins for the RGBCCT version:
    - P6 (PWM0) - PWM - 2 (Blue)
    - P7 (PWM1) - PWM_n - 3 (W Colour Temp) - note inverted warm/cold
    - P8 (PWM2) - PWM - 4 ( W Bright)
    - P24 (PWM4) - PWM - 1 (Green)
    - P26 (PWM5) - PWM - 0 (Red)[/quote]
  • p.kaczmarek2
    Moderator Smart Home
    7825995 wrote:

    My electricity network is 220 volts.
    For the sake of sport, tomorrow I can buy a simple lamp and a few light bulbs of different wattage,
    in the meantime - the current voltage (although it constantly jumps)
    
    Info:MAIN:Time 3787, idle 248883/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3788, idle 251776/s, free 87520, MQTT 1(4), 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 3790, idle 185614/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-78,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 3794, idle 257529/s, free 87520, MQTT 1(4), 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 3798, idle 266854/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 30 66 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2352
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 3799, idle 247793/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3800, idle 180135/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 3801, idle 250785/s, free 87304, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 3803, idle 253958/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3804, idle 251294/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3807, idle 255046/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3808, idle 249619/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3809, idle 253660/s, free 87560, MQTT 1(4), 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 3814, idle 255262/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 3F 75 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2367
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 00 EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 235 and got checksum 125
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 3820, idle 255877/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 3822, idle 258274/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    


    
    
    55 AA 03 00 00 01 01 04 
    55 AA 03 00 00 01 01 04 
    55 AA 03 00 00 01 01 04 
    55 AA 03 07 00 08 16 02 00 04 00 00 09 30 66 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 00 00 01 01 04 
    55 AA 03 07 00 08 16 02 00 04 00 00 09 3F 75 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 00 EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    

    Here is the analysis result:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant





    7825995 wrote:

    this is with the iron on:
    
    Info:MAIN:Time 4312, idle 252677/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4315, idle 253147/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4324, idle 254920/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    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 4328, idle 259040/s, free 75824, MQTT 1(4), 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 4330, idle 197008/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 4332, idle 248705/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4335, idle 249868/s, free 75608, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 4/38
    Info:MAIN:Time 4339, idle 162554/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2239
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 00 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 125 and got checksum 124
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 4340, idle 257192/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-58,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 4342, idle 252891/s, free 75824, MQTT 1(4), 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:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0E 65 03 00 0A 6E 6F 72 6D 61 6C 20 52 75 6E 67 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 21 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 10 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2239
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 05 65 04 00 01 08 80 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 128 and got checksum 121
    Info:MAIN:Time 4346, idle 256737/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4348, idle 276263/s, free 75824, MQTT 1(4), 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:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 26 5C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2342
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 00 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 124 and got checksum 123
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 4350, idle 186526/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 4352, idle 256098/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4353, idle 249612/s, free 75824, MQTT 1(4), 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 4354, idle 251588/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    

    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    
    
    55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C  
    55 AA 03 07 00 05 6A 04 00 00 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 07 00 0E 65 03 00 0A 6E 6F 72 6D 61 6C 20 52 75 6E 67 
    55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 00 00 05 65 04 00 01 08 80 
    55 AA 03 07 00 08 16 02 00 04 00 00 09 26 5C 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 00 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 00 00 01 01 04 
    

    Here is the analysis result:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    ID 22 seems to be Voltage. There are some other variables but they don't seem to change between two tests. I am unable to locate current and power yet.

    Dodano po 5 [sekundy]:

    7825995 wrote:

    My electricity network is 220 volts.
    For the sake of sport, tomorrow I can buy a simple lamp and a few light bulbs of different wattage,
    in the meantime - the current voltage (although it constantly jumps)
    
    Info:MAIN:Time 3787, idle 248883/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3788, idle 251776/s, free 87520, MQTT 1(4), 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 3790, idle 185614/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-78,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 3794, idle 257529/s, free 87520, MQTT 1(4), 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 3798, idle 266854/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 30 66 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2352
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 3799, idle 247793/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3800, idle 180135/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 3801, idle 250785/s, free 87304, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 3803, idle 253958/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3804, idle 251294/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3807, idle 255046/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3808, idle 249619/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3809, idle 253660/s, free 87560, MQTT 1(4), 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 3814, idle 255262/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 3F 75 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2367
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 00 EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 235 and got checksum 125
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 3820, idle 255877/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-62,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 3822, idle 258274/s, free 87520, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 2/38
    


    
    
    55 AA 03 00 00 01 01 04 
    55 AA 03 00 00 01 01 04 
    55 AA 03 00 00 01 01 04 
    55 AA 03 07 00 08 16 02 00 04 00 00 09 30 66 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 00 00 01 01 04 
    55 AA 03 07 00 08 16 02 00 04 00 00 09 3F 75 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 00 EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    

    Here is the analysis result:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant





    7825995 wrote:

    this is with the iron on:
    
    Info:MAIN:Time 4312, idle 252677/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4315, idle 253147/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4324, idle 254920/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    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 4328, idle 259040/s, free 75824, MQTT 1(4), 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 4330, idle 197008/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 4332, idle 248705/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4335, idle 249868/s, free 75608, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 4/38
    Info:MAIN:Time 4339, idle 162554/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2239
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 00 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 125 and got checksum 124
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 4340, idle 257192/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-58,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    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 4342, idle 252891/s, free 75824, MQTT 1(4), 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:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0E 65 03 00 0A 6E 6F 72 6D 61 6C 20 52 75 6E 67 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 21 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 10 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2239
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 05 65 04 00 01 08 80 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 128 and got checksum 121
    Info:MAIN:Time 4346, idle 256737/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4348, idle 276263/s, free 75824, MQTT 1(4), 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:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 09 26 5C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2342
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 00 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 124 and got checksum 123
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:MAIN:Time 4350, idle 186526/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:GEN:dhcp=0 ip=192.168.0.71 gate=192.168.0.1 mask=255.255.255.0 mac=fc:67:1f:52:f1:59 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=my_home_moscow,bssid=38:2c:4a:5b:ec:10 ,channel=2,cipher_type:CCMP
    Info:MAIN:Time 4352, idle 256098/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    Info:MAIN:Time 4353, idle 249612/s, free 75824, MQTT 1(4), 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 4354, idle 251588/s, free 75824, MQTT 1(4), bWifi 1, secondsWithNoPing -1, socks 3/38
    

    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    
    
    55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C  
    55 AA 03 07 00 05 6A 04 00 00 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 07 00 0E 65 03 00 0A 6E 6F 72 6D 61 6C 20 52 75 6E 67 
    55 AA 03 07 00 08 16 02 00 04 00 00 08 BF F4 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 01 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 00 00 05 65 04 00 01 08 80 
    55 AA 03 07 00 08 16 02 00 04 00 00 09 26 5C 
    55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    55 AA 03 07 00 05 69 04 00 00 00 7C 
    55 AA 03 07 00 05 6A 04 00 01 00 7D 
    55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    55 AA 03 07 00 05 6D 01 00 01 01 7E 
    55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    55 AA 03 00 00 01 01 04 
    

    Here is the analysis result:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    ID 22 seems to be Voltage. There are some other variables but they don't seem to change between two tests. I am unable to locate current and power yet.
  • 7825995
    Level 4  
    p.kaczmarek2 wrote:
    ID 22 seems to be Voltage. There are some other variables but they don't seem to change between two tests. I am unable to locate current and power yet.

    I think you are right! ID22 is very similar to voltage. At least one more value must change.
    Turning on/off the Automatic switch (red/blue color of the LED in the photo).
    Here is a video I made before flashing. It is not of very good quality, but it shows what features were on the original TUYA firmware.
    There are no power values, only voltage and a shutdown function when the specified voltage is violated.
    These enable/disables can be configured in HA or NODEred automations

    It seems to me that the main difficulty is to understand what command is sent when the remote turn on / off.
    In the evening, I will try to turn it on / off several times, maybe you will be able to understand what value is changing at the same time



  • 7825995
    Level 4  
    Hello. I turned this switch off/off several times, switching once every 10 seconds.
    no load is connected to the switch. Here is my log. Maybe this will help to find the channel in which the state of the switch is transmitted.
    Spoiler:

    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 65 04 00 01 08 80 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0D 65 03 00 09 68 61 6E 64 20 4F 70 65 6E D4 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 20 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 9 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 C4 F9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2244
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E 00 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 0 and got checksum 235
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 65 04 00 01 06 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    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: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 08 16 02 00 04 00 00 08 C4 F9 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2244
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    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
    ocessIncoming[ver=3]: processing command 7 (State) with 21 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 10 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 C9 FE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2249
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 65 04 00 01 07 7F 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    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: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 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 08 16 02 00 04 00 00 08 E1 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2273
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, dataType 1-DP_TYPE_BOOL and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 00 07 00 08 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 235 and got checksum 232
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 0E 65 03 00 0A 6E 6F 72 6D 61 6C 20 52 75 6E 67 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 21 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 10 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 E1 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2273
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 65 04 00 01 08 80 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    ProcessIncoming[ver=3]: processing command 7 (State) with 20 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 9 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 E1 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2273
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 65 04 00 01 06 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    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: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 08 16 02 00 04 00 00 08 8E C3 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2190
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 00 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming: discarding packet bad expected checksum, expected 126 and got checksum 125
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    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
    ocessIncoming[ver=3]: processing command 7 (State) with 21 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 3-DP_TYPE_STRING and 10 data bytes
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 16 02 00 04 00 00 08 8E C3 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 22, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2190
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 19 02 00 04 00 00 00 E6 16 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 25, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 68 02 00 04 00 00 00 E6 65 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 104, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 230
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 69 04 00 01 00 7C 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 105, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6A 04 00 01 00 7D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 106, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6B 02 00 04 00 00 03 E8 6D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 107, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 1000
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 6C 02 00 04 00 00 00 0A 8D 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 108, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 10
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 6D 01 00 01 01 7E 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 109, 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 66 02 00 04 00 00 00 6E EB 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 102, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 110
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 08 67 02 00 04 00 00 00 50 CE 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 15 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 103, dataType 2-DP_TYPE_VALUE and 4 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 80
    Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 05 65 04 00 01 07 7F 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 12 bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 101, dataType 4-DP_TYPE_ENUM and 1 data bytes
    Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 1 byte: 
    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:TuyaMCU:TUYAMCU received: 55 AA 03 00 00 01 01 04 
    Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 0 (Hearbeat) with 8 bytes

  • ferbulous
    Level 15  
    hi @p.kaczmarek2
    On .317 firmware, trying to disable device group by unchecking and remove the group name but it keeps reverting back



  • p.kaczmarek2
    Moderator Smart Home
    Thank you for reporting, @ferbulous . Thanks to our software ability to run on Windows, the bug was (hopefully) fixed just 15 minutes after your report. That was quick!
    Check the next build when the compilation and release process is done.

    @7825995 I will check in a moment
  • ferbulous
    Level 15  
    @p.kaczmarek2 thanks,
    By the way, is there a reason why this script isn't working as before?
    It keeps assigning PinRole 8 Rel & PinRole 9 AlwaysLow even with mqtt online
    It was working fine on previous firmware (.170 ish.. i haven't updated my switch in a while)

    addEventHandler MQTTState 1 backlog setPinRole 8 AlwaysHigh; setPinRole 9 Rel
    addEventHandler MQTTState 0 backlog setPinRole 8 Rel; setPinRole 9 AlwaysLow
  • p.kaczmarek2
    Moderator Smart Home
    Are you sure about that?
    Maybe it just remembers the state?
    Maybe you should set an initial one here:
    
    addEventHandler MQTTState 1 backlog setPinRole 8 AlwaysHigh; setPinRole 9 Rel
    addEventHandler MQTTState 0 backlog setPinRole 8 Rel; setPinRole 9 AlwaysLow
    // set start value
    backlog setPinRole 8 Rel; setPinRole 9 AlwaysLow
    

    Still, I tested it and it seems that MQTT TCP connect is very slow when it comes to detecting the dropped connection.

    Maybe there is a better way?

    You can consider using that new Ping time event. Something like:
    
    addChangeHandler NoPingTime > 10  backlog setPinRole 8 Rel; setPinRole 9 AlwaysLow
    addChangeHandler NoPingTime <= 10 backlog setPinRole 8 AlwaysHigh; setPinRole 9 Rel
    

    Set the IP of your MQTT server in options.
    More than 10 seconds without ping reply from there would trigger backlog.
    And again, if ping time changes from any high value to 0 again (on ping received) it will execute another backlog...