ZWave-Me-WS is a websocket connection library for Z-Wave.Me Z-Way controllers
Installing
To install this package use:
pip install zwave-me-ws
Usage
To use the connector initialize the API using:
from zwave_me_ws import ZWaveMe, ZWaveMeData
zwave_api = ZWaveMe(
on_device_create=on_device_func
on_device_update=on_device_update_func,
on_new_device=on_device_add_func,
token="....", # Z-Way access token in the form .../... (remote) of /... (local)
url="...", # wss://find.z-wave.me or ws://IP:8083
platforms=[...]
)
def on_device_add_func(self, device: ZWaveMeData)
def on_device_create_func(self, devices: list[ZWaveMeData])
def on_device_update_func(self, new_info: ZWaveMeData)
Here platforms is the list of deviceType fields to handle. Used to filter only types supported by your application. For example,
["sensorBinary", "lightMultilevel", "toggleButton", "thermostat", "motor", "fan", "doorlock", "switchMultilevel", "switchBinary", "sensorMultilevel", "siren", "switchRGBW", "switchRGB"].
Available functions:
devices = zwave_api.get_devices()
zwave_api.send_command(device_id, command) # command can be "on", "off", "exact?level=..", "open", "close"
is_connected = zwave_api.get_connection()
zwave_api.close_ws()
Device (ZWaveMeData) has the following fields:
id: str
deviceType: str
title: str
level: Union[str, int, float]
deviceIdentifier: str
probeType: str
scaleTitle: str
min: str
max: str
color: dict
isFailed: bool
locationName: str
manufacturer: str
firmware: str
tags: list[str]
nodeId: str
creatorId: str
Metadata
Release files for zwave-me-ws 0.4.3
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 |
|---|---|---|---|---|
| zwave_me_ws-0.4.3.tar.gz | 5.1 kB | Without provenance | Details for zwave_me_ws-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zwave_me_ws-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for zwave_me_ws-0.4.3-py3-none-any.whl |
Total release size: 11.3 kB
Release files / zwave_me_ws-0.4.3.tar.gz
| Download URL | zwave_me_ws-0.4.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdac9602054fb677c2227c8f47429fd785b29278d7a5ca033af4e37c7d17e247
|
|
BLAKE2b-256 checksum How to use checksums |
6cdabc194ffa707abc970d085dde29b50b6b3657f033adcc949687c1042e89d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.2 Windows/10
|
Release files / zwave_me_ws-0.4.3-py3-none-any.whl
| Download URL | zwave_me_ws-0.4.3-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ad977d4d345e9487eb100d39a4df81044868aea8a1ae0e0bcf11e9ebf66696a
|
|
BLAKE2b-256 checksum How to use checksums |
d622ac94da26e4677c42996a0a872d97a3b9a2d51ddacb1a92e1777175541a83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.2 Windows/10
|
Security for zwave-me-ws 0.4.3
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.