From cfb6f64c87604603a3329acdd6d70b408c897045 Mon Sep 17 00:00:00 2001 From: David Rapan Date: Wed, 25 Dec 2024 17:57:59 +0100 Subject: [PATCH] fix: Number of MPPTs and Phases for newer firmware versions --- .../solarman/inverter_definitions/deye_hybrid.yaml | 8 ++++++-- .../solarman/inverter_definitions/deye_micro.yaml | 8 ++++++-- .../solarman/inverter_definitions/deye_p3.yaml | 8 ++++++-- .../solarman/inverter_definitions/deye_string.yaml | 8 ++++++-- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/custom_components/solarman/inverter_definitions/deye_hybrid.yaml b/custom_components/solarman/inverter_definitions/deye_hybrid.yaml index 5ece9dc..6b5fd2b 100644 --- a/custom_components/solarman/inverter_definitions/deye_hybrid.yaml +++ b/custom_components/solarman/inverter_definitions/deye_hybrid.yaml @@ -128,7 +128,9 @@ parameters: registers: [0x0012] range: min: 257 - max: 2051 + validation: + max: 12 + default: 2 - name: "Device Phases" attribute: @@ -137,7 +139,9 @@ parameters: registers: [0x0012] range: min: 257 - max: 2051 + validation: + max: 3 + default: 3 - group: Control update_interval: 5 diff --git a/custom_components/solarman/inverter_definitions/deye_micro.yaml b/custom_components/solarman/inverter_definitions/deye_micro.yaml index 1b46e05..5eeaf82 100644 --- a/custom_components/solarman/inverter_definitions/deye_micro.yaml +++ b/custom_components/solarman/inverter_definitions/deye_micro.yaml @@ -126,7 +126,9 @@ parameters: registers: [0x0012] range: min: 257 - max: 2051 + validation: + max: 12 + default: 2 - name: "Device Phases" attribute: @@ -135,7 +137,9 @@ parameters: registers: [0x0012] range: min: 257 - max: 2051 + validation: + max: 3 + default: 3 - group: Control items: diff --git a/custom_components/solarman/inverter_definitions/deye_p3.yaml b/custom_components/solarman/inverter_definitions/deye_p3.yaml index f2e4d9b..159ebba 100644 --- a/custom_components/solarman/inverter_definitions/deye_p3.yaml +++ b/custom_components/solarman/inverter_definitions/deye_p3.yaml @@ -127,7 +127,9 @@ parameters: registers: [0x0016] range: min: 257 - max: 2051 + validation: + max: 12 + default: 2 - name: "Device Phases" attribute: @@ -136,7 +138,9 @@ parameters: registers: [0x0016] range: min: 257 - max: 2051 + validation: + max: 3 + default: 3 - name: Device Self-check attribute: diff --git a/custom_components/solarman/inverter_definitions/deye_string.yaml b/custom_components/solarman/inverter_definitions/deye_string.yaml index b55c374..504a951 100644 --- a/custom_components/solarman/inverter_definitions/deye_string.yaml +++ b/custom_components/solarman/inverter_definitions/deye_string.yaml @@ -128,7 +128,9 @@ parameters: registers: [0x0012] range: min: 257 - max: 2051 + validation: + max: 12 + default: 2 - name: "Device Phases" attribute: @@ -137,7 +139,9 @@ parameters: registers: [0x0012] range: min: 257 - max: 2051 + validation: + max: 3 + default: 3 - group: Control items: