{"id":218,"date":"2020-04-23T17:29:53","date_gmt":"2020-04-23T10:29:53","guid":{"rendered":"https:\/\/prosindo.com\/blog\/?p=218"},"modified":"2020-04-23T17:29:53","modified_gmt":"2020-04-23T10:29:53","slug":"monitor-temperatures-using-bluetooth-xiaomi-mijia-thermostat-mj_ht_v1-c-script","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2020\/04\/23\/monitor-temperatures-using-bluetooth-xiaomi-mijia-thermostat-mj_ht_v1-c-script\/","title":{"rendered":"Monitor Temperatures using Bluetooth Xiaomi Mijia Thermostat MJ_HT_V1 C# Script"},"content":{"rendered":"<p>1. install windows 10 sdk (we need this file &#8220;\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.17763.0\\Windows.winmd&#8221;)<br \/>\n<code>https:\/\/developer.microsoft.com\/en-us\/windows\/downloads\/windows-10-sdk\/<\/code><\/p>\n<p>2. get the scripts<br \/>\na. utilities<br \/>\nhttps:\/\/github.com\/Andy9FromSpace\/ble-scripts\/tree\/master\/Utilities<br \/>\nb. mijia bluetooth<br \/>\nhttps:\/\/github.com\/Andy9FromSpace\/ble-scripts\/tree\/master\/MJ-HT-V1<\/p>\n<p>3. download and install c# script runner (you need one of these):<br \/>\na. dude (don&#8217;t need visual studio)<br \/>\nhttps:\/\/github.com\/adamralph-archive\/dude<br \/>\nb. visual studio (includes csi.exe)<br \/>\nhttps:\/\/www.visualstudio.com\/vs\/community\/<\/p>\n<p>4. discover your device<br \/>\n<code>dude DeviceEnumerate.csx<\/code><\/p>\n<p>5. connect and see results<br \/>\na. sensor data<br \/>\nrem device manager &#8211; association endpoint id<br \/>\nrem BluetoothLE#BluetoothLE18:5e:xx:xx:xx:xx-4c:65:xx:xx:xx:xx<br \/>\n..\\dude MJHTV1GetSensorData.csx &#8211;device-id=BluetoothLE#BluetoothLE00:1a:xx:xx:xx:xx-4c:65:xx:xx:xx:xx<br \/>\npause<br \/>\nb. device status (battery info)<br \/>\nrem device manager &#8211; association endpoint id<br \/>\nrem BluetoothLE#BluetoothLE18:5e:xx:xx:xx:xx-4c:65:xx:xx:xx:xx<br \/>\n..\\dude MJHTV1GetStatus.csx &#8211;device-id=BluetoothLE#BluetoothLE00:1a:xx:xx:xx:xx-4c:65:xx:xx:xx:xx<br \/>\npause<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. install windows 10 sdk (we need this file &#8220;\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.17763.0\\Windows.winmd&#8221;) 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&#8217;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 &hellip; <a href=\"https:\/\/prosindo.com\/blog\/2020\/04\/23\/monitor-temperatures-using-bluetooth-xiaomi-mijia-thermostat-mj_ht_v1-c-script\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Monitor Temperatures using Bluetooth Xiaomi Mijia Thermostat MJ_HT_V1 C# Script&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":1,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/218\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}