Comments (6)
Hello!
Thanks for filing this. I'm working on trying to reproduce this using version 0.5.1
of the pylotoncycle
library, but so far I'm returning the object successfully with no changes. It appears this problem is with the pylotoncycle library vs the implementation we're using here.
Just to rule out some outliers do you have a very high number of rides on your profile?
To further rule out some issues you can try running the api_debug.py
script in the root of this repository and see if you are successfully return a long object string.
Thanks, I'll keep working things out,
Ed
from homeassistant-peloton-sensor.
I'm running hassio so struggling to run a standalone python script. Apparently it is nothing trivial. I do not have very many rides on my profile...
I did confirm my login info is still correct and works. I don't know what would have changed. I may try to use this library and debug on a different computer later that can actually run a py script.
from homeassistant-peloton-sensor.
Hello,
Please update to 0.5.2
either via HACS or a direct link to the release.
Please let me know if this fixes your issue.
Cheers!
from homeassistant-peloton-sensor.
New error at least!
peloton: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 358, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update await task File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/peloton/sensor.py", line 81, in update workouts = conn.GetRecentWorkouts(1) File "/usr/local/lib/python3.8/site-packages/pylotoncycle/pylotoncycle.py", line 111, in GetRecentWorkouts resp_summary = self.GetWorkoutSummaryById(workout_id) File "/usr/local/lib/python3.8/site-packages/pylotoncycle/pylotoncycle.py", line 132, in GetWorkoutSummaryById resp = self.GetUrl(url) File "/usr/local/lib/python3.8/site-packages/pylotoncycle/pylotoncycle.py", line 62, in GetUrl resp = self.s.get(url, timeout=10).json() File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 2 column 5 (char 5)
from homeassistant-peloton-sensor.
My mistake, please update to 0.5.3. The version bump made it to the name in the manifest file but not the requirements field.
from homeassistant-peloton-sensor.
Looks good now.
from homeassistant-peloton-sensor.
Related Issues (20)
- Not available in config flow HOT 5
- became unavailable HOT 3
- Heartrate HOT 6
- Add Workout Counter Sensor HOT 5
- Primary State HOT 3
- KeyError: 'ride' HOT 1
- Template not working properly HOT 13
- Values do not reflect actuals HOT 3
- This entity is no longer being provided by the peloton integration. HOT 8
- No power output? HOT 4
- During a Ride Countdown the primary binary_sensor goes unavailable HOT 2
- fail in version 2023.3 HOT 1
- Various Peloton HA Integration Errors in Log HOT 2
- Error after reinstall HOT 4
- Can't change password HOT 2
- Updating to 10.0: Index out of Range HOT 3
- End Time always = Start Time during workout HOT 2
- Entities have become unavailable HOT 1
- Peloton errors when starting workout HOT 4
- Current values/sensors don't drop to zero when not in use HOT 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 homeassistant-peloton-sensor.