Skip to main content

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

Copy the tests/template.env* to _tests/.env* file and update the account information with your your SmartCocoon account information:

USERNAME="user@domain.com"
PASSWORD="mypassword"
FAN_ID="abc123"

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

Metadata

Release files for pysmartcocoon 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysmartcocoon 1.3.1
File Size Uploaded Provenance Actions
pysmartcocoon-1.3.1.tar.gz 12.9 kB Without provenance Details for pysmartcocoon-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysmartcocoon 1.3.1
File Interpreter ABI Platform Actions
pysmartcocoon-1.3.1-py3-none-any.whl Python 3 none any Details for pysmartcocoon-1.3.1-py3-none-any.whl

Total release size: 27.1 kB

Release files / pysmartcocoon-1.3.1.tar.gz

Download URL pysmartcocoon-1.3.1.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
10841b6ae39749765ca7dd621ec881c37e32715f872d9d3ae590f5f996233a90
BLAKE2b-256 checksum
How to use checksums
7dafd25497d3f3df3e37b45d9505760a98abd38b4f950e4a3af232a017728552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / pysmartcocoon-1.3.1-py3-none-any.whl

Download URL pysmartcocoon-1.3.1-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37e802c6cf6767de6bf640935ba594e89caed98ff09cc54e0a4400d8be8f9f82
BLAKE2b-256 checksum
How to use checksums
366c2848efc1ecf5094ae1857c0644de97af319157892551ff637f4a01536989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for pysmartcocoon 1.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page