Skip to main content

Automated async web-based communication with the Bayernluefter

Project description

Pyernluefter - a very basic python Bayernluefter bridge

Build Status Coverage Status Package Version Python Versions

A package that connects to the Bayernluefter WiFi-Module. It controls the module via the simple web-based access provided by the Bayernluft software. Any templates module should be supported as the tool first fetches the uploaded template and then parses the exported data based on the template.

This package is looking for a maintainer. I don't own a Bayernluefter anymore and can't test any changes. If you are interested in maintaining this package, please contact me.

Usage

import asyncio

import aiohttp

from pyernluefter import Bayernluefter

IP_Bayernluft = '192.168.0.25'


async def main():
    async with aiohttp.ClientSession() as session:
        luefter = Bayernluefter(IP_Bayernluft, session)
        await luefter.update()

        # Show the luefter status
        print("Bayernluft status:", luefter.raw_converted())

        # turn on
        await luefter.power_on()

        # set fan speed
        await luefter.set_speed(5)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

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

pyernluefter-0.2.1.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file pyernluefter-0.2.1.tar.gz.

File metadata

  • Download URL: pyernluefter-0.2.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for pyernluefter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 87fe0088ff71a2b12188b86bae7baa975f042cd979c171e3883e48234b97fdd7
MD5 db5ba6cdef3f19eb22071f516f3b2360
BLAKE2b-256 81a7ec1be88a785a9a8527427554e4a210ca6e941678736a577a1ec7891ea75d

See more details on using hashes here.

Supported by

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