Skip to content

Commit 1ea0d08

Browse files
committed
Update tests for internalTemperature configureReporting
1 parent 91c8252 commit 1ea0d08

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/lib/inovelli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,9 @@ const inovelliExtend = {
656656

657657
await endpoint
658658
.configureReporting(INOVELLI_CLUSTER_NAME, [
659-
{attribute: "internalTemperature", minimumReportInterval: 1800, maximumReportInterval: 3600, reportableChange: 5},
659+
{attribute: 32, minimumReportInterval: 1800, maximumReportInterval: 3600, reportableChange: 5},
660660
])
661-
.catch((e) => logger.warn(`Failed to configure internalTemperature reporting: ${e.message}`, "zhc:inovelli"));
661+
.catch((e) => logger.warning(`Failed to configure internalTemperature reporting: ${e.message}`, "zhc:inovelli"));
662662

663663
let endpoint2: Zh.Endpoint | undefined;
664664
if (splitValuesByEndpoint) {

test/inovelli.test.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,6 +2182,7 @@ describe("Inovelli VZM31-SN definition integration", () => {
21822182
configureReporting: {
21832183
1: [
21842184
{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]},
2185+
{cluster: "manuSpecificInovelli", items: [{attribute: 32, min: 1800, max: 3600, change: 5}]},
21852186
{cluster: "haElectricalMeasurement", items: [{attribute: "activePower", min: 15, max: 3600, change: 1}]},
21862187
{cluster: "seMetering", items: [{attribute: "currentSummDelivered", min: 15, max: 3600, change: 0}]},
21872188
],
@@ -2408,6 +2409,7 @@ describe("Inovelli VZM30-SN definition integration", () => {
24082409
configureReporting: {
24092410
1: [
24102411
{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]},
2412+
{cluster: "manuSpecificInovelli", items: [{attribute: 32, min: 1800, max: 3600, change: 5}]},
24112413
{
24122414
cluster: "haElectricalMeasurement",
24132415
items: [
@@ -2691,6 +2693,7 @@ describe("Inovelli VZM32-SN definition integration", () => {
26912693
configureReporting: {
26922694
1: [
26932695
{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]},
2696+
{cluster: "manuSpecificInovelli", items: [{attribute: 32, min: 1800, max: 3600, change: 5}]},
26942697
{
26952698
cluster: "haElectricalMeasurement",
26962699
items: [
@@ -2916,7 +2919,10 @@ describe("Inovelli VZM35-SN definition integration", () => {
29162919
writeCount: {1: 0, 2: 0},
29172920
// fan() extend also configures onOff reporting on EP1; no other reporting clusters for VZM35-SN.
29182921
configureReporting: {
2919-
1: [{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]}],
2922+
1: [
2923+
{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]},
2924+
{cluster: "manuSpecificInovelli", items: [{attribute: 32, min: 1800, max: 3600, change: 5}]},
2925+
],
29202926
2: [],
29212927
},
29222928
});
@@ -3036,7 +3042,10 @@ describe("Inovelli VZM36 definition integration", () => {
30363042
writeCount: {1: 0, 2: 0},
30373043
// light() configures onOff reporting on EP1; fan() configures onOff reporting on EP2.
30383044
configureReporting: {
3039-
1: [{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]}],
3045+
1: [
3046+
{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]},
3047+
{cluster: "manuSpecificInovelli", items: [{attribute: 32, min: 1800, max: 3600, change: 5}]},
3048+
],
30403049
2: [{cluster: "genOnOff", items: [{attribute: "onOff", min: 0, max: 3600, change: 0}]}],
30413050
},
30423051
});

0 commit comments

Comments
 (0)