|
2 | 2 | # Netro Smart Garden Integration for Home Assistant |
3 | 3 |
|
4 | 4 |
|
5 | | -[](https://github.com/custom-components/hacs) [](https://github.com/kcofoni/ha-netro-watering/actions) [](https://codecov.io/gh/kcofoni/ha-netro-watering) [](https://github.com/kcofoni/ha-netro-watering/releases)   |
| 5 | +[](https://github.com/custom-components/hacs) [](https://github.com/kcofoni/ha-netro-watering/actions) [](https://codecov.io/gh/kcofoni/ha-netro-watering) [](https://github.com/kcofoni/ha-netro-watering/releases) [](https://github.com/kcofoni/ha-netro-watering/releases) |
| 6 | +  |
6 | 7 |
|
7 | 8 |
|
8 | 9 | ## 📑 Table of Contents |
|
11 | 12 | - [📖 Description](#📖-description) |
12 | 13 | - [🌱 Installation](#🌱-installation) |
13 | 14 | - [⚙️ Configuration](#⚙️-configuration) |
| 15 | +- [🔐 Netro Public API v2](#🔐-netro-public-api-v2) |
14 | 16 | - [🌦️ Netro Weather Sync Blueprint](#🌦️-netro-weather-sync-blueprint) |
15 | 17 | - [🖼️ Lovelace cards](#🖼️-lovelace-cards) |
16 | 18 | - [🛠️ Advanced configuration](#🛠️-advanced-configuration) |
@@ -82,14 +84,29 @@ Polling intervals can be configured separately for sensors and controllers. A de |
82 | 84 |  |
83 | 85 |  |
84 | 86 |
|
85 | | - |
86 | 87 | > **ℹ️ Note** |
87 | 88 | > You no longer need to reload the device after changing options. Changes are applied automatically. |
88 | 89 | > - Most updates take effect on the **next polling cycle**. |
89 | 90 | > - `default_watering_delay` and `delay_before_refresh` apply to **subsequent commands**. |
90 | 91 | > - `sensor_value_days_before_today` is used on the **next sensor update**. |
91 | 92 | > - No manual reload or restart is required (except for internal fields like `netro_api_url`, if instructed). |
92 | 93 |
|
| 94 | +### 🔐 Netro Public API v2 |
| 95 | + |
| 96 | +By default, the integration uses [version 1 of the Netro Public API](https://www.netrohome.com/en/shop/articles/10), which authenticates devices using their serial numbers. However, you can switch to version 2, which uses API keys generated on demand for each device. |
| 97 | +API keys provide a higher level of security: they can be regenerated if compromised, unlike fixed serial numbers. |
| 98 | + |
| 99 | +To use [API v2](https://netrohome.com/en/shop/user_guides/7), simply specify the corresponding URL in your Home Assistant configuration file: |
| 100 | + |
| 101 | +```yaml |
| 102 | +netro_watering: |
| 103 | + netro_api_url: https://api.netrohome.com/npa/v2/ |
| 104 | +``` |
| 105 | +> ⚠️ **Important:** |
| 106 | +> Some recent Netro devices only work with API version 2. |
| 107 | +> If your device is rejected when using a serial number with API v1 (the default), carefully check the error message. |
| 108 | +> It may indicate that you need to use API v2 and an API key for authentication. |
| 109 | +
|
93 | 110 | ## 🌦️ Netro Weather Sync Blueprint |
94 | 111 |
|
95 | 112 | This blueprint allows you to synchronize your **Netro smart watering** system with current weather conditions using Home Assistant data. It dynamically adjusts watering schedules to prevent watering during rain or when humidity is high, helping you save water efficiently. |
|
0 commit comments