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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhidromotic-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0aa382477057313204dd1df5f0e3e9e8139c224e47080ebf1697da4d0b0c64ae
MD5 6736d67d816f67b1936ee5354fb75a6d
BLAKE2b-256 76e99622542b4e673d59f4857750ce6feeb1e2611df4dfd456d4054fd1d0d9a9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyhidromotic-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55364a5372ecfc09a3a05100731aa6509b83fa6c83cd0d1b3ff19e460525a799
MD5 febd73d068b1bae9d57d54b413f19994
BLAKE2b-256 67f6154a6d259e364a74a14b75fa702c124f351d2d79820f6a5f7a6041d60abb

See more details on using hashes here.

Provenance

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