Skip to main content

A simple API to controll SmartCocoon fans from Python.

Project description

SmartCocoon API

This Python library allows you to control SmartCocoon fans.

Status

This is not an official API from SmartCocoon and is in the the very early stages of developement.

This API is built for the main purpose of integrating into Home Assistant but can be used independently.

Supported devices

  • SmartCocoon Smart Vents

Features

The following feature are supported:

  • Connect to the SmartCocoon cloud service
  • Obtain configuration data as it has been set up through the SmartCocoon mobile app
  • Ability to control fans
    • Turn on/off
    • Set speed
    • Set Auto mode
    • Set Eco mode

Examples

You can refer to the tests/test_integration.py to see an example of integration with the SmartCocoon API

Work to do

  • The fans are using MQTT but this is not being leveraged yet
  • Discovery has not been implemented, not sure if this is possible
  • Fan status will currently require polling if the fan is changed directly in the app

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysmartcocoon-0.5.4.tar.gz (13.1 kB view details)

Uploaded Source

Built Distributions

pysmartcocoon-0.5.4-py3.10.egg (34.6 kB view details)

Uploaded Source

pysmartcocoon-0.5.4-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file pysmartcocoon-0.5.4.tar.gz.

File metadata

  • Download URL: pysmartcocoon-0.5.4.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pysmartcocoon-0.5.4.tar.gz
Algorithm Hash digest
SHA256 2a07478cf720eafd8a8aa503da645344f111ad09e3812da50d9e0e791f262e7c
MD5 4cc7f7aa6da5876a0114580c63d59917
BLAKE2b-256 f9dc5f405498db6fe48395dd01eb1f9eaa80a7daf1e1e127ebd68dad5594eea3

See more details on using hashes here.

File details

Details for the file pysmartcocoon-0.5.4-py3.10.egg.

File metadata

  • Download URL: pysmartcocoon-0.5.4-py3.10.egg
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pysmartcocoon-0.5.4-py3.10.egg
Algorithm Hash digest
SHA256 cc5529b9e51cef49bc0f7535d53b6cb8fca93d9f2aa9959c8e8a745dc1696e25
MD5 dfc7d4242a34a8eebc81005a3fcc0e07
BLAKE2b-256 46592eacbeb997bef425829ba8f0f7fafaa2852bfde6e77b693f8d849d8b083f

See more details on using hashes here.

File details

Details for the file pysmartcocoon-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: pysmartcocoon-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pysmartcocoon-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e8fb3fefc4702102fe5bd5e293cd17ea7afa653ca7a0a8cf3933fca29465281b
MD5 5b63a72b38b890bf057293283e335389
BLAKE2b-256 429572daeacdceb067e90cf9203c17f3e688c25ad70b5bdad6c74e3fe41b01d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page