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
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