deconzpy
Homeautomation Library for the tech savvy (depending on zigbee/deconz-rest)
This should be a library to easily build home automation scripts on top of the deconz-rest api It can be used to easily issue comands to devices connected to deconz, subscribe to events and mix the two. For example: on motion -> switch light on
Sample Code
from deconzpy import Router
router = Router() # Router is a singelton, can be called in multiple places and will return the same Router Object
##
# print some objects
##
sensors = router.getAllSensors()
for s in sensors:
s.println()
print("---")
lights = router.getAllLights()
for l in lights:
l.println()
# subscribe to websocket (for updates)
router.startAndRunThread()
#get motion sensors
bewegungsmelder = router.getSensorsByIcon("🏃♂️")
def onMotion(sensor, key_that_changed, oldval, newval):
print("somebody moved - or stoped moving")
bewegungsmelder[0].subscribeToAttribute("state_presence", onMotion)
Metadata
Release files for deconzpy 0.9.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deconzpy-0.9.16.tar.gz | 10.9 kB | Without provenance | Details for deconzpy-0.9.16.tar.gz |
Release files / deconzpy-0.9.16.tar.gz
| Download URL | deconzpy-0.9.16.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1e0a7533941ef40a2f7dba96a1a2c3541ff561dbd743f2c91ab86f33d5736c4
|
|
BLAKE2b-256 checksum How to use checksums |
7d3b5795da4cee1cfb0991ea31f5602af8acef74bcfdfa56a142689231e718bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.7
|
Security for deconzpy 0.9.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.