Skip to content

v1.7.0 - Enhanced Vigilance Sensors

Choose a tag to compare

@atacamalabs atacamalabs released this 12 Feb 13:04
· 9 commits to main since this release

✨ New Feature: Enhanced Vigilance Sensors

This release adds 11 new vigilance sensors to make weather alerts much easier to use in your dashboards and automations!

What's New

🎯 Individual Phenomenon Sensors (9 sensors)

Now you get a dedicated sensor for each type of weather alert:

  • sensor.serac_{prefix}_vigilance_wind 🌬️
  • sensor.serac_{prefix}_vigilance_avalanche ⛰️
  • sensor.serac_{prefix}_vigilance_rain_flood 🌧️
  • sensor.serac_{prefix}_vigilance_thunderstorm ⛈️
  • sensor.serac_{prefix}_vigilance_flood 🌊
  • sensor.serac_{prefix}_vigilance_snow_ice ❄️
  • sensor.serac_{prefix}_vigilance_extreme_heat 🌡️
  • sensor.serac_{prefix}_vigilance_extreme_cold 🥶
  • sensor.serac_{prefix}_vigilance_fog 🌫️

Each sensor shows the alert level (1-4):

  • 1 = Green (no alert)
  • 2 = Yellow (be aware)
  • 3 = Orange (be prepared)
  • 4 = Red (take action)

Benefits:

  • Easy to create automations: "If avalanche level > 2, send notification"
  • Simple to display in cards: Use a conditional color based on the level
  • Each has an appropriate icon (wind, snowflake, avalanche, etc.)

📝 Alert Summary Sensor (1 sensor)

New sensor.serac_{prefix}_vigilance_summary provides a human-readable text summary:

Example output:

  • "Yellow Alert: Wind, Rain/Flood. Orange Alert: Avalanche"
  • "Orange Alert: Avalanche"
  • "No alerts"

Benefits:

  • Perfect for markdown cards and dashboard displays
  • Only shows active (non-green) alerts
  • Grouped by severity level

📊 Original Sensors (Still Available)

The original 2 sensors remain unchanged:

  • sensor.serac_{prefix}_vigilance_level - Overall alert level
  • sensor.serac_{prefix}_vigilance_color - Overall alert color

Example Dashboard Usage

Show Avalanche Alert with Conditional Color:

type: entity
entity: sensor.serac_home_vigilance_avalanche
name: Avalanche Alert
card_mod:
  style: |
    :host {
      --card-mod-icon-color: {% if states('sensor.serac_home_vigilance_avalanche')|int >= 3 %}orange{% elif states('sensor.serac_home_vigilance_avalanche')|int >= 2 %}yellow{% else %}green{% endif %};
    }

Display Alert Summary:

type: markdown
content: |
  ## Weather Alerts
  {{ states('sensor.serac_home_vigilance_summary') }}

Create Automation:

automation:
  - alias: "High Avalanche Alert"
    trigger:
      - platform: numeric_state
        entity_id: sensor.serac_home_vigilance_avalanche
        above: 2
    action:
      - service: notify.mobile_app
        data:
          message: "Avalanche alert level: {{ states('sensor.serac_home_vigilance_avalanche') }}"

Upgrade Instructions

  1. Update via HACS to v1.7.0
  2. Reload the integration in Home Assistant
  3. Check Developer Tools → States - search for "vigilance" to see all 12 sensors
  4. Update your dashboards to use the new sensors!

Full Changelog: v1.6.2...v1.7.0