All Projects → edwork → homeassistant-peloton-sensor

edwork / homeassistant-peloton-sensor

Licence: Apache-2.0 License
A platform which allows you to get current and past ride data from Peloton into HomeAssistant

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to homeassistant-peloton-sensor

home-assistant-miele
Miele integration for Home assistant
Stars: ✭ 101 (+124.44%)
Mutual labels:  homeassistant, homeassistant-integration
wyzesense2mqtt
Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
Stars: ✭ 55 (+22.22%)
Mutual labels:  homeassistant, homeassistant-integration
thermal
Thermal Vision Sensor and Camera for Home Assistant
Stars: ✭ 43 (-4.44%)
Mutual labels:  homeassistant, homeassistant-integration
cookiecutter-homeassistant-custom-component
Cookiecutter template for Home Assistant custom component
Stars: ✭ 37 (-17.78%)
Mutual labels:  homeassistant, homeassistant-integration
ha-google-home
Home Assistant Google Home custom component
Stars: ✭ 285 (+533.33%)
Mutual labels:  homeassistant, homeassistant-integration
eufy security
Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
Stars: ✭ 242 (+437.78%)
Mutual labels:  homeassistant, homeassistant-integration
homeassistant-microsoft-todo
The integration allows you to create tasks in Microsoft To Do from Home Assistant.
Stars: ✭ 86 (+91.11%)
Mutual labels:  homeassistant, homeassistant-integration
hass-miwifi
MiWiFi for Home Assistant
Stars: ✭ 116 (+157.78%)
Mutual labels:  homeassistant, homeassistant-integration
ledfxrm
Custom Integration for Home Assistant to control a any (local/remote) LedFX-server - State: beta
Stars: ✭ 31 (-31.11%)
Mutual labels:  homeassistant, homeassistant-integration
landroid cloud
Landroid Cloud component for Home Assistant
Stars: ✭ 91 (+102.22%)
Mutual labels:  homeassistant, homeassistant-integration
ha-nicehash
NiceHash Home Assistant Integration
Stars: ✭ 20 (-55.56%)
Mutual labels:  homeassistant, homeassistant-integration
addon-example
Example - Home Assistant Community Add-ons
Stars: ✭ 73 (+62.22%)
Mutual labels:  homeassistant
hass-livebox-component
Livebox Component for Home assistant
Stars: ✭ 24 (-46.67%)
Mutual labels:  homeassistant
iocage-homeassistant
Home Assistant Core - TrueNAS CORE Community Plugin
Stars: ✭ 61 (+35.56%)
Mutual labels:  homeassistant
custom-component-store
📦 Manage your custom_components for Home Assistant
Stars: ✭ 12 (-73.33%)
Mutual labels:  homeassistant
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (+131.11%)
Mutual labels:  homeassistant
openrgb ha
OpenRGB integration for Home Assistant
Stars: ✭ 40 (-11.11%)
Mutual labels:  homeassistant
hhnl.HomeAssistantNet
No description or website provided.
Stars: ✭ 31 (-31.11%)
Mutual labels:  homeassistant
homeassistant-lightwave2
Lightwave RF custom component for Home Assistant. Requires generation 2 ("Link Plus") hub, but will control both generation 1 ("Connect Series") and generation 2 ("Smart Series") devices.
Stars: ✭ 31 (-31.11%)
Mutual labels:  homeassistant
amshan-homeassistant
Home Assistant integrasjon for strømmålere (AMS/HAN/P1). Integrasjonen støter både streaming (serieport/TCP-IP) og MQTT (Tibber Pulse, energyintelligence.se etc)
Stars: ✭ 39 (-13.33%)
Mutual labels:  homeassistant

HomeAssistant Peloton Sensor

hacs_badge HASSFEST and HACS Validation

Development & Community

This integration is developed and maintained by myself (edwork@) and a small group of contributors. We are not affiliated with Peloton. If you would like to show your support you're welcome to buy me a coffee!

"Buy Me A Coffee"

Please join our community discussion here on the HomeAssistant Forms.

Overview

HomeAssistant-Peloton-Sensor is an integration for HomeAssistant that exposes your latest or current Peloton Workout session as a sensor. This can be useful to toggle lights, fans, or scenes according to your workout.

  • Sensor state shows either Complete or In Progress
  • State Attributes include:
    • Workout Type
    • Ride Title
    • Device Type
    • Paused
    • Description
    • Start Time
    • End Time
    • FTP
    • Duration Min
    • Leaderboard Rank
    • Leaderboard Users
    • Output Kj
    • Distance Mi
    • Calories KCal
    • Heart Rate Average Bpm
    • Heart Rate Max Bpm
    • Resistance Average
    • Resistance Max
    • Speed Average Mph
    • Speed Max Mph
    • Speed Average Kph
    • Speed Max Kph
    • Cadence Average Rpm
    • Cadence Max Rpm
    • Power Average W
    • Power Max W
    • Total Work
    • Instructor
    • Workout Image
    • Heart Rate Bpm
    • Resistance

Preview

Under the Hood

This integration uses Pylotoncycle to poll Peloton's API. Keep in mind that polling won't be instant when creating Automations.

Integration Installation

Using HACS

Manually Copy Files

Download this repository and place the custom_components/peloton/ directory within a folder called custom_components/ in the root of your HomeAssistant Configuration directory. A forced reboot of HomeAssistant may be required in order for HomeAssistant to silence errors about missing dependancies (which will be installed upon reboot).

configuration.yaml (UI Based Config Coming Soon™)

A simple sensor configuration is required:

sensor:
  - platform: peloton
    username: thedude
    password: paSSw0rdz
  - platform: peloton
    username: thedudette
    password: paSSw0rdz

This will give you a sensor named sensor.peloton_USERNAME - allowing for multiple instances!

Additional Sensors via Templating

Sometimes it's easier to work with the state directly, which will retain state history via the recorder.

sensor:
  - platform: template
    sensors:
    power_output:
      friendly_name: "Power Output"
      value_template: >
        {{ state_attr('sensor.peloton_username', "Workout Type" ) }}

Use Cases

  • Automate lights and fans when you start or end a workout, or when your output exceeds a certain threshold.
  • Motovation - make HomeAssistant remind you to workout!
  • Export your ride stats to InfluxDB.

ToDo

  • Configuration via the UI (required for official HASS integration).
  • Expose more useful information by examining the entire JSON Object or other endpoints (PRs Welcome!)

Final Thoughts

Please feel free to critique the code as well as submit feature requests or additions! The Goal is to turn this into an award winning HomeAssistant Integration!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].