From b39050ec237e4a8da28f9c20b3784827ab27d6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= Date: Wed, 4 Dec 2024 23:24:06 +0100 Subject: [PATCH] fix: Amina S boolean values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quoting causes non-working home assistant sensors, expecting string payloads instead of booleans. 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', }),