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.1.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

wiffi-1.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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