pFenners / mijia-sensor-domoticz

69 stars 38 forks source link

Reading Xiaomi temperature sensor v2 #9

Open acca84 opened 4 years ago

acca84 commented 4 years ago

Hello i try to read this kind of sensor with your code : https://www.banggood.com/fr/Newest-Version-XIAOMI-Mijia-Bluetooth-Thermometer-2-Wireless-Smart-Electric-Digital-Hygrometer-Thermometer-1Pcs-Work-with-Mijia-APP-p-1595119.html?gmcCountry=FR&currency=EUR&createTmp=1&utm_source=googleshopping&utm_medium=cpc_bgs&utm_content=frank&utm_campaign=ssc-fr-all-0716&ad_id=367115636049&gclid=CjwKCAiAu9vwBRAEEiwAzvjq-6pWtwVIoq_aZzaOPfZB-6hMEfc0_HjStrGWe1nLAs7WeRQfzApA9BoChNkQAvD_BwE&cur_warehouse=CN

But i have the following result:

 python3 domoticz_mijia.py 
1: updating
Characteristic value/descriptor read failed: Request attribute has encountered an unlikely error
Characteristic Write Request failed: Attribute can't be written
Error reading value retry after 5 seconds...

Is this sensor supported ? Thanks

jeffreyveldt commented 4 years ago

https://m.banggood.com/Xiaomi-Mijia-Bluetooth-Thermometer-Hygrometer-with-LCD-Screen-Magnetic-Suction-Wall-Stickers-p-1232396.html Software was designed for this one. My best guess is that the newer one works a bit different and still has to be reverse engineered.

acca84 commented 4 years ago

Ok, Any référence to understand how to do it ? Thanks

poseidogithub commented 4 years ago

Also interested on this, seems this new Square sensors are much more common now. (and cheap!)

yvanf22 commented 4 years ago

Hello, I'm also very interested on this : a new script for new sensor V2 Do you have found solution ? thank you

yvanf22 commented 4 years ago

Sorry, I have found on Pull Request