Haylou Watch 2 Pro: Initial support

This commit is contained in:
José Rebelo
2025-08-25 19:06:36 +01:00
parent 1169c416b1
commit 3fdd54d2d6
3 changed files with 38 additions and 0 deletions
@@ -0,0 +1,35 @@
/* 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.gloryfit.watches
import nodomain.freeyourgadget.gadgetbridge.R
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.GloryFitCoordinator
import java.util.regex.Pattern
class HaylouWatch2ProCoordinator : GloryFitCoordinator() {
override fun getManufacturer(): String {
return "Haylou"
}
override fun getSupportedDeviceName(): Pattern? {
return Pattern.compile("^HAYLOU Watch 2 Pro$")
}
override fun getDeviceNameResource(): Int {
return R.string.devicetype_haylou_watch_2_pro
}
}
@@ -148,6 +148,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.generic_headphones.GenericHe
import nodomain.freeyourgadget.gadgetbridge.devices.generic_hr.GenericHeartRateCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.generic_scale.GenericWeightScaleCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.DotnP66DCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.HaylouWatch2ProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.OukitelBT103Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.gree.GreeAcCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.hama.fit6900.HamaFit6900DeviceCoordinator;
@@ -731,6 +732,7 @@ public enum DeviceType {
OPPO_ENCO_BUDS2(OppoEncoBuds2Coordinator.class),
OUKITEL_BT103(OukitelBT103Coordinator.class),
DOTN_P66D(DotnP66DCoordinator.class),
HAYLOU_WATCH_2_PRO(HaylouWatch2ProCoordinator.class),
REALME_BUDS_T110(RealmeBudsT110Coordinator.class),
REALME_BUDS_T100(RealmeBudsT100Coordinator.class),
REALME_BUDS_T300(RealmeBudsT300Coordinator.class),
+1
View File
@@ -4239,6 +4239,7 @@
<string name="service_notification_collector_service_title">Gadgetbridge Notification Monitor</string>
<string name="service_notification_collector_service_text">Monitoring notifications in background</string>
<string name="devicetype_oukitel_bt103" translatable="false">Oukitel BT103</string>
<string name="devicetype_haylou_watch_2_pro" translatable="false">Haylou Watch 2 Pro</string>
<string name="devicetype_dotn_p66d" translatable="false">Dotn P66D</string>
<string name="pref_title_time_interval">Time interval</string>
<string name="pref_summary_time_interval">Restrict to specific intervals</string>