@ledvance/base 1.2.62-0 → 1.2.63

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.2.62-0",
7
+ "version": "1.2.63",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
package/src/api/native.ts CHANGED
@@ -17,6 +17,7 @@ interface LDVDevicePanelManager {
17
17
  formatNumber: (num: number, fixed: number, isCN: boolean) => string
18
18
  getTimeZone: () => string
19
19
  groupControl: (tyGroupId: number, dps: string, config: string) => Promise<NativeResult<any>>
20
+ groupControlToTuya: (tyGroupId: number, dps: string) => Promise<NativeResult<any>>
20
21
  getFeature: (deviceId: string, featureId: string, callback: (res: NativeResult<string>) => void) => void
21
22
  putFeature: (deviceId: string, featureId: string, value: any, callback: (res: NativeResult<string>) => void) => void
22
23
  getGroupDevices: (tyGroupId: number) => Promise<NativeResult<string>>
@@ -329,6 +330,15 @@ export class NativeApi {
329
330
  }
330
331
  }
331
332
 
333
+ static async putGroupTYDps(tyGroupId: number, dps: string){
334
+ const nativeResult = await devicePanel.groupControlToTuya(tyGroupId, dps)
335
+ return {
336
+ success: nativeResult.result,
337
+ msg: nativeResult.msg,
338
+ data: nativeResult.data,
339
+ }
340
+ }
341
+
332
342
  }
333
343
 
334
344
  // 打开下载文件
@@ -12986,7 +12986,7 @@ export default {
12986
12986
  "conflict_dialog_save_item_wakeupschedule_titel": "Wilt u dit wekschema echt opslaan en activeren?",
12987
12987
  "consumption_data_annual_bar_chart_system_back_text": "Energieverbruik",
12988
12988
  "consumption_data_annual_bar_chart_text": "Eenheid: kWh",
12989
- "consumption_data_description_text": "toont verbruikte energie over de afgelopen 365 dagen",
12989
+ "consumption_data_description_text": "toont verbruikte energie",
12990
12990
  "consumption_data_field1_headline_text": "Vandaag",
12991
12991
  "consumption_data_field2_headline_text": "Momenteel",
12992
12992
  "consumption_data_field2_value_text1": "Vermogen (W)",
@@ -13155,7 +13155,7 @@ export default {
13155
13155
  "flag_leverkusen": "Bayer Leverkusen",
13156
13156
  "flashing_fs_toggle_state1": "Snelle animatie",
13157
13157
  "flashing_fs_toggle_state2": "Langzame animatie",
13158
- "generation_data_description_text": "toont opgewekte energie over de afgelopen 365 dagen",
13158
+ "generation_data_description_text": "toont opgewekte energie",
13159
13159
  "group_conflict_feature": "Houd er rekening mee dat alle conflicterende schema's (indien aanwezig) worden gedeactiveerd.",
13160
13160
  "group_feature_biological_rhythm_applyfor_information": "Het is mogelijk dat niet alle apparaten de functie 'Biologisch ritme' ondersteunen.",
13161
13161
  "group_feature_music_secondsection_note": "De verlichting wordt gesynchroniseerd met de muziek die wordt opgevangen door de microfoon van de smartphone",
@@ -13245,7 +13245,7 @@ export default {
13245
13245
  "mood_overview_headline_text": "Stemming",
13246
13246
  "mood_overview_information_text": "De statische stemmingen worden lokaal op uw smartphone opgeslagen. Daarom kunnen ze niet worden gedeeld met andere gebruikers.",
13247
13247
  "mood_overview_warning_max_number_text": "Het maximum aantal stemmingen is bereikt.",
13248
- "mood_preview": "Preview",
13248
+ "mood_preview": "Voorbeeld",
13249
13249
  "motion_detection_add_time_schedule_actions_text1": "Acties",
13250
13250
  "motion_detection_add_time_schedule_headline_text": "Voeg een nieuw schema toe",
13251
13251
  "motion_detection_add_time_schedule_selectionfield_text": "Naam",
@@ -325,6 +325,10 @@ export function useUAGroupInfo(): UAGroupInfo {
325
325
  return useSelector(state => state.ldvModules.uaGroupInfo)
326
326
  }
327
327
 
328
+ export function putGroupTYDps(tyGroupId: number, dps: Record<string, any>) {
329
+ return NativeApi.putGroupTYDps(tyGroupId, JSON.stringify(dps))
330
+ }
331
+
328
332
  export function useGroupConfig<T>(): [T, (dps: any, newConfig: T) => Promise<Result<any>>] {
329
333
  const tyGroupId = useUAGroupInfo().tyGroupId
330
334
  const config = useUAGroupInfo().config || {}