Skip to main content

Python client for Hidromotic CHI Smart irrigation controllers

Project description

pyhidromotic

Python client for Hidromotic CHI Smart irrigation controllers.

Installation

pip install pyhidromotic

Usage

import asyncio
from pyhidromotic import HidromoticClient

async def main():
    # Create client
    client = HidromoticClient("192.168.1.100")

    # Connect to device
    if await client.connect():
        # Wait for initial data
        await asyncio.sleep(2)

        # Get zones
        zones = client.get_zones()
        print(f"Found {len(zones)} zones")

        # Turn on zone 0
        await client.set_zone_state(0, True)

        # Check auto irrigation status
        if client.is_auto_riego_on():
            print("Auto irrigation is enabled")

        # Disconnect
        await client.disconnect()

asyncio.run(main())

Features

  • WebSocket-based communication with Hidromotic devices
  • Support for CHI Smart and CHI Smart Mini models
  • Control irrigation zones and tanks
  • Enable/disable automatic irrigation
  • Real-time status updates via callbacks
  • Automatic reconnection on connection loss

Supported devices

  • Hidromotic CHI Smart (12 outputs)
  • Hidromotic CHI Smart Mini (6 outputs)

License

GPL-3.0-or-later

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

pyhidromotic-0.1.1.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyhidromotic-0.1.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file pyhidromotic-0.1.1.tar.gz.

File metadata

  • Download URL: pyhidromotic-0.1.1.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyhidromotic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 396fcf672873d1b98031f1cd165611e2f82a680650e670b024856a109113a615
MD5 acafa4fa07e2037439dda1e64fd38677
BLAKE2b-256 7c8ad3f6d4c917105caab5f67aedb4f0d63b2637cc1b2d2a6317e1a04beb3253

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhidromotic-0.1.1.tar.gz:

Publisher: publish.yml on bulju/pyhidromotic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyhidromotic-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyhidromotic-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyhidromotic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23846e22dda2f97320ef035e800124821dbb36689f4db5a7114a4de707ea29a1
MD5 38b38f8a447661a9e6d9927da62238c2
BLAKE2b-256 71391879893c43238b9766b9c691c628a07606e6c876dd956877137c8dd2b49c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhidromotic-0.1.1-py3-none-any.whl:

Publisher: publish.yml on bulju/pyhidromotic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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