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.3.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.3-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhidromotic-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 746b03fac492cc2112701af3cb67408bc916def4e972ae3d86e8b270fb84034a
MD5 ab86ad54b56a05ef05e8d71c8e48b216
BLAKE2b-256 224a2ef3e86d646b903973357120a65f1fcb4347fcea3ace287d92e89bac4cd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhidromotic-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: pyhidromotic-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 722803079e43dd78d11f9434f257fa14d40bccc04336f96678aef4a317b33289
MD5 bda24f8c3750f76aba408183f61ee7be
BLAKE2b-256 075f7f767646fd8ffc8afe79b601b8a1a4eacfe0ff588f71374c18815148e0f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhidromotic-0.1.3-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