Add a short description here!
Project description
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
Supported devices
LOKE1/Loke Basic/LS-01 using control system 4.1.1
Usage with asyncio as library
Read data
from pysaleryd.client import Client
client = Client(WEBSOCKET_URL, WEBSOCKET_PORT)
await client.connect()
await asyncio.sleep(2) # wait a bit for some data
await print(client.data)
Read data using callback
from pysaleryd.client import Client
client = Client(WEBSOCKET_URL, WEBSOCKET_PORT)
def handle_messge(raw_message: str):
print(msg)
client.add_handler(handle_message)
await client.connect()
await asyncio.sleep(10) # wait around a bit
Send control command
from pysaleryd.client import Client
client = Client(WEBSOCKET_URL, WEBSOCKET_PORT)
await client.connect()
await client.send_command("MF", 0) # send command to set fan mode
CLI usage
Connect to system and capture websocket data to stdout
$ pysaleryd --host WEBSOCKET_URL --port WEBSOCKET_PORT [-t TIMEOUT]
Send command to system
$ pysaleryd --host 192.168.1.151 --port 3001 --send --key MF --data 0
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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pysaleryd-2.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7415892d48dae737594c2416a6e36dfef623761c067ca4f4f3a502250865794 |
|
MD5 | 3f613d2d551d7a5f1fa2bd8db74e868f |
|
BLAKE2b-256 | 09b2b9de6abf42d3d3ac283912ab38a6bede57b146d84bd45aa0a823044011f1 |