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

'sensor.yambms_yambms_1_battery_capacity_s' has "unknown state" #14

Open
vl-pub opened this issue Dec 24, 2024 · 14 comments
Open

'sensor.yambms_yambms_1_battery_capacity_s' has "unknown state" #14

vl-pub opened this issue Dec 24, 2024 · 14 comments

Comments

@vl-pub
Copy link

vl-pub commented Dec 24, 2024

hello

'sensor.yambms_yambms_1_battery_capacity_s' has "unknown" state"- see screenshot

I can't find such sensor in the board code (board - ESP32-S3)

Could you please check?

Thanks Val.
yambms_yambms_1_battery_capacity_s

@Sleeper85
Copy link
Owner

How many BMS are combined ?

@vl-pub
Copy link
Author

vl-pub commented Dec 24, 2024

Only one BMS is connected

@vl-pub
Copy link
Author

vl-pub commented Dec 24, 2024

Hmmm...
It's interesting....

After switching "Combine" control On/Off several times something updated and "Battery Capacity" displays correct value:

image

Also I've found following scenario:

  1. Set "Combine" to "ON"
  2. Disconnect LAN cable from BMS
  3. Reboot ESP board

image

  1. Connect LAN cable to BMS - correct values are displayed:

image

  1. Set "Combine" to "OFF" - "Battery SOH", "Battery capacity", "Capacity Remaining" sensors display zero values:

image

  1. Set "Combine" to "ON" - - correct values are displayed again:

image

  1. Set "Combine" to "OFF"

  2. Reboot ESP board

  3. Nothing changed:

image

@vl-pub
Copy link
Author

vl-pub commented Dec 24, 2024

Seems "Combine" must be set to "ON" value for one connected BMS
I'll check dashboard tomorrow morning one more time because of issue from topic has reproduced after some time after reboot.

thanks

@vl-pub
Copy link
Author

vl-pub commented Dec 25, 2024

hello
here is update.

after several hors and switching between YamBMS/Control/BMS tabs "Battery Capacity" sensor lost value and has status "Unknown" ( "Combine" is set to "ON"):

image

"Combine" value has been changed between "ON"/"OFF" sever times - nothing changed

ESP board has been restarted, and "Combine" value has been changed between "ON"/"OFF" sever times again -

"Battery Capacity" sensor became available and has correct value:

image

So, some problem is still exist.
Could you please check from your side?
I'm ready to provide needed information / perform required testing.

Thank you,
Val.

@Sleeper85
Copy link
Owner

Can you send me your YAML please?

@vl-pub
Copy link
Author

vl-pub commented Dec 25, 2024

What yaml? Dashboard Yaml?

@Sleeper85
Copy link
Owner

No, your main YAML.

@vl-pub
Copy link
Author

vl-pub commented Dec 25, 2024

attached

one-bms_JK-PB_RS485_mode2_MY.yaml.txt

@Sleeper85
Copy link
Owner

Seems "Combine" must be set to "ON" value for one connected BMS

An uncombined BMS is an unused BMS, all this is explained in the doc. You can uncombine it with the Combine switch and it can be uncombined automatically if the combination conditions are no longer respected.

Everything you have tested and shown in the picture is normal. If you have no combined BMS the values ​​are at 0% and the information is no longer sent on the CAN bus.

The only thing that is not normal is to have an Unknown value.

Installed Battery Capacity: this value is updated when a BMS is combined for the first time, then the value will remain unchanged if the BMS is uncombined, this corresponds to your total capacity regardless if the BMS are combined or not.

Battery Capacity: this is the sum of the battery capacity of all BMS currently combined. This value is updated when a BMS is combined or uncombined.

Remainnig Capacity: the remaining capacity of all BMS currently combined. This value is updated continuously.

@vl-pub
Copy link
Author

vl-pub commented Dec 26, 2024

thank you for answer!

I think this issue can be closed now or after some time.
I'll inform you if "The only thing that is not normal is to have an Unknown value." issue occurred again and I'll have clear scenario.

Thanks again!
Val

@Sleeper85
Copy link
Owner

Ok, I'll leave this issue open, keep me informed.

@vl-pub
Copy link
Author

vl-pub commented Jan 2, 2025

hello,
Happy New Year!

I've found scenario how to reproduce current issue:

  1. Unlpug LAN cable from BMS
  2. Reboot ESP board
  3. I got issue :
    image

It's needed to reboot ESP to get normal sensor state.

Thanks.
Val.

@Sleeper85
Copy link
Owner

FYI

esphome/esphome#7547

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