Amazfit Helio Strap: Initial support

This commit is contained in:
José Rebelo
2025-06-29 16:23:20 +01:00
parent 071c7529ba
commit c619506057
3 changed files with 94 additions and 0 deletions
@@ -0,0 +1,91 @@
/* 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.huami.zeppos.straps;
import java.util.Collections;
import java.util.Set;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.ZeppOsCoordinator;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class AmazfitHelioStrapCoordinator extends ZeppOsCoordinator {
@Override
public boolean isExperimental() {
return true;
}
@Override
public String getDeviceBluetoothName() {
return "Amazfit Helio Strap"; // no mac address at the end
}
@Override
public Set<Integer> getDeviceSources() {
return Collections.emptySet(); // TODO are there?
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_amazfit_helio_strap;
}
@Override
public boolean supportsScreenshots(final GBDevice device) {
return false;
}
@Override
public boolean supportsWeather() {
return false;
}
@Override
public boolean supportsMusicInfo() {
return false;
}
@Override
public int getWorldClocksSlotCount() {
return 0;
}
@Override
public boolean supportsCalendarEvents() {
return false;
}
@Override
public int getCannedRepliesSlotCount(final GBDevice device) {
return 0;
}
@Override
public boolean supportsTemperatureMeasurement(final GBDevice device) {
return true;
}
@Override
public boolean supportsContinuousTemperature(final GBDevice device) {
return true;
}
@Override
public boolean supportsAgpsUpdates() {
return false;
}
}
@@ -170,6 +170,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.huami.miband4.MiBand4Coordin
import nodomain.freeyourgadget.gadgetbridge.devices.huami.miband5.MiBand5Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.miband6.MiBand6Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppe.ZeppECoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.straps.AmazfitHelioStrapCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.watches.AmazfitActive2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.watches.AmazfitActive2NfcCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.watches.AmazfitActiveCoordinator;
@@ -468,6 +469,7 @@ public enum DeviceType {
AMAZFITACTIVE2(AmazfitActive2Coordinator.class),
AMAZFITACTIVE2NFC(AmazfitActive2NfcCoordinator.class),
AMAZFITACTIVEEDGE(AmazfitActiveEdgeCoordinator.class),
AMAZFITHELIOSTRAP(AmazfitHelioStrapCoordinator.class),
HPLUS(HPlusCoordinator.class),
MAKIBESF68(MakibesF68Coordinator.class),
EXRIZUK8(EXRIZUK8Coordinator.class),
+1
View File
@@ -1822,6 +1822,7 @@
<string name="devicetype_amazfit_gts2_mini">Amazfit GTS 2 Mini</string>
<string name="devicetype_amazfit_gts2e">Amazfit GTS 2e</string>
<string name="devicetype_amazfit_x">Amazfit X</string>
<string name="devicetype_amazfit_helio_strap">Amazfit Helio Strap</string>
<string name="devicetype_zepp_e">Zepp E</string>
<string name="devicetype_garmin_lily_2_active">Garmin Lily 2 Active</string>
<string name="devicetype_garmin_vivomove_hr">Garmin Vívomove HR</string>