The flow takes the gateway MQTT and spits out something for your own broker (can format to suit your needs). For HA, I just add MQTT platform sensors:
If you need more info on how to process the non-mi data, check the debug nodes for the payload info as this is what you need to have exposed to your own broker for HA .
The password is 3402847392 with no username require
You can also link to the download page directly without a password if you visit the author’s website here, might need google translate or something similar if you can’t read Russian.
Hi, I don’t have access to device right now, so I’ll try to guide you by memory.
You need to assemble 2 micro switch buttons:
between TP5 and GND (TP12 for example)
between TP16 and GND (TP13 for example)
Switch [1] will reboot device every time you press it.
Switch [2] will interrupt communication between flash chip and CPU
Connect console cable, reboot device. Inspect boot messages, make yourself familiar with boot process. Most probably your device is rebooting constantly.
At some point you should see message like “checking kernel 1” or something like that. Immediately, once you see this message start clicking repeatedly button [2]. check will fail and it will start “checking kernel 2”: continue clicking. When it fails second time boot process will be interrupted and you will see bootloader prompt. From there you need to ENABLE rootfs check (I don’t remember exact command, just check all commands with “?” or “help”). After this - reboot and gateway should boot now, but you are not done yet.
You booted from backup rootfs, now you need to flash backup of original rootfs to gateway. When done, try to reboot and make sure you booted from primary rootfs. When ready - disable rootfs check using “boot_ctrl” command.
Thanks for your flow. Studied it a bit and found you wrote a function that analyzes codes like 0.1.85 and 8.0.2008 and translates them into a more meaningful something like ‘temperature’ and ‘voltage’.
Is this something you deducted from looking at the numbers or is there a list somewhere of these codes and their meaning?
I didn’t find any sort of difinitive list so I watched the internal MQTT traffic and compared the logs to what I could see in the app. Temp and Humidity is easy. Battery is more obscured and I’m not 100% sure it’s correct. I just took some samples and interpolated from it to match the homekit values. I found a few hints about what other codes mean, but nothing to suggest they are interesting enough to track.