Skip to content

0.60.0 - Sensing the New Year: Thresholds, Leaks & Enhanced Detection πŸ“ˆπŸš¨

Choose a tag to compare

@github-actions github-actions released this 07 Jan 18:33

Happy New Year! πŸŽ‰βœ¨

"New year, new code, same awesome room summaries!" πŸ πŸ’«

I missed you all during my coding break!

Features

πŸ“Š Sensor Threshold Support

Sensors now support threshold-based styling, allowing you to configure dynamic colors, icons, and labels based on numeric sensor values. This works similarly to entity thresholds and enables visual feedback for temperature, humidity, and other numeric sensors.

Example Configuration:

sensors:
  - entity_id: sensor.temperature
    thresholds:
      - threshold: 25
        operator: gt
        icon_color: red
        icon: mdi:thermometer-alert
        label: 'Hot'
        styles:
          color: red
      - threshold: 20
        operator: gte
        icon_color: green
        icon: mdi:thermometer
        label: 'Normal'
  - entity_id: sensor.humidity
    thresholds:
      - threshold: 60
        operator: gt
        icon_color: red
      - threshold: 40
        operator: gte
        icon_color: green

Thresholds support all operators (gt, gte, lt, lte, eq), custom icons, labels, and CSS styles. They are evaluated in descending order (highest threshold first), allowing you to create ranges like "green between 40-60%".

🚨 Gas & Water Leak Detection

Added support for gas and water leak detection alarms, providing visual indicators when detected:

  • Gas Detection: Visual indicators for gas sensors (device class: gas)
  • Water Detection: Visual indicators for water sensors (device class: moisture)
  • Priority System: Smoke > Gas > Water > Occupancy (higher priority alarms suppress lower priority ones)
  • Default Colors: Orange for gas (#FF9800), Blue for water (#2196F3)
  • Full Configuration Support: Custom colors, animations, and disable options just like smoke and occupancy detection

Example Configuration:

type: custom:room-summary-card
area: kitchen
occupancy:
  entities:
    - binary_sensor.kitchen_motion
smoke:
  entities:
    - binary_sensor.kitchen_smoke_detector
gas:
  entities:
    - binary_sensor.kitchen_gas_sensor
water:
  entities:
    - binary_sensor.kitchen_water_leak

πŸ”§ Sensor Icon Configuration

Sensors now support a direct icon property to override the default icon without requiring state-based matching:

sensors:
  - entity_id: sensor.bwt_perla_regenerativ_level
    icon: phu:water-softener

The configured icon takes priority over state-based icons and the default entity icon. This allows you to set a default icon for a sensor while still allowing state-based icons to override it when specific conditions are met.

🌑️ Enhanced Climate Entity Icon Display

Climate entities now display icons based on HVAC action (what the system is currently doing) rather than just the mode, providing more accurate visual feedback.

How it works:

  • Icons are determined by hvac_action attribute (e.g., heating, cooling, idle, defrosting) when available
  • Falls back to state value (hvac_mode) when action is not available
  • Colors continue to be based on the state value for visual consistency

Examples:

  • A thermostat in heat mode that's currently idle shows a power icon (not heating) rather than a fire icon
  • A system actively cooling shows a snowflake icon, even if the mode is auto
  • A system defrosting shows a fire icon to indicate heating activity

This change provides clearer visual feedback about what your HVAC system is actually doing, not just what mode it's set to.

πŸ” Enhanced Problem Entity Detection

Problem entity detection now supports entities with device_class: problem in addition to the existing label-based detection; this is particularly useful for binary sensors that represent problem states, as they can be configured with device_class: problem in Home Assistant without needing to manually add labels.

Bug Fixes

πŸ› Problem Entities Count Display

Fixed an issue where problem entities count would not display correctly for numbers greater than 10.

πŸ“Œ Sticky Entities Shift

Fixed an issue where the sticky_entities feature was would cause shifting of other entities when not using exclude_default_entities.


What's Changed

  • chore: yarn (deps): bump the all-dependencies group with 3 updates by @dependabot[bot] in #342
  • chore: yarn (deps): bump qs from 6.14.0 to 6.14.1 by @dependabot[bot] in #347
  • chore: yarn (deps-dev): bump @trivago/prettier-plugin-sort-imports from 6.0.0 to 6.0.1 in the all-dependencies group by @dependabot[bot] in #350
  • Sensing the New Year: Thresholds, Leaks & Enhanced Detection πŸ“ˆπŸš¨ by @warmfire540 in #349

Full Changelog: 0.59.0...0.60.0