Skip to main content

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

  1. Set "CCU-IP Adresse myCCUIP" to the IP address of Home Assistant.
  2. 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.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

wiffi-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file wiffi-1.0.1.tar.gz.

File metadata

  • Download URL: wiffi-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for wiffi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1e55c0df392573e6081b028e118f9949a207e388b8fb2036adf8ef893e05964c
MD5 64da166b1e8e21873d3c0c08708eda8b
BLAKE2b-256 881e0c4878cf79f0c46f0b3a4f6f6e1aa0e342b2261ab780f008ebe5b1077e4c

See more details on using hashes here.

File details

Details for the file wiffi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: wiffi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for wiffi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 702b006ea7ff7a611a89c525ad5ef159a57d775fb53a5b38907fc064dbce8ce4
MD5 e28fff5d8d3de74e110ca3f7c4a73ba4
BLAKE2b-256 806e4a50ca14e4621ebe42604f896ec33be3dcc858d1089cddaea817bb8b9305

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page