-
Notifications
You must be signed in to change notification settings - Fork 43
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
installing directly in HA #24
Comments
I've removed libscrc dependency. |
well now iam dealing with missing dbus, probably gonna look at Issue #12 and google a bit. edit: i am indeed running into the same issues as @marcuslib did, now something about 'gi' - no idea what this is could go with the nested docker, but not sure if i like it. overhead seem a bit unnecessary. |
Were you able to resolve the issue? May be installing |
unfortunately no, terminal says dbus is installed, but wont find it when running the script. when i finally got dbus out of the way, its complaining about i dont know if the script some kind of raspberry exclusive, but couldnt make gatt work with ubuntu either |
I got it to work in the end by installing HA in docker and then had to install python within a VM. To run it i then had to create a service to run the python script, it will also check if its running and if not run it, as I did find it took a few times to run the script for it to pickup the BT-1. |
yes, i noticed. But i dont want to move HA back to docker. I used to use docker, but couldnt use addons, so i switched to native. I dont really understand why gatt is behaving the way it does. maybe we can dockerize the whole thing to make it easier? i tried something along the lines, but ran into the very same issues. plus you need some way to expose bt to the docker. I will most likely try a different ble interface and clone the renogy logic, dont know tbh |
update: since the SoC supplied by the bluetooth is not accurate, so there is no need to implement it in HA for me |
@Abudinka is there a guide on how to implement this in HA? I'm not an expert, but I was planning to install Ubuntu and then HA on my orange pi zero 3. |
sorry cant help here, as i said i dropped attempting renogy bluetooth communication since there is nothing to gain for me. if available i recommend using the home assistant raspberry pi image directly instead of using ubuntu. initially i used ubuntu and HA docker, but it has some drawbacks like no addon support. switched to raspberry pi 4B and used the HA image available in Raspberry Pi Imager. |
I'd still be interested in getting this to work directly in HA. I'll have a tinker with it and see if I can work it out. |
Ran into
And then I ran into
Which should be fixed by running
But that fails ... So then:
Another new failure. Log says to install
Finally! The And now I get
./facepalm
ANNNNND finally ...
Couple thoughts:
Now if only I could figure out how to discover my battery info without needing to dismantle my battery box to muck with the daisy chain. (Bluetooth logging while running the android app shows chatter in wireshark, but I'm not smart enough to decipher it :( ) Anyway - I hope this helps others with similar issues. |
Hm.. I think the And unfortunately the app does not show the device id. Currently the only way to get the individual Ids is to connect one device at a time. However you can try some usual suspects for batteries:
|
update: came back to the this project out of curiosity, made it work on ubuntu earlier today, still some prerequisites, but its working now, ill post my history, trying to highlight the most relevant commands, this is works "on my machine" stuff , look for <--
trying to get it run on HA OS now, different kind of beast cause it does not come with |
Were you able to progress this any further? There is someone on the HA forums who has made a custom integration for this but I couldn't get that working for me (https://github.com/markgdev/home-assistant_renogy) |
@milperks dependencies have changed a lot. Not sure if this issue still exists. |
I am running a Raspi4 B with native installation of HA.
It seems like there is no easy way to build libscrc on that machine. I was wondering if anybody could supply a binary for that or one could get rid of the dependency, so we could run this script on native HA?
The text was updated successfully, but these errors were encountered: