This custom component integrates Holfuy weather station data into Home Assistant using the Holfuy API.
Holfuy is a network of real-time weather stations specifically designed for aviation, paragliding, hang gliding, and outdoor sports enthusiasts. The service provides:
- Live wind data from weather stations located at popular flying sites and outdoor locations worldwide
- Real-time measurements including wind speed, wind gusts, wind direction, and temperature
- Reliable data used by pilots and outdoor enthusiasts for safety and activity planning
- API access for developers to integrate station data into their applications
Instructions on how to obtain an API key can be found here: https://api.holfuy.com/ This integration is not created by Holfuy but it has been reviewed by the Holfuy team.
To use the integration you need an API key from Holfuy! You need to contact Holfuy to obtain the key and the key is valid for up to 3 stations.
This integration:
- Polls the Holfuy API at regular intervals to fetch real-time weather data from your configured stations
- Supports multiple stations (up to 3) in a single API call for efficient polling
- Creates individual sensors for each station and each measurement type (wind speed, gust, min, direction, temperature)
- Uses a DataUpdateCoordinator for efficient background updates and automatic error handling
- Configurable units - Choose your preferred wind speed unit (m/s, knots, km/h, mph) and temperature unit (°C, °F) during setup
- Config flow integration - Easy setup through the Home Assistant UI with validation of station IDs
- Live API validation - Validates API key and station IDs during setup by making actual API calls
- API requests include unit parameters (
tufor temperature,sufor wind speed) based on your selection - The integration requests data from the API in your chosen units and displays them directly
- Attempts combined API calls first for efficiency, falls back to individual station requests if needed
- Handles various API response formats (dict, list, combined or individual station data)
- Station IDs are validated (0-65000 range) and duplicates are automatically removed
- API key and station validation - During setup, the integration tests each station ID with your API key to ensure they are valid and accessible
- Automatic API throttling - Implements exponential backoff when API errors occur:
- Normal operation: Updates every 2 minutes
- On consecutive errors: Automatically increases interval (4min → 8min → max 10min)
- On recovery: Immediately restores normal 2-minute interval
- Protects both the API and your Home Assistant from excessive requests during outages
- Configuration is stored in Home Assistant config entries and can be modified via Options Flow
- Fetches real-time data from Holfuy stations:
- Wind Speed
- Wind Gust
- Wind Min
- Wind Direction
- Temperature
- Includes station name and last update timestamp as attributes
- Uses DataUpdateCoordinator for efficient updates
- Intelligent error handling:
- Automatic API throttling with exponential backoff on errors
- Self-recovery when API becomes available again Configurable units - Select your preferred wind speed (m/s, knots, km/h, mph) and temperature units (°C, °F)
- Units are set during integration setup and can be changed via Options
- Important for Sweden and other regions: Choose m/s for wind speed since Home Assistant's default Metric system shows km/h
- Wind sensors display in the exact unit you select from the API
- Temperature sensors use device class for proper display in Home Assistant
- Configurable units for wind speed and temperature
- Real-time validation during setup:
- API key verification
- Station ID accessibility checks
- Comprehensive error messages for invalid configurations
- Supports 17+ languages including English, Spanish, German, French, Swedish, Norwegian, Danish, Finnish, Dutch, Italian, Polish, Portuguese, Greek, Czech, Ukrainian, Romanian, and Japanese
- Go to HACS → Integrations → Custom Repositories.
- Add your repository URL:
https://github.com/stefanh12/holfuy - Select Integration.
- Restart Home Assistant.
- Install the integration via HACS.
- Copy
custom_components/holfuyto your Home Assistantcustom_componentsfolder. - Restart Home Assistant.
- Go to Settings → Devices & Services → Add Integration → Holfuy.
- Enter:
- API Key - Your Holfuy API key
- Station IDs (comma-separated, e.g.,
601, 1435, 2045) - up to 3 stations - Wind Speed Unit - Choose m/s, knots, km/h, or mph
- Once validated, sensors will be created for each station in your selected units.
- You can modify the configuration (including units)your credentials** by testing the API key and each station ID:
- Verifies the API key is valid and authorized
- Confirms each station ID is accessible with your API key
- Displays specific error messages if validation fails (invalid API key, inaccessible stations, connection issues, etc.)
- Once validated, sensors will be created for each station.
- You can modify the configuration later via Devices & Services → Holfuy → Configure.
During setup, you may encounter these validation errors:
- Invalid API key - The API key is not recognized or unauthorized
- Invalid station ID - One or more station IDs are not accessible with your API key
- Cannot connect - Unable to reach the Holfuy API (check your internet connection)
- Timeout - API request took too long (try again)
- Invalid station IDs format - Station IDs must be integers between 0 and 65000
When setting up the integration, you'll choose units for:
- Wind Speed: m/s, knots, km/h, or mph
- Temperature: °C or °F
Regional Note: If you're in Sweden or other regions that use m/s for wind speed, be sure to select m/s during setup. Home Assistant's default Metric system uses km/h for wind, so selecting your preferred unit ensures the data displays correctly.
You can change units anytime via Devices & Services → Holfuy → Configure.
sensor.holfuy_wind_speedsensor.holfuy_temperature
You can visualize wind direction and speed using the https://github.com/tomvanswam/compass-card/ in your Lovelace dashboard.
type: custom:compass-card
header:
title:
value: Wind
indicator_sensors:
- sensor: sensor.holfuy_station_direction
indicator:
image: arrow_inward
value_sensors:
- sensor: sensor.holfuy_station_speed
- sensor: sensor.holfuy_station_gustDeveloped for Home Assistant using Holfuy API.