Skip to content

Commit

Permalink
fix: Amina S boolean values (#8440)
Browse files Browse the repository at this point in the history
Signed-off-by: Bjørn Mork <bjorn@mork.no>
  • Loading branch information
bmork authored Dec 5, 2024
1 parent 764c7a7 commit 7c89566
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/devices/amina.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ const definitions: DefinitionWithExtend[] = [
cluster: 'aminaControlCluster',
attribute: 'evConnected',
description: 'An EV is connected to the charger',
valueOn: ['true', 1],
valueOff: ['false', 0],
valueOn: [true, 1],
valueOff: [false, 0],
access: 'STATE',
}),

Expand All @@ -225,8 +225,8 @@ const definitions: DefinitionWithExtend[] = [
cluster: 'aminaControlCluster',
attribute: 'charging',
description: 'Power is being delivered to the EV',
valueOn: ['true', 1],
valueOff: ['false', 0],
valueOn: [true, 1],
valueOff: [false, 0],
access: 'STATE',
}),

Expand All @@ -235,8 +235,8 @@ const definitions: DefinitionWithExtend[] = [
cluster: 'aminaControlCluster',
attribute: 'derated',
description: 'Charging derated due to high temperature',
valueOn: ['true', 1],
valueOff: ['false', 0],
valueOn: [true, 1],
valueOff: [false, 0],
access: 'STATE',
}),

Expand All @@ -245,8 +245,8 @@ const definitions: DefinitionWithExtend[] = [
cluster: 'aminaControlCluster',
attribute: 'alarmActive',
description: 'An active alarm is present',
valueOn: ['true', 1],
valueOff: ['false', 0],
valueOn: [true, 1],
valueOff: [false, 0],
access: 'STATE',
}),

Expand Down

0 comments on commit 7c89566

Please sign in to comment.