Skip to content

Commit 80e718a

Browse files
authored
fix: Expose update_frequency for Tuya SDM01V1.5 (#8792)
1 parent 151354f commit 80e718a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/devices/tuya.ts

+8
Original file line numberDiff line numberDiff line change
@@ -10032,6 +10032,13 @@ const definitions: DefinitionWithExtend[] = [
1003210032
tuya.exposes.powerFactorWithPhase('a'),
1003310033
tuya.exposes.powerFactorWithPhase('b'),
1003410034
tuya.exposes.powerFactorWithPhase('c'),
10035+
e
10036+
.numeric('update_frequency', ea.STATE_SET)
10037+
.withUnit('s')
10038+
.withDescription('Update frequency')
10039+
.withValueMin(5)
10040+
.withValueMax(3600)
10041+
.withPreset('default', 10, 'Default value'),
1003510042
],
1003610043
meta: {
1003710044
tuyaDatapoints: [
@@ -10040,6 +10047,7 @@ const definitions: DefinitionWithExtend[] = [
1004010047
[29, 'power', tuya.valueConverter.raw],
1004110048
[32, 'ac_frequency', tuya.valueConverter.divideBy100],
1004210049
[50, 'power_factor', tuya.valueConverter.raw],
10050+
[102, 'update_frequency', tuya.valueConverterBasic.divideBy(1)],
1004310051
[103, 'voltage_a', tuya.valueConverter.divideBy10],
1004410052
[104, 'current_a', tuya.valueConverter.divideBy1000],
1004510053
[105, 'power_a', tuya.valueConverter.raw],

0 commit comments

Comments
 (0)