Git Product home page Git Product logo

atc1441.github.io's Introduction

atc1441.github.io

atc1441.github.io's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

atc1441.github.io's Issues

Door Sensors

Hi atc1441,

I have three MI door sensors, and I'm using your universal version.
It got the keys for the first one no problem, but the other two just stall at activation.

Any clues?

s

console log:

Found GATT server
12:17:34.539 Temp_universal_mi_activate.html:309 Services: 0000fe95-0000-1000-8000-00805f9b34fb
12:17:34.539 Temp_universal_mi_activate.html:386 Status: Detected Mi Thermometer
12:17:34.539 Temp_universal_mi_activate.html:386 Found Main service
12:17:34.540 Temp_universal_mi_activate.html:386 Found enc_10 char
12:17:34.540 Temp_universal_mi_activate.html:386 Found enc_19 char
12:17:34.662 Temp_universal_mi_activate.html:386 Status: Connected, you can now Do the Activation to either get the Token or flash a new Firmware
12:17:36.857 Temp_universal_mi_activate.html:386 Send: a2000000
12:17:36.968 Temp_universal_mi_activate.html:386 Enc_19: 000000000100
12:17:36.968 Temp_universal_mi_activate.html:386 Send: 00000101
12:17:37.028 Temp_universal_mi_activate.html:386 Enc_19: 010001000000
12:17:37.028 Temp_universal_mi_activate.html:386 Send: 00000100
12:17:37.029 Temp_universal_mi_activate.html:386 Send: 15000000
12:17:37.032 

integration into Tasmota

Hi ATC1441,
I've been working hard on BLE in Tasmota ESP32, and had an idea about getting the keys for the sensors...
From reading your web source, you can obtain the key without reference to the MI website?....

So. As Tasmota is memory constrained, we could detect if a sensor is not yet Activated (or not activated with a known key), and provide a link to a page (here or in the Tasmota github), and the query string could indicate a Tasmota URL (to the specific local device) to set the key against the MAC.

i.e. the user would see his sensor appear in tasmota with a 'pair' link (only when key is unavailable/not working).
When clicked, this link would take them to a variation of your code, telling it the MAC which you want to Activate, and then once the activation is done, would call back to Tasmota with the required key?

Does this sound possible?

br,
Simon

minor: test for navigator.bluetooth to warn on unsupported browsers

It would be "nice" if an unsupported browser (thanks for nothing firefox) would give a warning or something, instead of simply "not doing anything" Currently, connect just gives you this on the console

Uncaught TypeError: navigator.bluetooth is undefined
    connect https://atc1441.github.io/TelinkFlasher.html:87
    onclick https://atc1441.github.io/TelinkFlasher.html:1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.