syssi / esphome-jk-bms

ESPHome component to monitor and control a Jikong Battery Management System (JK-BMS) via UART-TTL or BLE
Apache License 2.0
405 stars 134 forks source link

Multiple external_components_source #398

Closed adrusa closed 7 months ago

adrusa commented 7 months ago

Can I combine external_components_source? Can I for instance use a single ESP32 for both JBD and JK BSMes or JBD and Victron etc?

syssi commented 7 months ago

Yes. This is possible if you merge the relevant parts of both examples. What do you want to combine exactly?

adrusa commented 7 months ago

Yes. This is possible if you merge the relevant parts of both examples. What do you want to combine exactly?

Thanks for your response. I'm looking to combine your JK solar and ANT BMS external components into a single ESP32 using BLE.

syssi commented 7 months ago

BLE in both cases?

adrusa commented 7 months ago

BLE in both cases?

Yes.

syssi commented 7 months ago

I've attached a YAML how it should look like: esp32-jk-ant-combined.yaml.txt

adrusa commented 7 months ago

I've attached a YAML how it should look like: esp32-jk-ant-combined.yaml.txt

Thank you Sir, I will give it a spin and report back.

adrusa commented 7 months ago

I've attached a YAML how it should look like: esp32-jk-ant-combined.yaml.txt

This did not work. The ANT bms did not respond.

syssi commented 7 months ago

Did you update the MAC address? Does the BMS respond if the YAMLs aren't combined?

adrusa commented 7 months ago

Did you update the MAC address? Does the BMS respond if the YAMLs aren't combined?

Yes, I updated the mac address and yes, the ANT code worked when used alone.

syssi commented 7 months ago

Which ESPHome version do you use?

adrusa commented 7 months ago

The latest version.

syssi commented 7 months ago

Which version exactly?

adrusa commented 7 months ago

Which version exactly?

2023.11.5

syssi commented 7 months ago

Perfect. It's still strange that there are no multiple connections possible. In general it should work.