deennoo wrote:juzx wrote:Anyone knows anything about progress on the Mi Socket Wi-Fi and how to control this within Domoticz or even without the Mi application?
Please provid a source who explain how to do this...probleme is here no way to get it on domoticz if there is no source to begin something.
Maybe hack who works for Mi Robot Vaccum Cleaner can work.
Search on this topic
I tried the same Method as Sevift did with the Vacuum Cleaner. I think indeed they use some sort of same way of communication. My results so far with the BlueStacks > WireShark > PacketSender method.
If you try to turn on the socket from the App it always sents the following message
21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
The answer on this message changes. It seems that there is some sort of counter in it. Below are 3 different responses from 3 different tries. You see a pattern that the first part is always the same and the last part. Only the middle part changes.
213100200000000003499f5d000 17 d5d 716ef1302435d69990f86a8c784db01f
213100200000000003499f5d000 18 3da 716ef1302435d69990f86a8c784db01f
213100200000000003499f5d000 18 4b1 716ef1302435d69990f86a8c784db01f
After this the app sents the following messages (again 3, also the 3 responses from the received signals from above). Here you also see a pattern. It uses the first part of the received message and then adds something probably encrypted?
213100600000000003499f5d000 17 d5d d531bc1c897ebfb15f5341678a6d0eba34cb5514fc89cb573d80d9617e9cf0e23ccf9685f7415287c2149336f51211ba817d8101670106990945d6daf0630546f6f42ab4547f92ef4f0aed6f78dc7ffb
213100600000000003499f5d000 18 3da 6315570f8702ce010b9d9562093474b660e38047a77a80588dee67ca90326f4586c1aad9f4e434c6083408e3211dad488c5509e04b6cbddc398bd95da60396c9edf821d224b951aa40f1a59a71f5ead5
213100600000000003499f5d000 18 4b1 aa2db754bec96fdd156abe56a2e2cfbecff67a91c17e502e744a72928bb1130def5e7be78e04c24921dfdf65a91514e070984b09a8a5f4b8e09903d64303a7a5dedea888a2a1137edee2f1051cddb795
After this you receive another package from the socket but this is probably not necessary to decrypt for now.
I think the vacuumcleaner, air purifier and the wifi wall socket all use the same method of communication.
Someone who got experience with this kind of decrypthing?