From 7c895668fde39734e0faa61f29bd324e7673837f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= Date: Thu, 5 Dec 2024 20:02:46 +0100 Subject: [PATCH] fix: Amina S boolean values (#8440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- src/devices/amina.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/devices/amina.ts b/src/devices/amina.ts index 866b9bd9fe9c4..3c4ee977da1f2 100644 --- a/src/devices/amina.ts +++ b/src/devices/amina.ts @@ -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', }), @@ -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', }), @@ -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', }), @@ -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', }),