syssi / esphome-pipsolar

ESPHome component to monitor and control a pipsolar inverter via RS232
Apache License 2.0
78 stars 35 forks source link

Fixed current_max_charging low 99A #126

Open tiimsvk opened 1 month ago

tiimsvk commented 1 month ago

This is fixed max charge current on grid see in file max communication protocol pdf:


3.6 MUCHGC< m n n ><cr>: Setting utility max charging current
Computer: MUCHGC<mnn><CRC><cr>
Device: (ACK<CRC><cr> if device accepts this command, otherwise, responds (NAK<CRC><
Setting value can be gain by QMUCHGCR command.
nn is max charging current, m
is parallel mac hine num ber
If the max AC charging current is greater than 99A, modify it to nnn

now I noticed that the commands current_max_ac_charging_current and current_max_charging_current are swapped: for current_max_ac_charging_current: MUCHGCmnn (=<99A) and MUCHGCmnnn (>99) current_max_charging_current: MCHGCmnnn