Skip to main content

Python library for accessing SensorLinx Device Data

Project description

pysensorlinx

pysensorlinx is a Python library for accessing Sensor Linx sensor data directly from their webservice. It supports logging into the service, retrieving sites list, and setting and getting device data used to control devices such as heat pumps, etc.

Features

  • Login to sensor linx account
  • retrieve the user profile
  • get the list of buildings
  • get the list of devices
  • get and set device parameters for a specific device

Install this repo

Clone the repository and install in editable mode:

git clone https://github.com/your_username/pysensorlinx.git
cd pysensorlinx

Create and activate a virtual environment

On Windows:

python -m venv .venv
.venv\Scripts\activate

On macOS/Linux:

python3 -m venv .venv
source .venv/bin/activate

Once the virtual environment is activated, install the package in editable mode:

pip install -e .

Install from pypi.org

pip install pysensorlinx

Usage

from pysensorlinx import Omnisense

async def main():
    sensorlinx = Sensorlinx()
    # Login with your credentials
    await sensorlinx.login("your_username", "your_password")
    

    
    # When done, close the session
    await sensorlinx.close()

import asyncio
asyncio.run(main())

Replace "your_username" and "your_password" with your actual Sensorlinx credentials. For more details, refer to the documentation or explore the source code.

Testing

Tests are written using pytest and pytest-asyncio. You can run tests as follows:

pip install -e .[tests]

pytest

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

pysensorlinx-0.1.4.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

pysensorlinx-0.1.4-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file pysensorlinx-0.1.4.tar.gz.

File metadata

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

File hashes

Hashes for pysensorlinx-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f00bf6277f3aea810fcfab10ad18b39890759e316875add7cbe1fccfcdea5ddb
MD5 e56f14b88907e5608f967617a01cc457
BLAKE2b-256 14014b9ea915a0c831a33c5344dcde94fb0d6616536d9831406a2a538a7cf0d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysensorlinx-0.1.4.tar.gz:

Publisher: publish_to_pypi.yml on sslivins/pysensorlinx

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

File details

Details for the file pysensorlinx-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pysensorlinx-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysensorlinx-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2a4580d7ededa516c7cde506395b787abf88f6f3f0c570e14f2e88595d29ea05
MD5 5f1789c686b4f9b90abac4a640afdaff
BLAKE2b-256 0398c2c4c1bbf0faaefdfaea0d67c9c58761f1f54b54bad10e70552a6a62241d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysensorlinx-0.1.4-py3-none-any.whl:

Publisher: publish_to_pypi.yml on sslivins/pysensorlinx

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