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.0.tar.gz (22.8 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.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhidromotic-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 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.0.tar.gz
Algorithm Hash digest
SHA256 98a82e6af533dc101020246892b60e3ad5d2b6007de6e0b2a04d6f3c2e2086dd
MD5 10f53391f7d7b72bdd06f320a5fa4d73
BLAKE2b-256 a1b8c3daf5720c22d0bfa50c6a84d781b1fca0f5b8868ee811283ab6e19fb87b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyhidromotic-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0567de579711762c976bda68c7684dc065b3e6a38c49e0c8a7f2150e9a903c5c
MD5 86f31a7857ae318e7fb9b0e640b0c28a
BLAKE2b-256 108d70297397c85474f77d102b91a58bdd32bae5f3208b303b9926c8361d2eb0

See more details on using hashes here.

Provenance

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