Coder Social home page Coder Social logo

pyeight's Introduction

PyPI

Introduction

Python library to interface with the Eight Sleep API

API is currently undocumented. Usage is derived by capturing api calls made by the Eight Sleep android app.

Code is licensed under the MIT license.

Thanks

Special thanks to github user @alyc100 for making his SmartThings Eight Sleep code available.

Requirements

  • python >= 3.9
  • aiohttp >= 2.0
  • asyncio

Installation

pip install pyeight

Usage

Full usage example can be found in the HomeAssistant implementation of this library.

Basic Usage

from pyeight.eight import EightSleep

eight = EightSleep(user, pass, timezone, None)

await eight.start()

# Update mattress data, 1min interval recommended
await eight.update_device_data()

# Update user data, 5min interval recommended
await eight.update_user_data()

Properties

Library properties are well defined in both eight.py and user.py.

TODO

  • Improve dynamic presence detection through statistical analysis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.