From c8ef854d7b914d4d0131c32154870751efb3953f Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Thu, 2 Feb 2023 08:33:52 +0100 Subject: [PATCH 1/2] Fix yamllint issues --- esp32-example.yaml | 8 ++++---- esp8266-example.yaml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/esp32-example.yaml b/esp32-example.yaml index ce4b84d2..f9da8e71 100644 --- a/esp32-example.yaml +++ b/esp32-example.yaml @@ -299,7 +299,7 @@ select: "2": "2A" "10": "10A" "20": "20A" - "30": "30A" + "30": "30A" "40": "40A" "50": "50A" "60": "60A" @@ -312,7 +312,7 @@ select: - platform: pipsolar pipsolar_id: inverter0 - current_max_charging_current: + current_max_charging_current: name: ${name} current_max_charging_current_select optionsmap: "10A": "MCHGC010" @@ -330,7 +330,7 @@ select: statusmap: "10": "10A" "20": "20A" - "30": "30A" + "30": "30A" "40": "40A" "50": "50A" "60": "60A" @@ -339,4 +339,4 @@ select: "90": "90A" "100": "100A" "110": "110A" - "120": "120A" + "120": "120A" diff --git a/esp8266-example.yaml b/esp8266-example.yaml index 0b3c1a30..0d11df47 100644 --- a/esp8266-example.yaml +++ b/esp8266-example.yaml @@ -261,7 +261,7 @@ select: "100": "100" "001": "001" "000": "000" - + - platform: pipsolar pipsolar_id: inverter0 charger_source_priority: @@ -299,7 +299,7 @@ select: "2": "2A" "10": "10A" "20": "20A" - "30": "30A" + "30": "30A" "40": "40A" "50": "50A" "60": "60A" @@ -312,7 +312,7 @@ select: - platform: pipsolar pipsolar_id: inverter0 - current_max_charging_current: + current_max_charging_current: name: ${name} current_max_charging_current_select optionsmap: "10A": "MCHGC010" @@ -330,7 +330,7 @@ select: statusmap: "10": "10A" "20": "20A" - "30": "30A" + "30": "30A" "40": "40A" "50": "50A" "60": "60A" @@ -339,4 +339,4 @@ select: "90": "90A" "100": "100A" "110": "110A" - "120": "120A" + "120": "120A" From 02d293c889e96d10a28516f1d726ad14fc58ba65 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 26 Feb 2023 10:31:22 +0100 Subject: [PATCH 2/2] Support long QPIGS responses --- components/pipsolar/pipsolar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pipsolar/pipsolar.h b/components/pipsolar/pipsolar.h index ef8d83de..36e198a4 100644 --- a/components/pipsolar/pipsolar.h +++ b/components/pipsolar/pipsolar.h @@ -215,7 +215,7 @@ class Pipsolar : public uart::UARTDevice, public PollingComponent { protected: friend class PipsolarSelect; - static const size_t PIPSOLAR_READ_BUFFER_LENGTH = 110; // maximum supported answer length + static const size_t PIPSOLAR_READ_BUFFER_LENGTH = 130; // maximum supported answer length static const size_t COMMAND_QUEUE_LENGTH = 10; static const size_t COMMAND_TIMEOUT = 5000; uint32_t last_poll_ = 0;