1. install windows 10 sdk (we need this file “\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd”)
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/
2. get the scripts
a. utilities
https://github.com/Andy9FromSpace/ble-scripts/tree/master/Utilities
b. mijia bluetooth
https://github.com/Andy9FromSpace/ble-scripts/tree/master/MJ-HT-V1
3. download and install c# script runner (you need one of these):
a. dude (don’t need visual studio)
https://github.com/adamralph-archive/dude
b. visual studio (includes csi.exe)
https://www.visualstudio.com/vs/community/
4. discover your device
dude DeviceEnumerate.csx
5. connect and see results
a. sensor data
rem device manager – association endpoint id
rem BluetoothLE#BluetoothLE18:5e:xx:xx:xx:xx-4c:65:xx:xx:xx:xx
..\dude MJHTV1GetSensorData.csx –device-id=BluetoothLE#BluetoothLE00:1a:xx:xx:xx:xx-4c:65:xx:xx:xx:xx
pause
b. device status (battery info)
rem device manager – association endpoint id
rem BluetoothLE#BluetoothLE18:5e:xx:xx:xx:xx-4c:65:xx:xx:xx:xx
..\dude MJHTV1GetStatus.csx –device-id=BluetoothLE#BluetoothLE00:1a:xx:xx:xx:xx-4c:65:xx:xx:xx:xx
pause