Skip to main content

Library built for Home Assistant to integrate with the SmartCocoon

Project description

SmartCocoon Python API

GitHub Release GitHub Activity License

pre-commit Black

Project Maintenance BuyMeCoffee

logo

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

Uploaded Source

Built Distribution

pysmartcocoon-0.8.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysmartcocoon-0.8.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for pysmartcocoon-0.8.1.tar.gz
Algorithm Hash digest
SHA256 8db3a220987301d66e6df0eb2c3fe5d417a25df6a20c05cec614c752f31c2dc0
MD5 b5b26fea991252c4a6950642457202c4
BLAKE2b-256 030a6656b869b010e3e9b0425982f49d6dde50f100e7853d0d3c661c048db13a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysmartcocoon-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5235e871c426e5226e59f5da7e2c373e3335850e188f9c3b94ff2877ddcdc572
MD5 35612ddbcc50250d896db5282e285395
BLAKE2b-256 9ed93b42ad14519e128a0e68901ae9223a9ce54128b26ee13d7cdf320e8f81db

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