Python 3 package to interface devices from STALL WIFFI.
Project description
wiffi
Python 3 package to interface devices from STALL WIFFI.
Installation
pip3 install wiffi
Configure the WIFFI device
- Set "CCU-IP Adresse myCCUIP" to the IP address of Home Assistant.
- Set port for JSON telegrams to configured server port using parameter "send_json".
Usage
class WiffiIntegrationApi:
def __init__(self, hass, config_entry):
self._server = WiffiTcpServer(8189, self)
async def __call__(self, device, metrics):
# device is of type WiffiDevice
print(f"mac address = {device.mac_address}")
for metric in metrics:
# metric is of type WiffiMetric
print(f"value = {metric.value} {metric.unit_of_measurement")
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
wiffi-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
wiffi-1.0.0-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file wiffi-1.0.0.tar.gz
.
File metadata
- Download URL: wiffi-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adbf0eb261a82ab3c3652b45371c6e1b3eca241f6ae9a34c8f027aa91b534451 |
|
MD5 | e064127f1225d21d9afea8e4e1c29891 |
|
BLAKE2b-256 | e88989b20438b0647c11a87838772fc64063c9ddac6014a572d0442b3290b91c |
File details
Details for the file wiffi-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: wiffi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7861fb12791f98b3ae78ed1668ad966d696da7e2fcbdc2e44e85f2a8f3f33d82 |
|
MD5 | a2231687e8c08ad43dadab5f88a95b32 |
|
BLAKE2b-256 | 182c4228433ba8d861bebcd41ff5c04e4bcda262c272e74f640f58b6e31e4e3f |