Skip to main content

A Python SDK for interacting with Equation Connect devices.

Project description

EquationConnectSDK

This is an unofficial Python package to interact with and control Equation radiators from Leroy Merlin, that use the EquationConnect app. It is based on the equation-conect.js JavaScript library by AndreMiras, from where the API configuration parameters and endpoints have been extracted. The package can be easily installed through pip using the following command:

python3 -m pip install EquationConnectSDK

Once installed you just need to import it to start using it. Some examples can be found on the demo file.

API Reference

Here is the documentation for the different endpoints that are implemented in the SDK to retreive information from the devices, as well as to modify their properties such as power state or target temperature. Before being able to make calls to the Firebase API, one needs to login using the Firebase Auth REST API. From the response, the idToken and the localId will be needed for the future calls. Notice that the idToken needs to be included as a parameter and not as a header.

Here are all the parameters common to all the methods:

Parameter Type Description
DATABASE_URL string Required. This is the URL for the firebase database.
FIREBASE_TOKEN string Required. This is the idToken retreived after loging in.

Get user information

  <DATABASE_URL>users/<UID>.json?auth=<FIREBASE_TOKEN>
Parameter Type Description
UID string This is the localId from the login, it is the user id.

Get user installations

  <DATABASE_URL>installations2.json?auth=<FIREBASE_TOKEN>&orderBy="userid"&equalTo="<UID>"
Parameter Type Description
UID string This is the localId from the login, it is the user id.

Get zone for an installation

  <DATABASE_URL>installations2/<InstallationId>/zones/<ZoneId>.json?auth=<FIREBASE_TOKEN>
Parameter Type Description
InstallationId string This is an Installation ID, can be obtained when listing user installations.
ZoneId string This is a Zone ID, can be obtained when listing user installations. Needs to be a zone in the installation.

Get device properties

  <DATABASE_URL>devices/<DeviceId>.json?auth=<FIREBASE_TOKEN>
Parameter Type Description
DeviceId string This is an ID for a specific device, can be obtained when listing installations or for a specific zone.

Set device properties

This endpoint is the same for changing any property by specifying it in the request body, i.e. changing the temperature, changing preset or turning on/off the radiator.

  # Endpoint
  <DATABASE_URL>devices/<DeviceId>/data.json?auth=<FIREBASE_TOKEN>

  # For example to turn on, this would be the body:
  {
    "power": true
  }

Parameter Type Description
DeviceId string This is an ID for a specific device, can be obtained when listing installations or for a specific zone.

Acknowledgements

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

equationconnectsdk-0.3.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

equationconnectsdk-0.3.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file equationconnectsdk-0.3.1.tar.gz.

File metadata

  • Download URL: equationconnectsdk-0.3.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for equationconnectsdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d41c323fdb25bdb595db4deb2d974e43652fd2d738fec90f0b0eef3206a407d8
MD5 4ef45ab38d6daad807f06cb7d11ce905
BLAKE2b-256 e71679d09eb3260f471d74080f58b2c7649d8f3916be7e0eaf4fcb1361f636a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for equationconnectsdk-0.3.1.tar.gz:

Publisher: publish-to-pypi-and-testpypi.yml on carlesibanez/Equation-Connect-SDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file equationconnectsdk-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for equationconnectsdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc08f633c8920a68327e80040a5de988532f088d406bbed46831b218fe281e41
MD5 d3498a0f058899ac2475be5a30fb7af7
BLAKE2b-256 22597bd2fc98f98b12f56fc0d39d38092dcb9954a8428972d583a9d22882b48d

See more details on using hashes here.

Provenance

The following attestation bundles were made for equationconnectsdk-0.3.1-py3-none-any.whl:

Publisher: publish-to-pypi-and-testpypi.yml on carlesibanez/Equation-Connect-SDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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