Redmi Smart Band 3: Experimental support

This commit is contained in:
José Rebelo
2025-07-19 22:11:20 +01:00
parent 4c01beabe8
commit 16fd8cb651
3 changed files with 48 additions and 0 deletions
@@ -0,0 +1,45 @@
/* Copyright (C) 2025 José Rebelo
This file is part of Gadgetbridge.
Gadgetbridge is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Gadgetbridge is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
package nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiCoordinator;
public class RedmiSmartBand3Coordinator extends XiaomiCoordinator {
@Override
public boolean isExperimental() {
// Untested - #4809
return true;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Redmi Smart Band 3 [A-Z0-9]{4}$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_redmi_smart_band_3;
}
@Override
public int getDefaultIconResource() {
return R.drawable.ic_device_default;
}
}
@@ -354,6 +354,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.MiBand9ProCoo
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.MiWatchColorSportCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.MiWatchLiteCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.RedmiSmartBand2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.RedmiSmartBand3Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.RedmiSmartBandProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.RedmiWatch2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.RedmiWatch2LiteCoordinator;
@@ -448,6 +449,7 @@ public enum DeviceType {
REDMIWATCH3ACTIVE(RedmiWatch3ActiveCoordinator.class),
REDMIWATCH3(RedmiWatch3Coordinator.class),
REDMISMARTBAND2(RedmiSmartBand2Coordinator.class),
REDMISMARTBAND3(RedmiSmartBand3Coordinator.class),
REDMIWATCH2(RedmiWatch2Coordinator.class),
REDMIWATCH2LITE(RedmiWatch2LiteCoordinator.class),
REDMISMARTBANDPRO(RedmiSmartBandProCoordinator.class),
+1
View File
@@ -2045,6 +2045,7 @@
<string name="devicetype_redmi_buds_6_active">Redmi Buds 6 Active</string>
<string name="devicetype_redmi_buds_6_pro">Redmi Buds 6 Pro</string>
<string name="devicetype_redmi_smart_band_2">Redmi Smart Band 2</string>
<string name="devicetype_redmi_smart_band_3">Redmi Smart Band 3</string>
<string name="devicetype_redmi_watch_2">Redmi Watch 2</string>
<string name="devicetype_redmi_watch_2_lite">Redmi Watch 2 Lite</string>
<string name="devicetype_redmi_smart_band_pro">Redmi Smart Band Pro</string>