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

Bms monitored with batmon and ha #93

Open
erlendoyen opened this issue Jan 27, 2025 · 5 comments
Open

Bms monitored with batmon and ha #93

erlendoyen opened this issue Jan 27, 2025 · 5 comments

Comments

@erlendoyen
Copy link

erlendoyen commented Jan 27, 2025

Hi

I am already monitoring g 2 jbd bms's with batmon on ha via Bluetooth.

Batmon is already using mqtt to publish data.
Is there anyway of getting this application to use data published by batmon to mqtt already running on HA, or use HA as a BT proxy to retrieve data from the bms's.
or retrieve data via esphome-yambms

End goal is to feed data from the 2 bms's at the same time as feeding data via can to a epever up hi inverter.

@ai-republic
Copy link
Owner

Hi @erlendoyen,
first of all, how do you publish the Batmon data to your MQTT broker? Is that via bluetooth? What MQTT broker are you using?
In theory I could connect to the existing MQTT broker topic and retrieve the data there. Another option would be to connect your BMS to a RPI via CAN, RS485 or ModBus and then read that data and publish it to the MQTT from which HA can receive the data. This way is more or less implemented (needs only the exact Json message that needs to be sent to HA).

@erlendoyen
Copy link
Author

erlendoyen commented Jan 29, 2025

i use a rbpi with ha and batmon>>bluetooth to the bms'es
and mqtt is running on the same rbpi in ha

@ai-republic
Copy link
Owner

Is the Batmon connected via WLAN / RJ45 or via bluetooth to your RPi and publishes data to the MQTT broker on your PI?
And what MQTT broker, i.e. Mosquitto(?) do you have installed on your RPi?
In theory I could connect to the existing MQTT broker topic and retrieve the data there. I could create a virtual MQTT port that would need the broker IP, credentials and topic so that I can read the battery data from there.

@erlendoyen
Copy link
Author

erlendoyen commented Jan 29, 2025

batmon is running on the rpi running ha, Mosquitto mqtt is also running on the same rpi running ha.
and batmon is connected to the bms directly from the rpi running ha via bluetooth.
i am running HA core (os)

@erlendoyen
Copy link
Author

Is the Batmon connected via WLAN / RJ45 or via bluetooth to your RPi and publishes data to the MQTT broker on your PI? And what MQTT broker, i.e. Mosquitto(?) do you have installed on your RPi? In theory I could connect to the existing MQTT broker topic and retrieve the data there. I could create a virtual MQTT port that would need the broker IP, credentials and topic so that I can read the battery data from there.

It would be awesome to be able to use the existing data already collecting via batmon

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