Skip to content

Commit 9c4595d

Browse files
committed
add attribute for status
1 parent 31a2447 commit 9c4595d

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

src/devices/futurehome.ts

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface FuturehomeHaApplianceControl {
1818
a6: number;
1919
a7: number;
2020
a8: number;
21-
a9: number;
21+
status: number;
2222
aa: number;
2323
ab: number;
2424
a10: number;
@@ -490,8 +490,8 @@ export const definitions: DefinitionWithExtend[] = [
490490
manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS,
491491
write: true,
492492
},
493-
a9: {
494-
name: "a9",
493+
status: {
494+
name: "status",
495495
ID: 0xef09,
496496
type: Zcl.DataType.UINT8,
497497
manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS,
@@ -616,6 +616,21 @@ export const definitions: DefinitionWithExtend[] = [
616616
reporting: {min: 5, max: "1_HOUR", change: 1},
617617
zigbeeCommandOptions: {manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS},
618618
}),
619+
m.enumLookup<"haApplianceControl", FuturehomeHaApplianceControl>({
620+
name: "status",
621+
cluster: "haApplianceControl",
622+
attribute: "status",
623+
description: "Status - not reportable",
624+
lookup: {
625+
plugged_out: 0x00,
626+
plugged_in_charging: 0x02,
627+
plugged_in_paused: 0x03,
628+
plugged_in: 0x04,
629+
stopped: 0x05,
630+
},
631+
access: "STATE_GET",
632+
zigbeeCommandOptions: {manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS},
633+
}),
619634
m.numeric<"haApplianceControl", FuturehomeHaApplianceControl>({
620635
name: "a1",
621636
cluster: "haApplianceControl",
@@ -670,14 +685,6 @@ export const definitions: DefinitionWithExtend[] = [
670685
access: "STATE_GET",
671686
zigbeeCommandOptions: {manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS},
672687
}),
673-
m.numeric<"haApplianceControl", FuturehomeHaApplianceControl>({
674-
name: "a9",
675-
cluster: "haApplianceControl",
676-
attribute: "a9",
677-
description: "a9 - not reportable",
678-
access: "STATE_GET",
679-
zigbeeCommandOptions: {manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS},
680-
}),
681688
m.numeric<"haApplianceControl", FuturehomeHaApplianceControl>({
682689
name: "aa",
683690
cluster: "haApplianceControl",

0 commit comments

Comments
 (0)