From 7416159ba2e33d0fdea86beed8422b0a6cbd6d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 25 Nov 2023 22:16:26 +0000 Subject: [PATCH] Xiaomi: Mark new devices as experimental --- README.md | 3 +++ .../devices/xiaomi/miband8/MiBand8Coordinator.java | 5 +++++ .../devices/xiaomi/miwatch/MiWatchLiteCoordinator.java | 6 ++++++ .../redmiwatch3active/RedmiWatch3ActiveCoordinator.java | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/README.md b/README.md index af4612f27..3192c2de5 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miband8/MiBand8Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miband8/MiBand8Coordinator.java index 1a306af1d..98fecb619 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miband8/MiBand8Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miband8/MiBand8Coordinator.java @@ -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}$"); diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java index b6257efcc..41e237cb6 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java @@ -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; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/redmiwatch3active/RedmiWatch3ActiveCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/redmiwatch3active/RedmiWatch3ActiveCoordinator.java index 7a60136a4..b15bf069c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/redmiwatch3active/RedmiWatch3ActiveCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/redmiwatch3active/RedmiWatch3ActiveCoordinator.java @@ -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}$");