Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ui-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: UI Build

on:
pull_request:
branches:
- develop
- master
workflow_dispatch:

jobs:
frontend-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: addon/frontend
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: addon/frontend/package-lock.json

- name: Install dependencies
run: npm ci --no-audit --no-fund

- name: Build frontend
run: npm run build
109 changes: 56 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,74 @@
# Irrigation BSS

Advanced irrigation management addon for Home Assistant. Control zones, valves, sensors and schedules from a built-in sidebar panel.
Advanced irrigation management addon for Home Assistant.

![Home Assistant](https://img.shields.io/badge/Home%20Assistant-Addon-blue)
![License](https://img.shields.io/badge/License-MIT-green)

## Features
## What It Is

- **Unlimited zones** — group solenoid valves into logical watering zones
- **HA entity picker** — select valve and sensor entities directly from your HA instance
- **Sensor support** — rain sensor, soil moisture, temperature (frost protection), flow meter
- **Smart scheduler** — weekly schedule with per-zone time and duration, sequential or parallel mode
- **Weather skip** — skip watering based on HA weather entity or Open-Meteo forecast
- **Virtual entities** — irrigation state published back to HA for use in dashboards and automations
- **Real-time UI** — live zone status, countdown timers, emergency stop
- **Dark / light mode** — toggleable from the sidebar
- **Multilingual** — Polish, English, German (community translations welcome)
Irrigation BSS helps you manage garden watering directly from Home Assistant.

## Installation
Key capabilities:

1. In Home Assistant go to **Settings → Add-ons → Add-on Store**
2. Click the three-dot menu (⋮) in the top right → **Custom repositories**
3. Add: `https://github.com/BSS-Baumgart/bss_ha_irrigation`
4. Find **Irrigation BSS** in the store and click **Install**
5. On the **Configuration** tab set your preferred `language` and `log_level`
6. Click **Start** — the panel appears automatically in the HA sidebar
- Watering sections with assigned valves
- Weekly scheduler (sequential and parallel modes)
- Manual quick start with custom duration
- Blocking sensors (rain, soil moisture, temperature)
- Weather integration
- Live dashboard with active watering and remaining time

No token or URL configuration needed — the addon connects to Home Assistant automatically via the Supervisor.
## Installation (Stable)

## First steps
1. In Home Assistant, go to Settings -> Add-ons -> Add-on Store.
2. Open the three-dot menu and select Custom repositories.
3. Add this repository: https://github.com/BSS-Baumgart/bss_ha_irrigation
4. Install the Irrigation BSS addon.
5. In Configuration, set language and log_level.
6. Start the addon.

1. **Valves** — add HA switch or input_boolean entities that control your solenoid valves
2. **Zones** — create zones and assign valves to them
3. **Sensors** *(optional)* — add a rain sensor, soil moisture probe or temperature sensor
4. **Schedule** — set days, start time and duration per zone
5. **Dashboard** — monitor live status, start zones manually, see next scheduled watering
## Installation (Develop Channel)

## Virtual entities published to HA
To test upcoming changes before stable releases, add the develop branch repository:

https://github.com/BSS-Baumgart/bss_ha_irrigation#develop

Use this on a separate test Home Assistant instance.

## First Setup

1. Valves: add HA entities (switch/input_boolean).
2. Sections: create sections and assign valves.
3. Sensors (optional): rain, soil moisture, temperature, flow.
4. Schedule: configure weekdays, start times, and durations.
5. Dashboard: monitor status and run manual quick actions.

## Entities Published To Home Assistant

| Entity | Type | Description |
|--------|------|-------------|
| `binary_sensor.irrigation_bss_watering` | binary_sensor | Any zone currently active |
| `sensor.irrigation_bss_active_zone` | sensor | Name of the active zone |
| `sensor.irrigation_bss_remaining_sec` | sensor | Remaining watering time in seconds |
| `sensor.irrigation_bss_next_watering` | sensor | Next scheduled watering (ISO timestamp) |
| `binary_sensor.irrigation_bss_rain_blocked` | binary_sensor | Watering blocked by rain sensor |
| `binary_sensor.irrigation_bss_frost_blocked` | binary_sensor | Frost protection active |
| `binary_sensor.irrigation_bss_zone_{id}` | binary_sensor | Per-zone watering state |

## Local development

```bash
# Backend
cd addon
pip install -r backend/requirements.txt
cp .env.example .env # fill in HA_URL and HA_TOKEN
python -m uvicorn backend.main:app --reload --port 8099

# Frontend (separate terminal)
cd addon/frontend
npm install
npm run dev
```

## Contributing translations

Copy `addon/frontend/public/locales/en/translation.json` to a new language folder and submit a pull request.
|------|------|------|
| binary_sensor.irrigation_bss_watering | binary_sensor | Any section is currently watering |
| sensor.irrigation_bss_active_zone | sensor | Name of the active section |
| sensor.irrigation_bss_remaining_sec | sensor | Remaining watering time in seconds |
| sensor.irrigation_bss_next_watering | sensor | Next scheduled watering run |
| binary_sensor.irrigation_bss_rain_blocked | binary_sensor | Watering blocked by rain |
| binary_sensor.irrigation_bss_frost_blocked | binary_sensor | Watering blocked by frost protection |
| binary_sensor.irrigation_bss_zone_{id} | binary_sensor | Per-section watering state |

## Release Flow

- Create feature branches from develop.
- Merge features into develop for testing.
- Open PR develop -> master only for releases.
- Create tags and GitHub Releases from master.

## UI Preview

![Dashboard](docs/screenshots/dashboard.png)
![Sections](docs/screenshots/sections.png)
![Valves](docs/screenshots/valves.png)
![Sensors](docs/screenshots/sensors.png)
![Schedule](docs/screenshots/schedule.png)

## License

Expand Down
Loading
Loading