Comments (17)
Same error here since upgrade....help please
from home-assistant-google_fit.
Same as above, but this component is now holding up HA core restarts by a couple of minutes, possibly due to this issue.
from home-assistant-google_fit.
Same as above, but this component is now holding up HA core restarts by a couple of minutes, possibly due to this issue.
I haven't noticed it....but it is the same...it restarts periodically due to this topic
from home-assistant-google_fit.
Still having the problem. I have tested the API in the Google Developer Console and its works well. It is hapenning to me in the Weight and in the Heart Rate sensor. I am going to try adding new scopes...
from home-assistant-google_fit.
same here, I had heart rate, weight and height sensors failing over time. I also had random restarts of HA Core at least once a day, not entirely sure if it's related though. but since I've disabled. HA is now up for 24hours+
from home-assistant-google_fit.
Still having the problems. I have put in the code sleep 2 or 3 seconds if it could be related to timeouts...but still with problems with sensors...
from home-assistant-google_fit.
I haven't noticed it....but it is the same...it restarts periodically due to this topic
@daniperaleda Does your HASS still restart? If so, do you have a home-assistant.log.fault
file in your HASS folder by any chance?
from home-assistant-google_fit.
@syphernl I have one:
Current thread 0x0000007f38f309d8 (most recent call first):
File "/usr/local/lib/python3.10/ssl.py", line 1130 in read
File "/usr/local/lib/python3.10/ssl.py", line 1274 in recv_into
File "/usr/local/lib/python3.10/socket.py", line 705 in readinto
File "/usr/local/lib/python3.10/http/client.py", line 279 in _read_status
File "/usr/local/lib/python3.10/http/client.py", line 318 in begin
File "/usr/local/lib/python3.10/http/client.py", line 1375 in getresponse
File "/usr/local/lib/python3.10/site-packages/httplib2/__init__.py", line 1396 in _conn_request
File "/usr/local/lib/python3.10/site-packages/httplib2/__init__.py", line 1444 in _request
File "/usr/local/lib/python3.10/site-packages/httplib2/__init__.py", line 1724 in request
File "/usr/local/lib/python3.10/site-packages/google_auth_httplib2.py", line 218 in request
File "/usr/local/lib/python3.10/site-packages/googleapiclient/http.py", line 163 in _retry_request
File "/usr/local/lib/python3.10/site-packages/googleapiclient/http.py", line 835 in execute
File "/usr/local/lib/python3.10/site-packages/oauth2client/_helpers.py", line 133 in positional_wrapper
File "/config/custom_components/google_fit/sensor.py", line 332 in _get_dataset
File "/config/custom_components/google_fit/sensor.py", line 963 in update
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 190 in wrapper
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 190 in wrapper
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58 in run
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
File "/usr/local/lib/python3.10/threading.py", line 953 in run
File "/usr/local/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
File "/usr/local/lib/python3.10/threading.py", line 973 in _bootstrap
Right now it's running for 24+ hours without any restarts (with integration disabled). Never hat a restert before I updated to 2023.5 and google_fit sensors started failing
from home-assistant-google_fit.
I haven't noticed it....but it is the same...it restarts periodically due to this topic
@daniperaleda Does your HASS still restart? If so, do you have a
home-assistant.log.fault
file in your HASS folder by any chance?
It is a big file...but the last one that appears...(I have rebooted manually several times trying to fix the problem is this)
Thread 0x00007f5e15f7fb30 (most recent call first):
File "/usr/local/lib/python3.10/ssl.py", line 1130 in read
File "/usr/local/lib/python3.10/ssl.py", line 1274 in recv_into
File "/usr/local/lib/python3.10/socket.py", line 705 in readinto
File "/usr/local/lib/python3.10/http/client.py", line 279 in _read_status
File "/usr/local/lib/python3.10/http/client.py", line 318 in begin
File "/usr/local/lib/python3.10/http/client.py", line 1375 in getresponse
File "/usr/local/lib/python3.10/site-packages/httplib2/init.py", line 1396 in _conn_request
File "/usr/local/lib/python3.10/site-packages/httplib2/init.py", line 1444 in _request
File "/usr/local/lib/python3.10/site-packages/httplib2/init.py", line 1724 in request
File "/usr/local/lib/python3.10/site-packages/google_auth_httplib2.py", line 218 in request
File "/usr/local/lib/python3.10/site-packages/googleapiclient/http.py", line 163 in _retry_request
File "/usr/local/lib/python3.10/site-packages/googleapiclient/http.py", line 835 in execute
File "/usr/local/lib/python3.10/site-packages/oauth2client/_helpers.py", line 133 in positional_wrapper
File "/config/custom_components/google_fit/sensor.py", line 345 in _get_dataset
File "/config/custom_components/google_fit/sensor.py", line 1096 in update
File "/usr/src/homeassistant/homeassistant/util/init.py", line 190 in wrapper
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58 in run
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 83 in _worker
File "/usr/local/lib/python3.10/threading.py", line 953 in run
File "/usr/local/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
File "/usr/local/lib/python3.10/threading.py", line 973 in _bootstrap
from home-assistant-google_fit.
Anyway, right now what I get most is TIMEOUT...this is an example
Logger: homeassistant.helpers.entity
Source: custom_components/google_fitdpp/sensor.py:340
Integration: google_fit
First occurred: 13:49:16 (8 occurrences)
Last logged: 13:49:16
Update for sensor.google_fit_oxygen fails
Update for sensor.google_fit_blood_pressure_sys fails
Update for sensor.google_fit_blood_pressure_dia fails
Update for sensor.google_fit_nutrition fails
Update for sensor.google_fit_hydratation fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 554, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 784, in async_device_update
await coro
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/init.py", line 190, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/google_fit/sensor.py", line 678, in update
for point in self._get_dataset(self.DATA_SOURCE)["point"]:
File "/config/custom_components/google_fit/sensor.py", line 340, in _get_dataset
return self._client.users().dataSources().datasets().get(userId=API_USER_ID, dataSourceId=source, datasetId=dataset).execute()
File "/usr/local/lib/python3.10/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/googleapiclient/http.py", line 835, in execute
resp, content = _retry_request(
File "/usr/local/lib/python3.10/site-packages/googleapiclient/http.py", line 163, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/google_auth_httplib2.py", line 218, in request
response, content = self.http.request(
File "/usr/local/lib/python3.10/site-packages/httplib2/init.py", line 1724, in request
(response, content) = self._request(
File "/usr/local/lib/python3.10/site-packages/httplib2/init.py", line 1444, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/local/lib/python3.10/site-packages/httplib2/init.py", line 1396, in _conn_request
response = conn.getresponse()
File "/usr/local/lib/python3.10/http/client.py", line 1375, in getresponse
response.begin()
File "/usr/local/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.10/http/client.py", line 279, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.10/socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.10/ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.10/ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
from home-assistant-google_fit.
@daniperaleda @AlexKusnezov Which HASS versions do you run? Does this happen with HASS 2023.5.0
too? Or only with 2023.5.1
or 2023.5.2
?
For some reason my HASS kept on crashing ~hourly with a segmentation fault since I upgraded beyond the .0
version. After downgrading to .0
it now works fine (except every reboot a random number of sensors for this integration is missing).
from home-assistant-google_fit.
@syphernl it happened with 2023.5.0 , then I updated and then it happened with 2023.5.1, which I'm currently on
from home-assistant-google_fit.
I have it in 2023.5.2...but happened in all 2023.5.x
One comment...I have put time.sleep(1) in some parts of the code...and it is getting better...for example I am getting the heart rate sensor.
So it seems that there is limitations in the HA side for sockets or SLL calls
from home-assistant-google_fit.
Downgraded to 2023.4.6....and all the sensors worked fine....so for me is a limitation of the version 2023.5.x
from home-assistant-google_fit.
After upgrading my setup to Alpine 3.18 / Python 3.11 HASS started crashing on the 2023.5.0
version as well.
Once I disabled this custom integration it stopped crashing. It is now running fine on 2023.5.2
too without crashing.
ISTM something in this integration causes HASS to segfault 😢
from home-assistant-google_fit.
I am still in version 2023.4.6...decided to downgrade as causing inestability...so for sure is a problem with the version 2023.5.x...do you know that has changed something in the calls, sockets or SSL?
from home-assistant-google_fit.
After migratin to 2023.5.3...it works stable with theis Google Fit integration...is it ok for all you too?
from home-assistant-google_fit.
Related Issues (20)
- Error 400: invalid_request
- googleapiclient.errors.UnknownApiNameOrVersion: name: fitness version: v1 HOT 3
- Heart rate sensor unknown HOT 4
- Heart Sensor / Sleep Sensor HOT 18
- Authentication code expired, please restart Home-Assistant and try again HOT 4
- 'invalid_client' on restart HOT 21
- Instructions not working - Sensor key not provided HOT 3
- Long-term statistics for weight sensor
- google_fit: Error on device update!
- Any way to update data on Google Fit?
- AttributeError: 'NoneType' object has no attribute 'authorize' HOT 1
- Error 401: client_id and client_secret could not be retrieved HOT 1
- Problems defining the configuratin
- How to solve invalid response HOT 9
- Stop Working
- Error 400 HOT 3
- Error 401 HOT 2
- Error adding entities for domain sensor with platform google_fit && google_fit: Error on device update!
- Incompatibility after HA Core 2025.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-google_fit.