Skip to content

Commit 8a206dc

Browse files
fix: Fixes for PST POW v2 and PST POW DUO v2 (#9010)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent c02c960 commit 8a206dc

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

src/devices/efekta.ts

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,13 +3067,15 @@ export const definitions: DefinitionWithExtend[] = [
30673067
access: "STATE_SET",
30683068
}),
30693069
m.numeric({
3070-
name: "raw_temperature_calibration",
3071-
unit: "raw unit",
3072-
valueMin: -8192,
3073-
valueMax: 8192,
3070+
name: "temperature_offset",
3071+
unit: "°C",
3072+
valueMin: -25,
3073+
valueMax: 25,
3074+
valueStep: 0.1,
3075+
scale: 10,
30743076
cluster: "msTemperatureMeasurement",
3075-
attribute: {ID: 0x0008, type: Zcl.DataType.INT16},
3076-
description: "Adjust first temperature sensor",
3077+
attribute: {ID: 0x0210, type: Zcl.DataType.INT16},
3078+
description: "Adjust temperature sensor",
30773079
access: "STATE_SET",
30783080
}),
30793081
m.numeric({
@@ -3891,13 +3893,15 @@ export const definitions: DefinitionWithExtend[] = [
38913893
}),
38923894
m.numeric({
38933895
endpointNames: ["1"],
3894-
name: "raw_temperature_calibration",
3895-
unit: "raw unit",
3896-
valueMin: -8192,
3897-
valueMax: 8192,
3896+
name: "temperature_offset",
3897+
unit: "°C",
3898+
valueMin: -25,
3899+
valueMax: 25,
3900+
valueStep: 0.1,
3901+
scale: 10,
38983902
cluster: "msTemperatureMeasurement",
3899-
attribute: {ID: 0x0008, type: Zcl.DataType.INT16},
3900-
description: "Adjust first temperature sensor",
3903+
attribute: {ID: 0x0210, type: Zcl.DataType.INT16},
3904+
description: "Adjust temperature sensor",
39013905
access: "STATE_SET",
39023906
}),
39033907
m.pressure({
@@ -3949,13 +3953,15 @@ export const definitions: DefinitionWithExtend[] = [
39493953
}),
39503954
m.numeric({
39513955
endpointNames: ["2"],
3952-
name: "raw_temperature_calibration",
3953-
unit: "raw unit",
3954-
valueMin: -8192,
3955-
valueMax: 8192,
3956+
name: "temperature_offset",
3957+
unit: "°C",
3958+
valueMin: -25,
3959+
valueMax: 25,
3960+
valueStep: 0.1,
3961+
scale: 10,
39563962
cluster: "msTemperatureMeasurement",
3957-
attribute: {ID: 0x0008, type: Zcl.DataType.INT16},
3958-
description: "Adjust second temperature sensor",
3963+
attribute: {ID: 0x0210, type: Zcl.DataType.INT16},
3964+
description: "Adjust temperature sensor",
39593965
access: "STATE_SET",
39603966
}),
39613967
m.numeric({

0 commit comments

Comments
 (0)