1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 11:35:48 +01:00

Xiaomi: Mark new devices as experimental

This commit is contained in:
José Rebelo 2023-11-25 22:16:26 +00:00
parent 543c8b28d0
commit 7416159ba2
4 changed files with 19 additions and 0 deletions

View File

@ -96,6 +96,9 @@ vendor's servers.
- [Band, Band 1A, Band 1S](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band), [Band 2](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band-2), [Band 3](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band-3)
- [Band 4](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band-4), [Band 5](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band-5), [Band 6](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band-6) [**\[!\]**](#special-pairing-procedures)
- [Xiaomi Smart Band 7](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band-7) [**\[!\]**](#special-pairing-procedures)
- [Xiaomi Smart Band 8 (experimental)](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Mi-Band-8) [**\[!\]**](#special-pairing-procedures)
- Mi Watch Lite (experimental)
- Redmi Watch 3 Lite (experimental)
- Xiaomi Temperature and Humidity Monitor Clock (LYWSD02/LYWSD02MMC) (partial support)
- Scale 2 (Currently only displays a toast after stepping on the scale)
- [MyKronoz ZeTime](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/MyKronoz-ZeTime)

View File

@ -29,6 +29,11 @@ import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiEncryptedCoordi
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiInstallHandler;
public class MiBand8Coordinator extends XiaomiEncryptedCoordinator {
@Override
public boolean isExperimental() {
return true;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Xiaomi Smart Band 8 [A-Z0-9]{4}$");

View File

@ -30,6 +30,11 @@ import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiPlaintextCoordi
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class MiWatchLiteCoordinator extends XiaomiPlaintextCoordinator {
@Override
public boolean isExperimental() {
return true;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Mi Watch Lite_[A-Z0-9]{4}$");
@ -81,6 +86,7 @@ public class MiWatchLiteCoordinator extends XiaomiPlaintextCoordinator {
public int getAlarmSlotCount(final GBDevice device) {
return 0;
}
@Override
public int getReminderSlotCount(final GBDevice device) {
return 0;

View File

@ -29,6 +29,11 @@ import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiEncryptedCoordi
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiInstallHandler;
public class RedmiWatch3ActiveCoordinator extends XiaomiEncryptedCoordinator {
@Override
public boolean isExperimental() {
return true;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Redmi Watch 3 Active [A-Z0-9]{4}$");