Garmin Edge 25 initial support

This commit is contained in:
Rob Pilling
2026-02-07 22:17:41 +00:00
parent 5c26bbbc1f
commit b93eed001c
4 changed files with 49 additions and 0 deletions
@@ -0,0 +1,45 @@
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike;
import androidx.annotation.NonNull;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class GarminEdge25Coordinator extends GarminBikeComputerCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Edge 2x$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_edge_25;
}
@Override
public int getBatteryCount(final GBDevice device) {
return 0; // Unconfirmed: does not seem to report the battery %
}
@Override
public boolean supportsVO2Max(@NonNull GBDevice device) {
return false;
}
@Override
public boolean supportsHeartRateMeasurement(@NonNull final GBDevice device) {
return false;
}
@Override
public boolean supportsWeather(@NonNull final GBDevice device) {
return false;
}
@Override
public boolean supportsMusicInfo(@NonNull GBDevice device) {
return false;
}
}
@@ -64,6 +64,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBuds3ProDe
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsDeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsLiveDeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsProDeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdge25Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdge1040Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdge130Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdge130PlusCoordinator;
@@ -616,6 +617,7 @@ public enum DeviceType {
VIVOMOVE_HR(GarminVivomoveHrCoordinator.class),
GARMIN_HRM_PRO_PLUS(GarminHrmProPlusCoordinator.class),
GARMIN_HRM_200(GarminHrm200Coordinator.class),
GARMIN_EDGE_25(GarminEdge25Coordinator.class),
GARMIN_EDGE_130(GarminEdge130Coordinator.class),
GARMIN_EDGE_130_PLUS(GarminEdge130PlusCoordinator.class),
GARMIN_EDGE_540(GarminEdge540Coordinator.class),
+1
View File
@@ -1930,6 +1930,7 @@
<string name="devicetype_garmin_venu_3s" translatable="false">Garmin Venu 3S</string>
<string name="devicetype_garmin_venu_4" translatable="false">Garmin Venu 4</string>
<string name="devicetype_garmin_venu_x1" translatable="false">Garmin Venu X1</string>
<string name="devicetype_garmin_edge_25" translatable="false">Garmin Edge 25</string>
<string name="devicetype_garmin_edge_130" translatable="false">Garmin Edge 130</string>
<string name="devicetype_garmin_edge_130_plus" translatable="false">Garmin Edge 130 Plus</string>
<string name="devicetype_garmin_edge_540" translatable="false">Garmin Edge 540</string>
@@ -78,6 +78,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
put("SBM67", DeviceType.SILVERCREST_SBM_67);
put("BPM Smart", DeviceType.SANITAS_SBM_67);
put("R11_0500", DeviceType.YAWELL_R11); // #4711
put("Edge 2x", DeviceType.GARMIN_EDGE_25);
put("Edge 130", DeviceType.GARMIN_EDGE_130); // matrix
put("Edge 840", DeviceType.GARMIN_EDGE_840); // matrix
put("Edge 1040", DeviceType.GARMIN_EDGE_1040); // matrix