0.60.0 - Sensing the New Year: Thresholds, Leaks & Enhanced Detection ππ¨
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: greenThresholds 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-softenerThe 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_actionattribute (e.g.,heating,cooling,idle,defrosting) when available - Falls back to
statevalue (hvac_mode) when action is not available - Colors continue to be based on the
statevalue for visual consistency
Examples:
- A thermostat in
heatmode that's currentlyidleshows a power icon (not heating) rather than a fire icon - A system actively
coolingshows a snowflake icon, even if the mode isauto - A system
defrostingshows 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.
- chore: bumps version to 0.60.0 by @gh-action-bump-version
- sensor thresholds - thanks @MelleD! by @warmfire540
- problem sensors picked up by device class - thanks @MelleD! by @warmfire540
- chore: yarn (deps-dev): bump @trivago/prettier-plugin-sort-imports (#350) by @dependabot[bot]
- gas and water leak alarms - thanks @robex2005! by @warmfire540
- sensor icons - thanks @MelleD! by @warmfire540
- climate hvac_action based icons - thanks @robex2005! by @warmfire540
- problem indicator shows 10+ now - thanks @MelleD by @warmfire540
- sticky entities shift fix - thanks @robex2005! by @warmfire540
- chore: yarn (deps): bump qs from 6.14.0 to 6.14.1 (#347) by @dependabot[bot]
- chore: yarn (deps): bump the all-dependencies group with 3 updates (#342) by @dependabot[bot]
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