Skip to content

v1.6.2 - Fix Vigilance API Parsing

Choose a tag to compare

@atacamalabs atacamalabs released this 12 Feb 12:53
· 10 commits to main since this release

🐛 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
  • Removed excessive debug logging

For Users

After updating to this version:

  1. Reload the Serac integration in Home Assistant
  2. The Vigilance sensors should now show proper alert levels and colors
  3. 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