Skip to main content

A Python library to access and control a Palazzetti stove through a Palazzetti Connection Box

Project description

Python Palazzetti API

An async Python library to access and control a Palazzetti stove through a Palazzetti Connection Box.

Getting started

import asyncio

from pypalazzetti.client import PalazzettiClient


async def main():
    client = PalazzettiClient("192.168.1.73")
    print(f"Connection: {await client.connect()}")
    print(f"Check if online: {await client.is_online()}")
    print(f"Update: {await client.update_state()}")
    print(f"MAC address: {client.mac}")
    print(f"Name: {client.name}")
    print(f"Room temperature: {client.room_temperature}")
    print(f"Target temperature: {client.target_temperature}")
    print(f"Status: {client.status}")
    print(f"Set target temperature: {await client.set_target_temperature(22)}")
    print(f"Target temperature: {client.target_temperature}")
    print(f"Min fan speed: {client.fan_speed_min}")
    print(f"Max fan speed: {client.fan_speed_max}")
    print(f"Set fan speed: {await client.set_fan_auto()}")
    print(f"Fan speed: {client.fan_speed}")
    print("---")
    for temp in client.list_temperatures():
        print(f"{temp.description_key}={temp.value}")
    print("---")
    print(client.to_json())



asyncio.new_event_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

pypalazzetti-0.1.12.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

pypalazzetti-0.1.12-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pypalazzetti-0.1.12.tar.gz.

File metadata

  • Download URL: pypalazzetti-0.1.12.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pypalazzetti-0.1.12.tar.gz
Algorithm Hash digest
SHA256 f6480bd1862ad1a0561645014e509afebe83935906afd6e0f071d01a6ddfb019
MD5 2b90a5ea087b7bc085b07ae9d4c6c571
BLAKE2b-256 8e140cd26be8a21c77b064506a4836c7f18ad759908a7bac261a0747d72a6ad9

See more details on using hashes here.

File details

Details for the file pypalazzetti-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for pypalazzetti-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fa88adbfc1d2536238734d963423af9f8bde2c5f426b63a9e6954dd8294fea
MD5 1f3f380d1ca41fd18ecfc3fcc1f5b2f7
BLAKE2b-256 b44e4e77b2b89e3a76936b24e4085f540941fecba3d276f22c3b08a44fcff665

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypalazzetti-0.1.12-py3-none-any.whl:

Publisher: publish.yml on dotvav/py-palazzetti-api

Attestations:

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