A modern Home Assistant custom component for the Gardena Smart System API v2.
- Lawn mower (Sileno): mowing/docked/paused/error states + start, dock, pause controls
- Irrigation valves (Irrigation Control, Water Control): open/close with duration
- Soil sensors: temperature (°C), humidity (%), light intensity (lux)
- Binary sensors: gateway connectivity, WebSocket connection status
- Real-time updates via WebSocket with automatic reconnection
- Multi-location support
- Create an account at Husqvarna Developer Portal
- Create an application and connect the Gardena Smart System API
- Note your Application Key (Client ID) and Application Secret (Client Secret)
- Open HACS in Home Assistant
- Go to Integrations → ⋮ (top right) → Custom repositories
- Add this repository URL with category Integration
- Search for "Gardena Smart System" and install
- Restart Home Assistant
- Copy the
custom_components/gardena_smart_systemfolder to yourconfig/custom_components/directory - Restart Home Assistant
- Go to Settings → Devices & Services → Add Integration
- Search for Gardena Smart System
- Enter your Application Key and Application Secret
- The integration will discover all locations and devices automatically
| Device | HA Platform | States | Controls |
|---|---|---|---|
| Sileno Mower | lawn_mower |
mowing, docked, paused, error | start, dock, pause |
| Irrigation Control | valve |
open, closed | open (with duration), close |
| Water Control | valve |
open, closed | open (with duration), close |
| Soil Sensor | sensor |
temperature, humidity, light | — |
| Gateway | binary_sensor |
online/offline | — |
- No external dependencies — uses only
aiohttp(built into HA) - WebSocket for real-time push updates with exponential backoff reconnection
- Proactive token refresh — refreshes OAuth2 token 5 minutes before expiry
- Non-blocking SSL — SSL context created in executor thread
- Proper cleanup — all connections properly closed on unload
The integration automatically reconnects with exponential backoff (5s → 10s → 30s → 60s). Check the binary_sensor entities for connection status.
Verify your credentials at the Husqvarna Developer Portal. Ensure the Gardena Smart System API is connected to your application.
MIT