Skip to main content

Control devices connected to your Rademacher Homepilot (or Start2Smart) hub

Project description

pyrademacher

Python Library to read/control devices connected to your Rademacher HomePilot (or Start2Smart) hub.

This library uses the latest REST API, so you must update your hub to the latest firmware if you want to use this library.

Installation

Use pip to install pyrademacher lib:

pip install pyrademacher

Usage

API Class

With the HomePilotApi class you can acess the REST API directly:

from homepilot.api import HomePilotApi

api = HomePilotApi("hostname", "password") # password can be empty if not defined ("")

print(asyncio.run(asyncio.run(api.get_devices()))) # get all devices

asyncio.run(api.async_open_cover(did=1)) # open cover for device id 1 (assuming it's a cover device)

Manager Class

You can use the HomePilotManager helper class to more easily manage the devices:

import asyncio
from homepilot.manager import HomePilotManager
from homepilot.api import HomePilotApi

api = HomePilotApi("hostname", "password") # password can be empty if not defined ("")

manager = asyncio.run(HomePilotManager.async_build_manager(api))
asyncio.run(manager.update_states())

print(manager.devices["1"].is_closed)
print(manager.devices["1"].cover_position)

print(manager.devices["-1"].fw_version) # ID -1 is reserved for the hub itself

Each device in manager.devices is an instance of the specific device class.

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

pyrademacher-0.12.3.tar.gz (32.7 kB view details)

Uploaded Source

Built Distribution

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

pyrademacher-0.12.3-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file pyrademacher-0.12.3.tar.gz.

File metadata

  • Download URL: pyrademacher-0.12.3.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyrademacher-0.12.3.tar.gz
Algorithm Hash digest
SHA256 6e9f145391d31a4e190285f7470f7254652f46dd569ed07de2ca2f5197ad38f1
MD5 ff628d52e7cdb4b861289d825a7b7b76
BLAKE2b-256 78735a82a1c0eeb8b72885b9e936a2bbff75de575f30532192305c6532908512

See more details on using hashes here.

File details

Details for the file pyrademacher-0.12.3-py3-none-any.whl.

File metadata

  • Download URL: pyrademacher-0.12.3-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyrademacher-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2cfdda36cf95abccbf076e9e5794c55f9ecd1efaa422f95e4d14996d2fde79
MD5 4459b3b3c1516ed391dd84ecce3314e8
BLAKE2b-256 adf3117f71da36ea03de9e652242d674cda82a1c31e1ea285f22e35d718da84a

See more details on using hashes here.

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