@ledvance/base 1.3.111 → 1.3.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/localazy.json CHANGED
@@ -1309,7 +1309,8 @@
1309
1309
  "MATCH:country_CW",
1310
1310
  "MATCH:country_SN",
1311
1311
  "MATCH:country_DZ",
1312
- "MATCH:country_UZ"
1312
+ "MATCH:country_UZ",
1313
+ "MATCH:timeschedule_preset_format"
1313
1314
  ],
1314
1315
  "replacements": {
1315
1316
  "REGEX:% %1\\$s.*?\\)%": "{0}",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.3.111",
7
+ "version": "1.3.112",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useMemo } from 'react'
2
- import { StyleSheet, Text } from 'react-native'
2
+ import {StyleSheet, Text, View} from 'react-native'
3
3
  import { Utils } from 'tuya-panel-kit'
4
4
  import ThemeType from '../config/themeType'
5
5
  import I18n from '../i18n'
@@ -15,6 +15,7 @@ type BatteryProps = {
15
15
  middleValue?: number
16
16
  highValue?: number
17
17
  charging?: boolean
18
+ hideValue?: boolean
18
19
  theme?: ThemeType
19
20
  }
20
21
 
@@ -50,6 +51,9 @@ const BatteryPercentageView = (props: BatteryProps) => {
50
51
  textAlign: 'right',
51
52
  fontSize: cx(14),
52
53
  },
54
+ end: {
55
+ marginEnd: cx(24),
56
+ },
53
57
  low: {
54
58
  color: props.theme?.global.error
55
59
  }
@@ -77,7 +81,10 @@ const BatteryPercentageView = (props: BatteryProps) => {
77
81
  middleColor="#999999"
78
82
  batteryRotation={90}
79
83
  />
80
- <Text style={[styles.content, value <= middleValue ? styles.low : null]}>{value}%</Text>
84
+ {props.hideValue !== true ?
85
+ <Text style={[styles.content, value <= middleValue ? styles.low : null]}>{value}%</Text>
86
+ : <View style={styles.end}/>
87
+ }
81
88
  </Card>
82
89
  )
83
90
  }
@@ -51,6 +51,7 @@ const OptionGroup = (props: OptionGroupProps) => {
51
51
  alignItems: 'center',
52
52
  paddingHorizontal: cx(12),
53
53
  paddingBottom: cx(8),
54
+ minHeight:cx(40),
54
55
  },
55
56
  itemTextGroup: {
56
57
  flex: 1,
@@ -1272,6 +1272,7 @@ export default {
1272
1272
  "timeschedule_overview_empty_information_text": "Aún no has añadido un horario.",
1273
1273
  "timeschedule_overview_headline_text": "Horario",
1274
1274
  "timeschedule_own": "Crea tu propio horario",
1275
+ "timeschedule_preset_format": "{0} - Horario",
1275
1276
  "title_COsensor": "Detector de CO",
1276
1277
  "title_smokesensor": "Detector de humo",
1277
1278
  "title_watersensor": "Detector de fugas de agua",
@@ -2562,6 +2563,7 @@ export default {
2562
2563
  "timeschedule_overview_empty_information_text": "Dosud jste nepřidali žádný časový rozvrh.",
2563
2564
  "timeschedule_overview_headline_text": "Časový rozvrh",
2564
2565
  "timeschedule_own": "Vytvořte si vlastní časový harmonogram",
2566
+ "timeschedule_preset_format": "{0} - Time schedule",
2565
2567
  "title_COsensor": "CO detektor (oxidu uhelnatého)",
2566
2568
  "title_smokesensor": "Detektor kouře",
2567
2569
  "title_watersensor": "Detektor úniku vody",
@@ -3852,6 +3854,7 @@ export default {
3852
3854
  "timeschedule_overview_empty_information_text": "You have not added a time schedule yet.",
3853
3855
  "timeschedule_overview_headline_text": "Time Schedule",
3854
3856
  "timeschedule_own": "Create your own time schedule",
3857
+ "timeschedule_preset_format": "{0} - Time schedule",
3855
3858
  "title_COsensor": "CO detector",
3856
3859
  "title_smokesensor": "Smoke detector",
3857
3860
  "title_watersensor": "Water leakage detector",
@@ -5142,6 +5145,7 @@ export default {
5142
5145
  "timeschedule_overview_empty_information_text": "Все още не сте добавили времеви график.",
5143
5146
  "timeschedule_overview_headline_text": "Времеви график",
5144
5147
  "timeschedule_own": "Създайте свой собствен график",
5148
+ "timeschedule_preset_format": "{0} - Time schedule",
5145
5149
  "title_COsensor": "CO детектор",
5146
5150
  "title_smokesensor": "Детектор за дим",
5147
5151
  "title_watersensor": "Детектор за изтичане на вода",
@@ -6432,6 +6436,7 @@ export default {
6432
6436
  "timeschedule_overview_empty_information_text": "Du har endnu ikke tilføjet en tidsplan.",
6433
6437
  "timeschedule_overview_headline_text": "Opstart",
6434
6438
  "timeschedule_own": "Lav din egen tidsplan",
6439
+ "timeschedule_preset_format": "{0} - Time schedule",
6435
6440
  "title_COsensor": "CO-detektor",
6436
6441
  "title_smokesensor": "Røgalarm",
6437
6442
  "title_watersensor": "Detektor for vandlækage",
@@ -7722,6 +7727,7 @@ export default {
7722
7727
  "timeschedule_overview_empty_information_text": "Du hast noch keinen Zeitplan hinzugefügt.",
7723
7728
  "timeschedule_overview_headline_text": "Zeitplan",
7724
7729
  "timeschedule_own": "Erstelle deinen eigenen Zeitplan",
7730
+ "timeschedule_preset_format": "{0} – Zeitplan",
7725
7731
  "title_COsensor": "CO-Melder",
7726
7732
  "title_smokesensor": "Rauchmelder",
7727
7733
  "title_watersensor": "Wasserleck-Detektor",
@@ -9012,6 +9018,7 @@ export default {
9012
9018
  "timeschedule_overview_empty_information_text": "Δεν έχετε προσθέσει ακόμα χρονοδιάγραμμα.",
9013
9019
  "timeschedule_overview_headline_text": "Χρονοπρόγραμμα",
9014
9020
  "timeschedule_own": "Δημιουργήστε το δικό σας χρονοδιάγραμμα",
9021
+ "timeschedule_preset_format": "{0} - Time schedule",
9015
9022
  "title_COsensor": "Ανιχνευτής CO",
9016
9023
  "title_smokesensor": "Ανιχνευτής καπνού",
9017
9024
  "title_watersensor": "Ανιχνευτής διαρροής νερού",
@@ -10302,6 +10309,7 @@ export default {
10302
10309
  "timeschedule_overview_empty_information_text": "Aún no has añadido un horario.",
10303
10310
  "timeschedule_overview_headline_text": "Horario",
10304
10311
  "timeschedule_own": "Crea tu propio horario",
10312
+ "timeschedule_preset_format": "{0} - Time schedule",
10305
10313
  "title_COsensor": "Detector de CO",
10306
10314
  "title_smokesensor": "Detector de humo",
10307
10315
  "title_watersensor": "Detector de fugas de agua",
@@ -11592,6 +11600,7 @@ export default {
11592
11600
  "timeschedule_overview_empty_information_text": "Sa ei ole veel ajakava lisanud.",
11593
11601
  "timeschedule_overview_headline_text": "Ajakava",
11594
11602
  "timeschedule_own": "Loo oma ajakava",
11603
+ "timeschedule_preset_format": "{0} - Time schedule",
11595
11604
  "title_COsensor": "CO detektor",
11596
11605
  "title_smokesensor": "Suitsuandur",
11597
11606
  "title_watersensor": "Veelekke detektor",
@@ -12882,6 +12891,7 @@ export default {
12882
12891
  "timeschedule_overview_empty_information_text": "Et ole vielä lisännyt aikataulua.",
12883
12892
  "timeschedule_overview_headline_text": "Aikataulu",
12884
12893
  "timeschedule_own": "Luo oma aikataulusi",
12894
+ "timeschedule_preset_format": "{0} - Time schedule",
12885
12895
  "title_COsensor": "Häkäilmaisin",
12886
12896
  "title_smokesensor": "Palovaroitin",
12887
12897
  "title_watersensor": "Vesivuodon ilmaisin",
@@ -14172,6 +14182,7 @@ export default {
14172
14182
  "timeschedule_overview_empty_information_text": "Vous n'avez pas encore ajouté d'horaires.",
14173
14183
  "timeschedule_overview_headline_text": "Horaires",
14174
14184
  "timeschedule_own": "Créez vos propres Horaires",
14185
+ "timeschedule_preset_format": "{0} - Time schedule",
14175
14186
  "title_COsensor": "Détecteur de monoxyde de carbone",
14176
14187
  "title_smokesensor": "Détecteur de fumée",
14177
14188
  "title_watersensor": "Détecteur de fuite d'eau",
@@ -14912,7 +14923,7 @@ export default {
14912
14923
  "matter_gradient_light_off_title": "Izgađanje (i)",
14913
14924
  "matter_gradient_light_on_description_text": "Postavite vrijeme u rasponu od 0 do 60 sekundi kako biste postepeno povećavali svjetlinu prilikom uključivanja svjetiljke",
14914
14925
  "matter_gradient_light_on_title": "Ulaz (i)",
14915
- "matter_gradient_overview_headline_text": "Izblijeđivanje/isključivanje",
14926
+ "matter_gradient_overview_headline_text": "Vrijeme prijelaza",
14916
14927
  "matterplug_LED": "LED indikator",
14917
14928
  "matterplug_description": "Konfiguracija LED indikatora nakon uključivanja/isključivanja",
14918
14929
  "matterplug_heading": "Status LED indikatora",
@@ -15462,6 +15473,7 @@ export default {
15462
15473
  "timeschedule_overview_empty_information_text": "Još niste dodali vremenski raspored.",
15463
15474
  "timeschedule_overview_headline_text": "Vremenski raspored",
15464
15475
  "timeschedule_own": "Napravite vlastiti raspored",
15476
+ "timeschedule_preset_format": "{0} - Time schedule",
15465
15477
  "title_COsensor": "CO detektor",
15466
15478
  "title_smokesensor": "Detektor dima",
15467
15479
  "title_watersensor": "Detektor curenja vode",
@@ -16752,6 +16764,7 @@ export default {
16752
16764
  "timeschedule_overview_empty_information_text": "Még nem adott hozzá ütemezést.",
16753
16765
  "timeschedule_overview_headline_text": "Ütemterv",
16754
16766
  "timeschedule_own": "Készítse el saját időbeosztását",
16767
+ "timeschedule_preset_format": "{0} - Time schedule",
16755
16768
  "title_COsensor": "CO-érzékelő",
16756
16769
  "title_smokesensor": "Füstérzékelő",
16757
16770
  "title_watersensor": "Vízszivárgás-érzékelő",
@@ -18042,6 +18055,7 @@ export default {
18042
18055
  "timeschedule_overview_empty_information_text": "Non hai ancora aggiunto una pianificazione oraria.",
18043
18056
  "timeschedule_overview_headline_text": "Orario",
18044
18057
  "timeschedule_own": "Crea il tuo programma personalizzato",
18058
+ "timeschedule_preset_format": "{0} - Time schedule",
18045
18059
  "title_COsensor": "Rilevatore di CO",
18046
18060
  "title_smokesensor": "Rilevatore di fumo",
18047
18061
  "title_watersensor": "Rilevatore di perdite d'acqua",
@@ -19332,6 +19346,7 @@ export default {
19332
19346
  "timeschedule_overview_empty_information_text": "아직 시간 일정을 추가하지 않았습니다.",
19333
19347
  "timeschedule_overview_headline_text": "일정",
19334
19348
  "timeschedule_own": "나만의 시간표를 만들어 보세요",
19349
+ "timeschedule_preset_format": "{0} - Time schedule",
19335
19350
  "title_COsensor": "일산화탄소 검출기",
19336
19351
  "title_smokesensor": "연기 감지기",
19337
19352
  "title_watersensor": "누수 감지기",
@@ -20622,6 +20637,7 @@ export default {
20622
20637
  "timeschedule_overview_empty_information_text": "Dar nepridėjote laiko grafiko.",
20623
20638
  "timeschedule_overview_headline_text": "Laiko grafikas",
20624
20639
  "timeschedule_own": "Sukurkite savo laiko grafiką",
20640
+ "timeschedule_preset_format": "{0} - Time schedule",
20625
20641
  "title_COsensor": "CO detektorius",
20626
20642
  "title_smokesensor": "Dūmų detektorius",
20627
20643
  "title_watersensor": "Vandens nuotėkio detektorius",
@@ -21912,6 +21928,7 @@ export default {
21912
21928
  "timeschedule_overview_empty_information_text": "Jūs vēl neesat pievienojis laika grafiku.",
21913
21929
  "timeschedule_overview_headline_text": "Laika grafiks",
21914
21930
  "timeschedule_own": "Izveidojiet savu laika grafiku",
21931
+ "timeschedule_preset_format": "{0} - Time schedule",
21915
21932
  "title_COsensor": "CO detektors",
21916
21933
  "title_smokesensor": "Dūmu detektors",
21917
21934
  "title_watersensor": "Ūdens noplūdes detektors",
@@ -23202,6 +23219,7 @@ export default {
23202
23219
  "timeschedule_overview_empty_information_text": "Du har ikke lagt til en tidsplan ennå.",
23203
23220
  "timeschedule_overview_headline_text": "Tidsplan",
23204
23221
  "timeschedule_own": "Lag din egen tidsplan",
23222
+ "timeschedule_preset_format": "{0} - Time schedule",
23205
23223
  "title_COsensor": "CO-detektor",
23206
23224
  "title_smokesensor": "Røykdetektor",
23207
23225
  "title_watersensor": "Vannlekkasjedetektor",
@@ -23896,7 +23914,7 @@ export default {
23896
23914
  "irrigation_quantity": "Irrigatiehoeveelheid",
23897
23915
  "irrigation_schedule_param_invalid": "De parameter is ongeldig, controleer deze en voer hem opnieuw in!",
23898
23916
  "last_water_usage": "Laatste waterverbruik",
23899
- "latam_group_format": "Group {0}",
23917
+ "latam_group_format": "Groep {0}",
23900
23918
  "latam_groups": "Groepen",
23901
23919
  "ldv_pir_delay": "PIR-vertraging",
23902
23920
  "ldv_pir_sensitivity": "PIR-gevoeligheid",
@@ -24492,6 +24510,7 @@ export default {
24492
24510
  "timeschedule_overview_empty_information_text": "U heeft nog geen tijdschema toegevoegd.",
24493
24511
  "timeschedule_overview_headline_text": "Tijdschema",
24494
24512
  "timeschedule_own": "Maak je eigen tijdschema",
24513
+ "timeschedule_preset_format": "{0} - Time schedule",
24495
24514
  "title_COsensor": "CO-melder",
24496
24515
  "title_smokesensor": "Rookmelder",
24497
24516
  "title_watersensor": "Waterlekdetector",
@@ -25782,6 +25801,7 @@ export default {
25782
25801
  "timeschedule_overview_empty_information_text": "Nie dodałeś jeszcze harmonogramu.",
25783
25802
  "timeschedule_overview_headline_text": "Harmonogram czasowy",
25784
25803
  "timeschedule_own": "Utwórz własny harmonogram",
25804
+ "timeschedule_preset_format": "{0} - Time schedule",
25785
25805
  "title_COsensor": "Detektor CO",
25786
25806
  "title_smokesensor": "Czujnik dymu",
25787
25807
  "title_watersensor": "Detektor wycieku wody",
@@ -27072,6 +27092,7 @@ export default {
27072
27092
  "timeschedule_overview_empty_information_text": "Você ainda não adicionou um cronograma.",
27073
27093
  "timeschedule_overview_headline_text": "Horário",
27074
27094
  "timeschedule_own": "Crie sua própria agenda",
27095
+ "timeschedule_preset_format": "{0} - Time schedule",
27075
27096
  "title_COsensor": "Detector de CO",
27076
27097
  "title_smokesensor": "Detector de fumaça",
27077
27098
  "title_watersensor": "Detector de vazamento de água",
@@ -28362,6 +28383,7 @@ export default {
28362
28383
  "timeschedule_overview_empty_information_text": "Nu ați adăugat încă un program.",
28363
28384
  "timeschedule_overview_headline_text": "Program",
28364
28385
  "timeschedule_own": "Creați-vă propriul program",
28386
+ "timeschedule_preset_format": "{0} - Time schedule",
28365
28387
  "title_COsensor": "Detector de CO",
28366
28388
  "title_smokesensor": "Detector de fum",
28367
28389
  "title_watersensor": "Detector de scurgeri de apă",
@@ -29652,6 +29674,7 @@ export default {
29652
29674
  "timeschedule_overview_empty_information_text": "Вы еще не добавили расписание.",
29653
29675
  "timeschedule_overview_headline_text": "График работы",
29654
29676
  "timeschedule_own": "Создайте свой собственный график",
29677
+ "timeschedule_preset_format": "{0} - Time schedule",
29655
29678
  "title_COsensor": "Детектор CO",
29656
29679
  "title_smokesensor": "Детектор дыма",
29657
29680
  "title_watersensor": "Детектор утечки воды",
@@ -30942,6 +30965,7 @@ export default {
30942
30965
  "timeschedule_overview_empty_information_text": "Zatiaľ ste nepridali časový rozvrh.",
30943
30966
  "timeschedule_overview_headline_text": "Časový harmonogram",
30944
30967
  "timeschedule_own": "Vytvorte si vlastný časový harmonogram",
30968
+ "timeschedule_preset_format": "{0} - Time schedule",
30945
30969
  "title_COsensor": "Detektor CO",
30946
30970
  "title_smokesensor": "Detektor dymu",
30947
30971
  "title_watersensor": "Detektor úniku vody",
@@ -32232,6 +32256,7 @@ export default {
32232
32256
  "timeschedule_overview_empty_information_text": "Du har inte lagt till något tidsschema ännu.",
32233
32257
  "timeschedule_overview_headline_text": "Tidsschema",
32234
32258
  "timeschedule_own": "Skapa ditt eget tidschema",
32259
+ "timeschedule_preset_format": "{0} - Time schedule",
32235
32260
  "title_COsensor": "CO-detektor",
32236
32261
  "title_smokesensor": "Rökdetektor",
32237
32262
  "title_watersensor": "Vattenläckagedetektor",
@@ -33522,6 +33547,7 @@ export default {
33522
33547
  "timeschedule_overview_empty_information_text": "Henüz bir zaman çizelgesi eklemediniz.",
33523
33548
  "timeschedule_overview_headline_text": "Zaman Çizelgesi",
33524
33549
  "timeschedule_own": "Kendi zaman çizelgenizi oluşturun",
33550
+ "timeschedule_preset_format": "{0} - Time schedule",
33525
33551
  "title_COsensor": "CO dedektörü",
33526
33552
  "title_smokesensor": "Duman dedektörü",
33527
33553
  "title_watersensor": "Su kaçağı dedektörü",
@@ -34812,6 +34838,7 @@ export default {
34812
34838
  "timeschedule_overview_empty_information_text": "Ви ще не додали розклад.",
34813
34839
  "timeschedule_overview_headline_text": "Графік",
34814
34840
  "timeschedule_own": "Налаштуйте свій розклад",
34841
+ "timeschedule_preset_format": "{0} - Time schedule",
34815
34842
  "title_COsensor": "Датчик виявлення чадного газу",
34816
34843
  "title_smokesensor": "Датчик диму",
34817
34844
  "title_watersensor": "Датчик протікання води",
@@ -36102,6 +36129,7 @@ export default {
36102
36129
  "timeschedule_overview_empty_information_text": "你还没有添加时间表。",
36103
36130
  "timeschedule_overview_headline_text": "时间表",
36104
36131
  "timeschedule_own": "创建自定义时间表",
36132
+ "timeschedule_preset_format": "{0} - Time schedule",
36105
36133
  "title_COsensor": "一氧化碳探测器",
36106
36134
  "title_smokesensor": "烟雾探测器",
36107
36135
  "title_watersensor": "漏水探测器",
@@ -37392,6 +37420,7 @@ export default {
37392
37420
  "timeschedule_overview_empty_information_text": "Você ainda não adicionou um cronograma.",
37393
37421
  "timeschedule_overview_headline_text": "Horário",
37394
37422
  "timeschedule_own": "Crie sua própria agenda",
37423
+ "timeschedule_preset_format": "{0} - Time schedule",
37395
37424
  "title_COsensor": "Detector de CO",
37396
37425
  "title_smokesensor": "Detector de fumaça",
37397
37426
  "title_watersensor": "Detector de vazamento de água",
@@ -38682,6 +38711,7 @@ export default {
38682
38711
  "timeschedule_overview_empty_information_text": "你还没有添加时间表。",
38683
38712
  "timeschedule_overview_headline_text": "时间表",
38684
38713
  "timeschedule_own": "创建自定义时间表",
38714
+ "timeschedule_preset_format": "{0} - Time schedule",
38685
38715
  "title_COsensor": "一氧化碳探测器",
38686
38716
  "title_smokesensor": "烟雾探测器",
38687
38717
  "title_watersensor": "漏水探测器",
@@ -245,6 +245,10 @@ const useDeviceId = () => {
245
245
  return useSelector(store => store.ldvModules.deviceInfo.devId)
246
246
  }
247
247
 
248
+ const usePid = () => {
249
+ return useSelector(store => store.ldvModules.deviceInfo.pId)
250
+ }
251
+
248
252
  const useDeviceCategory = () => {
249
253
  return useSelector(store => store.ldvModules.deviceInfo.category)
250
254
  }
@@ -532,6 +536,7 @@ export {
532
536
  simpleSetDps,
533
537
  simpleSetDp,
534
538
  useDeviceId,
539
+ usePid,
535
540
  useDeviceInfo,
536
541
  useDp,
537
542
  useInitialDp,
@@ -110,3 +110,11 @@ export interface RoutineParam {
110
110
  conditions?: RoutineCondition[]
111
111
  tasks?: RoutineTask[]
112
112
  }
113
+
114
+
115
+ export enum AlarmState {
116
+ AlarmSound = 'alarm_sound',
117
+ AlarmLight = 'alarm_light',
118
+ AlarmSoundAndLight = 'alarm_sound_light',
119
+ AlarmOff = 'normal'
120
+ }
package/translateKey.txt CHANGED
@@ -1303,4 +1303,5 @@ country_HT
1303
1303
  country_CW
1304
1304
  country_SN
1305
1305
  country_DZ
1306
- country_UZ
1306
+ country_UZ
1307
+ timeschedule_preset_format