Yawell R05: Initial support

This commit is contained in:
José Rebelo
2026-01-04 11:47:16 +00:00
parent 91fdd4340c
commit eb0b6fdd4f
4 changed files with 50 additions and 0 deletions
@@ -0,0 +1,46 @@
/* Copyright (C) 2026 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.yawell.ring;
import androidx.annotation.NonNull;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class YawellR05Coordinator extends AbstractYawellRingCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^R05_[0-9A-F]{4}$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_yawell_r05;
}
@Override
public boolean supportsTemperatureMeasurement(@NonNull final GBDevice device) {
return true;
}
@Override
public boolean supportsContinuousTemperature(@NonNull final GBDevice device) {
return true;
}
}
@@ -428,6 +428,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.watches.XiaomiWatchS4
import nodomain.freeyourgadget.gadgetbridge.devices.xwatch.XWatchCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR02Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR03Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.YawellR05Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR06Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR07Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR09Coordinator;
@@ -820,6 +821,7 @@ public enum DeviceType {
FEMOMETER_VINCA2(FemometerVinca2DeviceCoordinator.class),
PIXOO(PixooCoordinator.class),
HAMA_FIT6900(HamaFit6900DeviceCoordinator.class),
YAWELL_R05(YawellR05Coordinator.class),
YAWELL_R10(YawellR10Coordinator.class),
YAWELL_R11(YawellR11Coordinator.class),
COLMI_R02(ColmiR02Coordinator.class),
+1
View File
@@ -2137,6 +2137,7 @@
<string name="devicetype_redmi_watch_5_active" translatable="false">Redmi Watch 5 Active</string>
<string name="devicetype_redmi_watch_5_lite" translatable="false">Redmi Watch 5 Lite</string>
<string name="devicetype_aawireless" translatable="false">AAWireless</string>
<string name="devicetype_yawell_r05" translatable="false">Yawell R05</string>
<string name="devicetype_yawell_r10" translatable="false">Yawell R10</string>
<string name="devicetype_yawell_r11" translatable="false">Yawell R11</string>
<string name="devicetype_colmi_r02" translatable="false">Colmi R02</string>
@@ -33,6 +33,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
put("P8", DeviceType.WASPOS); // from wasp-os source
put("P8DFU", DeviceType.WASPOS); // from wasp-os source
put("P80", DeviceType.COLMI_P80);
put("R05_9805", DeviceType.YAWELL_R05); // #3896
put("BT103(ID-AB01)", DeviceType.OUKITEL_BT103);
put("P66D(ID-AB01)", DeviceType.DOTN_P66D);
put("R1(ID-10B5)", DeviceType.R1); // #5621