jghaanstra / com.xiaomi-miio

Homey app to control Mi Home devices that implement the miIO protocol and Xiaomi gateway child devices
GNU General Public License v3.0
456 stars 85 forks source link

New Device Model: chuangmi.plug.m3 #250

Closed AndrewFarley closed 10 months ago

AndrewFarley commented 1 year ago

Supply the device details

Current support

I've done a submission of diagnostic data and received an email which said this device is not supported. The log ID is: 1a8ce7bc-9433-4a7c-8391-0e32ccd9f2df

Additional information

I was able to use this device perfectly with the miiocli utility and I have provided TCP dumps of the successful interactions with my device in an attempt to help you implement/debug/resolve this issue.

Status:

# For showing the status
tcpdump -s 0 -XX -vv host 10.20.31.194 -w status.pcap
miiocli chuangmiplug  --ip 10.20.31.194 --token f9610ca94107629828d486a7cc4d7920 status

# For turning it on
tcpdump -s 0 -XX -vv host 10.20.31.194 -w on.pcap
miiocli chuangmiplug  --ip 10.20.31.194 --token f9610ca94107629828d486a7cc4d7920 on

# For turning it off
tcpdump -s 0 -XX -vv host 10.20.31.194 -w off.pcap
miiocli chuangmiplug  --ip 10.20.31.194 --token f9610ca94107629828d486a7cc4d7920 off

chuangmi.plug.m3_miiocli_functioning.tar.gz

In these packet captures (in the zip above) I have three captures the traffic functionally able to control and talk to this device each of which were ran in separate terminals so they can run in parallel. And no, I don't really care that I've shared the IP or token here, I will reset them after this is working natively in Homey.

If you have any additional questions, or need additional data please ask. I'd love to be able to natively use this in Homey.

Thanks

jghaanstra commented 1 year ago

Thanx for the elaborate response. This device model is not in the supported devices list yet. It really needs the be the exact model identifier. I'll add support with the next release.

jghaanstra commented 11 months ago

This model has been added in the release which is published to the test channel and is waiting app store approval. Please test it.

https://homey.app/a/com.xiaomi-miio/test/