-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
0.5.0 testing #29
Comments
Raspberry PI 3b+, HassOS 3.8, HASSio 0.104.3 - works out of the box HASSio (Arch Linux x86_64 + Docker) - works out of the box Mac mini, Debian Buster, Python virtualenv, HA 0.104.3 - works after granting permissions with:
Raspberry PI 3b+, Debian Buster, python virtualenv, HA 0.104.3 - works after granting permissions |
@Magalex2x14. Testing on Raspberry PI 3b+, Debian Buster, python virtualenv, HA 0.104.3. Small remark, you are probably aware of, but the documentations needs to be updated. It still shows the old config option hcitool_active and the new options are not explained yet and are not in the example configuration. I added both new options in my config and removed hcitool_active. After a restart of home assistant, I get the following message. Could be related to
|
It may be Python have insufficient rights to access hci interface.
|
Sorry, it didn't help, still have the same error. |
I 'll get to the computer - I 'll take a closer look. Yes, zero for hci0 interface, one for hci1, and so on. Try to remove this option from the configuration (default is 0). |
To check interface you can try this command: |
hci0 is correct, but also without this option in config, still the same error. I'm running home assistant in a venv, |
Seems that this approach works nice on hassio. Have such settings:
|
@Ernst79 I checked the rights on my server: ~$ sudo getcap `readlink -f \`which python3\``
/usr/bin/python3.7 = cap_net_admin,cap_net_raw+eip After resetting rights (it seems that I gave them out sometime during my experiments): ~$ sudo setcap '' `readlink -f \`which python3\``
~$ sudo getcap `readlink -f \`which python3\``
/usr/bin/python3.7 = I reproduced this problem:
The problem is solved by this:
It is important to note that after changing the rights, it is not necessary to restart, but to stop and start HA (since the python process does not exits upon restart). |
@aqualx This is a normal result with |
But there is option My goal is to receive all raw values from sensor and feed PID controller with them. CGG1 is very stable in values and has no drift in values. Unlike LYWSDCGQ that always drifts within +/-0.1°C |
Hmmm! You're right, it makes no sense to have two parameteters in this case. Now |
Averaging always take place (with |
@Magalex2x14 You pointed me in the right direction. When running the getcap command, I got the following.
So, it refers to python3.8, which I installed manually somewhere in the past. But my home assistant is running in a python3.7 virtual environment. Running the following command fixed it.
The sensor is running fine now. Thanks. |
I've installed 0.5.1-alfa (I was previously successfully using 0.4.2) and I didn't get any errors in the log (I ran the setcap command to give access) but the sensors were unavailable. I enabled debug logging for the component and got the following:
The |
@gadgetchnnel How much time has passed since the HA was launched? At the start of HA, sometimes a “strange” things happens (my vision :) |
@Magalex2x14 I think that the issue may be that Python 3.7 on my Raspberry Pi 3 B+ wasn't built with Bluetooth socket support:
I've reverted to 0.4.3 for now. |
Hmmm... Do you use your own build? I have not seen such a problem... What is your environment? (I ask, because I wonder if this could be a mass problem) And about the fact that Sorry for the scribble ) |
@Magalex2x14 Yes, I had to build Python 3.7 (back whe HA dropped support for Python 3.5) since my Pi 3 B+ is still on Raspbian Stretch and didn't have anything newer than Python 3.5 in its repository. I must have missed this in the build options. It's probably time to bite the bullet and finally try to update it to Buster and use the official Python version from the repository. |
@Magalex2x14 I've been testing the 0.5.2 release, but I noticed that the memory consumption seems to increase over time pretty quick. Memory usage has increased with 14% in about 12 h when running 0.5.2. Not sure if it is related to 0.5.2 (or even to mitemp_bt), but after going back to 0.4.3, it only increased 2% in 10 hours time. The sudden drops in memory use are restarts of home assistant. I will keep an eye on it the coming days. I'm not sure is can do any harm. I'm not even sure that it is related to mitemp_bt. But maybe you can also check it on your end. |
The memory usage of version 0.5 should be more, since it stores hcidump completely in memory (in 0.4 it was a file). |
Successfully discovered a problem with mem_top. |
Unfortunately, I can’t help you with that. It’s way out of my programming skills. Just a confirmation, I did install 0.5.2 again, same uptrend in memory came back, about 10% in 10 hours on a Raspberry 3B. |
Solution found. After about 15 hours of testing, mem_top shows no signs of leakage. I pushed 0.5.3-beta with fix. |
Tested for 3 hours now, no more increase in memory, so it seems to be fixed. Great work! |
I added homeassistant service metrics to my influx_db using telegraf (procstat), since the total memory usage on my server does not give an objective picture - now I’ll observe... I noticed that even with a disabled component there is a trend to increase the used memory. But it seems that this trend is decreasing over time. Time will tell... |
I also still have a very small upward trend in memory usage, but I don’t think it’s related to mitemp_bt. As far as I can remember, this has always been the case. |
OK, guys. More than a week has passed, and I see no reason to leave 0.5 in beta status. I suggest releasing it to the master, if you have no arguments against. |
Yes, go ahead. It’s running fine here for a week or so. |
I close, because v0.5 was released |
To discuss and test a new data collection method.
0.5.0 trying to close #9 #14 #23 #25
The text was updated successfully, but these errors were encountered: