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.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

pysmartcocoon-0.5.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysmartcocoon-0.5.1.tar.gz
  • Upload date:
  • Size: 12.6 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.1.tar.gz
Algorithm Hash digest
SHA256 0272d575b6aebd7c37adf72d00113c036277080cb3e68a0a8e178a43ec96b2b4
MD5 907adbf3a72d26f9bfca1efbb6a5e07e
BLAKE2b-256 3810e3587ef296f7c84db35a8a9bae90ce7ebdc812353edb76a55008e7d96efd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysmartcocoon-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 caaae3977ec37d5525427ddfcbd77ecd49dd6f37f403552f52a588567f991a9a
MD5 c18ca4b88e064c4951821e8fbd6bb505
BLAKE2b-256 e24d49dbc2c65bd69e5de5f009500d680358f5f82cc7605b99d5e51572589d67

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