Eduard Iten 9325fa20c8 feat(valve): Add current measurement callbacks and shell commands
This commit introduces several enhancements to the valve library.

- New weak callback functions `valve_current_open_callback` and `valve_current_close_callback` are added to allow the application to monitor the current during valve opening and closing operations.
- The `movement_timeout_handler` now correctly sets the valve state to `VALVE_STATE_OPEN` and movement to `VALVE_MOVEMENT_IDLE` upon timeout.
- New shell commands `valve open`, `valve close`, and `valve stop` are added for direct control of the valve.
- The existing setting commands are reorganized under a `valve set` subcommand, and their names are shortened (e.g., `set_open_t` to `open_t`).
- The default configuration for `LIB_MODBUS_SERVER` and `LIB_VALVE` is changed to `n`.
Signed-off-by: Eduard Iten <eduard@iten.pro>
2025-07-22 10:53:24 +02:00
2025-06-30 13:52:33 +02:00
2025-07-08 16:06:11 +02:00

Logo

🇩🇪 Deutsch | 🇬🇧 English | 🇫🇷 Français | 🇪🇸 Español

Modular Irrigation System

This project implements a smart, modular irrigation system controlled via Home Assistant.

Documentation

The detailed documentation can be found in the docs/ directory:

  • Concept: Describes the system architecture, the components used, and the basic design decisions.
  • MODBUS Registers: Defines the register map for communication with the slave nodes.
  • Project Plan: Contains the development and implementation plan.

Quick Start

  • Hardware: The KiCad files for the hardware are located in the hardware/ directory.
  • Software: The Zephyr-based firmware for the slave nodes is located in the software/ directory.
Description
No description provided
Readme 2 MiB
Languages
C 57.4%
Python 37.1%
Shell 3.7%
CMake 1.8%