-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Make it also standalone like batmon-ha? #103
Comments
Well for having stand-alone setups (without Home Assistant) there are batmon-ha and ESPhome components. 😉 If you need a remote device to capture Bluetooth, have a look at the Bluetooth proxy. Not sure what your use case is, but I think it can be solved without a stand-alone variant. |
Unfortunately Batmon-ha does not support your ej-bms.py . I also tried bluetooth proxy without success. It will not show the ej bms. My use case is to have a system external (garage) which gather information from my ej bms and send it to HA in my home. I also testing with OpenMqttGateway. I 'see' the bms data with MQTT Explorer, but HA wants not to 'see' it. I will see what will guide me to a working solution. |
For the Bluetooth proxy, did you set bluetooth_proxy:
active: true in the configuration? If you provide me with debug logs of the integration and the proxy, I think we can resolve the issue. Also, a log from nRF connect would help. I guess that there might be an issue with the auto-detection not recognizing your BMS. I only had one example to test so there might be a bug. Thanks! |
The HACS BLE Battery Management System (BMS) does not show any log entry. In the home-assistant.log I see successful conenction of ble-proxy to HA. Only an entry that the proxy swithed off 10:10 . If you see the log of the device it scanned als later |
It looks like the proxy does not catch any signal. The nRF connect log is not really useful. I would need screenshots similar to these: #82 (comment) Regards, Patrick |
I attche the screenshots . The BMS is from a 12V (1024 Wh) Batterie from Electronix - about 2 years old . I saw that the UUIDs should match your ej_bms lib. Debug is always on :D I'm always 'debugging'. With the OpenMqttGateway I got
|
The log didn't really help me, because I can't see a single line from the integration, although there needs to be some evidence that it is running. Anyway, the screenshots helped. Can you try the version from the linked branch? (Follow the manual installation guideline to get it running.) I added your battery to be detected. If you experience issues, I really need a complete log. You can remove all lines not containing |
I will see to reinstall it. |
Which tells me that you tried to add a device, but none was detected. The version on the branch hopefully fixes that. 😃 |
So cool; now it is visible as T-12V-1544. Now I see traffic on the ble-proxy. On HA it says that no device or entities. Failed to setup. I assume it is caused by the log entries below? |
As mentioned, without a |
Now I have a lot of debug log entires ;) |
Ok and now we know the issue. It's a different protocol. How do you know it is an E&J BMS? The protocol is definitely not the one I have implemented. |
I was not sure about e&j- I only thought it with a lot of goole and comparing py files, that it could be. |
I think the fix was simple, just pushed an update, can you check if that works for you? A debug log would be great in any case, so I have some real world values for later to test against. |
It looks really good now. See the debug attached. I saw for some time the real parameter of the batterie. Now I have to see for the nice dashboard. Thanks a lot for you cool work. If you need more tests just write it here. |
I just pushed another commit. If you could update once again and then monitor if the values look reasonable / compare to the app it would be great. I'll merge it for the next release, which will then close the issue. If you experience issues afterwards, just raise a new issue. Thanks for supporting! |
Thanks again. Just installed the last commit (10 min ago). Values looks goos. I will compare them in the next days. |
Looking at the many interruptions, your connection seems to be rather bad or there is still an issue? Only logs could tell ... |
LT-12V-1544-041224.log |
Thanks, had a look. There are some answers in between that come from the BT module itself. I now filter them. The major issue is that for certain periods the BMS does not seem to answer while it suddenly comes back again. No clue why. I also checked these spike in the energy, this is what the BMS reports, so no problem with the integration. 😕 |
Thank you. I installed this update. What I see is that if the batterie is used, it looks good. Only if it is not charged or discharged it seems to have this issues. For me it is ok when I have the states while activ. I only have to take the last known value for further automations. |
Ok that makes sense. Most probably it turns off Bluetooth when there is no activity to safe energy. Nothing I can influence with the integration. So I guess for the moment we are done here. I will close this issue, when merging to the main branch for the next release. Just open a new issue in case you have some findings! Thanks! |
Checklist
Please describe the enhancement you would like to have.
It would be great to have it running like the batmon-ha standalone https://github.com/fl4p/batmon-ha/blob/master/doc/Standalone.md . Due to the fact that it seems that I have an ej_bms.py device, the adaption in the batmon-ha is a huge work for me as "read-only" programmer. If we can use it standalone it can be placed on a Pi Zero.
Additional context
No response
The text was updated successfully, but these errors were encountered: