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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

wiffi-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wiffi-1.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for wiffi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 31bd7e86afde05c4c13aeed698cc58760d57f667805c8723f195dd083084b1c0
MD5 c3202026c961cbf4d32386f41053ff15
BLAKE2b-256 ce583136cdce800df29ab4f6f16030b91d156237b2cf5eeffd855aa814ef4683

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wiffi-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for wiffi-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8ab8009465a0ec33cc5d359a55e922503f2323902acf74ba8df3c0e097501c9
MD5 1ef498a546de324c1f5c2006ebd08f42
BLAKE2b-256 e7380412f788e0ceda06e608675e06dc4ac108f0096d12c7a68f162caaed1a44

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