Skip to content

Commit 0bf2b2b

Browse files
committed
add start and end time
1 parent 1247e89 commit 0bf2b2b

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

src/devices/futurehome.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ interface FuturehomeHaApplianceControl {
1212
autoCharge: number;
1313
energyMeterStart: number;
1414
energyMeterNow: number;
15-
a1: number;
16-
a2: number;
15+
chargingSessionStartT: number;
16+
chargingSessionEndT: number;
1717
a5: number;
1818
a6: number;
1919
a7: number;
@@ -436,19 +436,17 @@ export const definitions: DefinitionWithExtend[] = [
436436
ID: Zcl.Clusters.haApplianceControl.ID,
437437
attributes: {
438438
// ID: 0xef00,
439-
a1: {
440-
name: "a1",
439+
chargingSessionStartT: {
440+
name: "chargingSessionStartT",
441441
ID: 0xef01,
442442
type: Zcl.DataType.UINT32,
443443
manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS,
444-
write: true,
445444
},
446-
a2: {
447-
name: "a2",
445+
chargingSessionEndT: {
446+
name: "chargingSessionEndT",
448447
ID: 0xef02,
449448
type: Zcl.DataType.UINT32,
450449
manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS,
451-
write: true,
452450
},
453451
energyMeterStart: {
454452
name: "energyMeterStart",
@@ -632,21 +630,21 @@ export const definitions: DefinitionWithExtend[] = [
632630
zigbeeCommandOptions: {manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS},
633631
}),
634632
m.numeric<"haApplianceControl", FuturehomeHaApplianceControl>({
635-
name: "a1",
633+
name: "start_t",
636634
cluster: "haApplianceControl",
637-
attribute: "a1",
638-
description: "a1",
635+
attribute: "chargingSessionStartT",
636+
description: "Start time of charging session. Time in seconds. Should be converted to date and time.",
639637
access: "STATE_GET",
640638
scale: 1.0,
641639
unit: "s",
642640
reporting: {min: 5, max: "1_HOUR", change: 1},
643641
zigbeeCommandOptions: {manufacturerCode: Zcl.ManufacturerCode.FUTUREHOME_AS},
644642
}),
645643
m.numeric<"haApplianceControl", FuturehomeHaApplianceControl>({
646-
name: "a2",
644+
name: "end_t",
647645
cluster: "haApplianceControl",
648-
attribute: "a2",
649-
description: "a2",
646+
attribute: "chargingSessionEndT",
647+
description: "End time of charging session. Time in seconds. Should be converted to date and time.",
650648
access: "STATE_GET",
651649
scale: 1.0,
652650
unit: "s",

0 commit comments

Comments
 (0)