Skip to main content

Python library for controlling Saleryd HRV system

Project description

PyPI-Server Monthly Downloads Project generated with PyScaffold

pysaleryd

Python library for controlling Saleryd HRV system

Python library for controlling Saleryd HRV system using the built in websocket server used by Saleryd HRV Homeassistant integration https://github.com/bj00rn/ha-saleryd-ftx

Maintains a reconnecting websocket to the system.

Supported devices

Model

Supported control system versions

Unsupported control system versions

LOKE LS-01/LT-01

4.1.5

<4.1.5

LOKE LS-02/LT-02

unknown support

unknown support

Example usage

import asyncio

from pysaleryd.client import Client
from pysaleryd.const import DataKey

def handle_message(data: dict):
    # must be safe to call from event loop
    print("got data: ", data)

def handle_state_change(state):
   # must be safe to call from event loop
   print("new state: ", state)

async def main():
    update_interval = 10
    with Client(HOST, update_interval=update_interval) as hrv_client:
        hrv_client.add_message_handler(handle_message)
        hrv_client.add_state_change_handler(handle_state_change)
        await asyncio.sleep(update_interval +1 ) # wait around a bit for data
        await hrv_client.send_command(DataKey.FIREPLACE_MODE, 1) # turn on fireplace mode

loop = asyncio.new_event_loop()
loop.run_until_complete(main())

Troubleshooting

  • Confirm system is connected and UI is reachable on the local network. Follow steps in the manual.

  • Confirm websocket port by connecting to the UI using a browser and take note of websocket port using debug console in browser. 3001 is probably default

  • The system HRV system can only handle a few connected clients. Shut down any additional clients/browsers sessions and try again.

Disclaimer

Use at own risk.

This project is in no way affiliated with the manufacturer.

All product names, logos, and brands are property of their respective owners. All company, product and service names used are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.

Note

This project has been set up using PyScaffold 4.4. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

pysaleryd-7.1.0.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

pysaleryd-7.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pysaleryd-7.1.0.tar.gz.

File metadata

  • Download URL: pysaleryd-7.1.0.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pysaleryd-7.1.0.tar.gz
Algorithm Hash digest
SHA256 ae786a69fd340a3d72799da1414ec44953426f80a4ed96ac645de76f23be9c5c
MD5 160ddd9298d572f320de0822719aaa53
BLAKE2b-256 833778da2f9663e0f8106dd61f517f0444b573a67cfa0c93c93760b83983e34e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysaleryd-7.1.0.tar.gz:

Publisher: publish.yml on bj00rn/pysaleryd

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

File details

Details for the file pysaleryd-7.1.0-py3-none-any.whl.

File metadata

  • Download URL: pysaleryd-7.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pysaleryd-7.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b27b8fddee7ac1e3b48653a663108d8640e33b6c01c878131220dcc78e2282
MD5 44dbd7687a05cba6314c9acb06c48b4b
BLAKE2b-256 43dc7eea3aeb66178691f5c932d1aa24c1a8e1ff7a9bc727c9a6fc8e15678d02

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysaleryd-7.1.0-py3-none-any.whl:

Publisher: publish.yml on bj00rn/pysaleryd

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page