Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot flash with select battery redischarge, recharge, float #144

Open
duymelody9x opened this issue Aug 22, 2024 · 9 comments
Open

Cannot flash with select battery redischarge, recharge, float #144

duymelody9x opened this issue Aug 22, 2024 · 9 comments

Comments

@duymelody9x
Copy link

duymelody9x commented Aug 22, 2024

image
Hi Syssi, I can't add other customizations of select and intergal sensor.If I code like this, I can flash it to ESP but it doesn't work perfectly in HASS. Is there any way to add other customizations? I also want to add a KWh sensor.

    pipsolar_id: inverter0
    current_max_ac_charging_current:
      name: ${name} Setting_battery_float_charging_voltage_select
      optionsmap:
        "54.5V": "PBFT54.5"
        "54.6V": "PBFT54.6"
        "54.7V": "PBFT54.7"
        "54.8V": "PBFT54.8"
        "54.9V": "PBFT54.9"
        "55.0V": "PBFT55.0"
      statusmap:
        "54.5": "54.5V"
        "54.6": "54.6V"
        "54.7": "54.7V"
        "54.8": "54.8V"
        "54.9": "54.9V"
        "55.0": "55.0V"

with such code i can still control the inverter but they always show unknown and do not show their current value
image

@duymelody9x
Copy link
Author

image
I tried renaming it the same as pip8048 but it still can't work

@duymelody9x duymelody9x changed the title More select option and intergal sensor Cannot flash with select battery redischarge, recharge, float Aug 27, 2024
@syssi
Copy link
Owner

syssi commented Aug 27, 2024

This isn't supported by ESPHome. Unsupported entities / new feature must be implemented at the external component first before they are available/usable at the YAML configuration. You cannot introduce new select entities by extending the YAML only.

@duymelody9x
Copy link
Author

So is there any way to do that or do I still have to declare it with an existing variable like "current_max_ac_charging_current"?

@syssi
Copy link
Owner

syssi commented Aug 27, 2024

The current_max_ac_charging_current is a key wired to some code of the external component. I cannot recommend to abuse foreign keys. Could you describe the new feature in words and we add the new entity to the component without any workarounds?

@duymelody9x
Copy link
Author

duymelody9x commented Aug 27, 2024

so can you help me add the key
battery_float_voltage - this key helps me set the float voltage mode of the inverter. its protocol command is PBFTnn.n
battery_redischarge_voltage - this key sets the voltage number the inverter will use the battery. protocol is PBDVnn.n
battery_recharge_voltage - this key sets the voltage number the inverter will use from the grid. protocol is PBCVnn.n
thank you very much for your attention to my problems.

@syssi
Copy link
Owner

syssi commented Aug 28, 2024

3.17 PBFT<nn.n><cr>: Setting battery float charging voltage
Computer: PBFT <nn.n><CRC><cr>
Inverter: (ACK<CRC><cr> if Inverter accepts this command, otherwise, responds (NAK<CRC><cr>
nn.n: 48.0V ~ 58.4V for 48V unit
012,013 model: 48.0V~64.0V

3.9 PBDV<nn.n><cr>: Set battery re-discharge voltage
Computer: PBDV<nn.n><CRC><cr>
Inverter: (ACK<CRC><cr> if Inverter accepts this command, otherwise, responds
(NAK<CRC><cr>
12V unit: 00.0V12V/12.3V/12.5V/12.8V/13V/13.3V/13.5V/13.8V/14V/14.3V/14.5
24V unit: 00.0V/24V/24.5V/25V/25.5V/26V/26.5V/27V/27.5V/28V/28.5V/29V
48V unit: 00.0V48V/49V/50V/51V/52V/53V/54V/55V/56V/57V/58V
00.0V means battery is full(charging in float mode).

3.8 PBCV<nn.n><cr>: Set battery re-charge voltage
Computer: PBCV<nn.n><CRC><cr>
Inverter: (ACK<CRC><cr> if Inverter accepts this command, otherwise, responds
(NAK<CRC><cr>
12V unit: 11V/11.3V/11.5V/11.8V/12V/12.3V/12.5V/12.8V
24V unit: 22V/22.5V/23V/23.5V/24V/24.5V/25V/25.5V
48V unit: 44V/45V/46V/47V/48V/49V/50V/51V

@syssi
Copy link
Owner

syssi commented Aug 28, 2024

**QPIRI**

...

K KK.K Battery re-charge voltage K is an Integer ranging from 0 to 9.
The units is V

...

N LL.L Battery float voltage L is an Integer ranging from 0 to 9.
The units is V.

...

V VV.V Battery re-discharge voltage
V is an Integer ranging from 0 to 9.
The unit is V

@duymelody9x
Copy link
Author

Can I run yaml with those 3 keys now?

@syssi
Copy link
Owner

syssi commented Aug 28, 2024

No. I'm just collecting details for the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants