Skip to content

Commit

Permalink
Merge branch 'pip8048' of github.com:gianfrdp/esphome-pipsolar into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfrdp committed Oct 17, 2023
2 parents 3021e5a + 02d293c commit 2d01c7c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions components/pipsolar/pipsolar.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ class Pipsolar : public uart::UARTDevice, public PollingComponent {

protected:
friend class PipsolarSelect;
static const size_t PIPSOLAR_READ_BUFFER_LENGTH = 160; // maximum supported answer length
static const size_t COMMAND_QUEUE_LENGTH = 20;
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;
void add_polling_command_(const char *command, ENUMPollingCommand polling_command);
Expand Down
8 changes: 4 additions & 4 deletions esp32-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ select:
"2": "2A"
"10": "10A"
"20": "20A"
"30": "30A"
"30": "30A"
"40": "40A"
"50": "50A"
"60": "60A"
Expand All @@ -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"
Expand All @@ -330,7 +330,7 @@ select:
statusmap:
"10": "10A"
"20": "20A"
"30": "30A"
"30": "30A"
"40": "40A"
"50": "50A"
"60": "60A"
Expand All @@ -339,4 +339,4 @@ select:
"90": "90A"
"100": "100A"
"110": "110A"
"120": "120A"
"120": "120A"
10 changes: 5 additions & 5 deletions esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ select:
"100": "100"
"001": "001"
"000": "000"

- platform: pipsolar
pipsolar_id: inverter0
charger_source_priority:
Expand Down Expand Up @@ -299,7 +299,7 @@ select:
"2": "2A"
"10": "10A"
"20": "20A"
"30": "30A"
"30": "30A"
"40": "40A"
"50": "50A"
"60": "60A"
Expand All @@ -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"
Expand All @@ -330,7 +330,7 @@ select:
statusmap:
"10": "10A"
"20": "20A"
"30": "30A"
"30": "30A"
"40": "40A"
"50": "50A"
"60": "60A"
Expand All @@ -339,4 +339,4 @@ select:
"90": "90A"
"100": "100A"
"110": "110A"
"120": "120A"
"120": "120A"

0 comments on commit 2d01c7c

Please sign in to comment.