Understanding signal from Microcontroller

I will try to keep this short (and simple).
I have a wifi door sensor I want to replace the firmware with ESPHome.
After receiving them (tuya based) I confirmed I can replace the firmware.
BUT it appears there is a second chip that is a master to the TYWE3S.

The chip is a STM8L051F3P6.
It appears that this chip connects to the reed chip.
When the magnet is moved (open/close door) it wakes up the TYWE3S (esp8266) - feeds it data that is relayed to china, and after it is sent - turns it back off.

SO I have been able to use a serial monitor to catch the data sent to the TYWE3S, and believe I have some of it figured out.

This is where I am hoping to find some help. Does someone who knows more than me about this help understand the below information?

Close signal
Uª[00][05][00][05]e[01][00][01][00]p
Uª[00][05][00][08]g[02][00][04][00][00][00]dÝ
Uª[00][01][00]${"p":"XXXXXXXXXX","v":"1.0.0"}²
Uª[00][02][00][00][01]
Uª[00][02][00][00][01]
Uª[00][02][00][00][01]
Uª[00][02][00][00][01]
Uª[00][05][00][05]e[01][00][01][00]p
Uª[00][05][00][08]g[02][00][04][00][00][00]dÝ

open signal
Uª[00][05][00][05]e[01][00][01][01]q
Uª[00][05][00][08]g[02][00][04][00][00][00]dÝ
Uª[00][01][00]${"p":"XXXXXXXXXX","v":"1.0.0"}²
Uª[00][02][00][00][01]
Uª[00][02][00][00][01]
Uª[00][02][00][00][01]
Uª[00][02][00][00][01]
Uª[00][05][00][05]e[01][00][01][01]q
Uª[00][05][00][08]g[02][00][04][00][00][00]dÝ

First chain appears to be the open and close - first four are sensor “name” the last four are “status” - changes from 1010 (closed) to 1011 (open)
Second chain I think is battery - haven’t been able to test low batteries yet, but I expect same setup, name and status.
Third chain is JSON data being sent… version and password? or passkey (I removed in case its sensitive)?
Fourth through Seventh I don’t know
Eighth and Ninth are a repeat of first and second - for retain or something like that?

Okay - end of my post… does anyone have experience and can shed some light? Is there something I can do to get a clearer picture, or is this as good as it gets?
My goal is to use ESPHome to replicate the original firmware as far as capture the signal and send it to HA instead of China :slight_smile:

Thank you for stopping in to read!
Apologies for the wall of text!

  • DeadEnd