v1.6.2 - Fix Vigilance API Parsing
🐛 Bug Fix
This release fixes the Vigilance (weather alerts) feature parsing to work with the actual Météo-France API response structure.
Fixed
- Vigilance API parsing: Corrected the data extraction logic to match the real API response structure
- Department data is now correctly found at
product.periods[0].timelaps.domain_ids[] - Alert levels (
max_color_id) are now properly extracted - Individual phenomenon alerts (wind, avalanche, etc.) are now correctly parsed
- Department data is now correctly found at
- Removed excessive debug logging
For Users
After updating to this version:
- Reload the Serac integration in Home Assistant
- The Vigilance sensors should now show proper alert levels and colors
- Department 74 (Haute-Savoie) and all other departments should now work correctly
Testing
Confirmed working with department 74 showing:
- Overall alert level: Orange (level 3)
- Avalanche alert: Orange (level 3)
Full Changelog: v1.6.1...v1.6.2