Compare commits

...

2 Commits

Author SHA1 Message Date
github-actions[bot]
b0642e3871 Update HA version badge to 2025.9.4 2025-10-03 22:13:23 +00:00
Carlo Costanzo
f509fc1739 Add state trigger for garage doors and enhance notification message formatting
Implemented a new state trigger for the garage doors to notify when they are opened. Improved the notification message to dynamically reflect the status of both garage doors, providing clearer information on their state. This enhances user awareness and control over garage access.
2025-10-03 18:13:06 -04:00
2 changed files with 20 additions and 6 deletions

View File

@@ -330,6 +330,11 @@ automation:
trigger:
- platform: time_pattern
minutes: '/45'
- platform: state
entity_id:
- cover.large_garage_door
- cover.small_garage_door
to: 'open'
- platform: state
entity_id: group.family
to: not_home
@@ -370,8 +375,17 @@ automation:
- service: script.notify_engine
data:
title: 'Check Garage Doors:'
value1: "Small: {{ states('cover.small_garage_door')}}"
value2: "Large: {{ states('cover.large_garage_door')}}"
value1: >
{% set open = [] %}
{% if is_state('cover.small_garage_door','open') %}{% set _ = open.append('Small garage door') %}{% endif %}
{% if is_state('cover.large_garage_door','open') %}{% set _ = open.append('Large garage door') %}{% endif %}
{% if open|length == 0 %}
All garage doors are closed.
{% elif open|length == 1 %}
{{ open[0] }} is open.
{% else %}
{{ open|join(' and ') }} are open.
{% endif %}
who: "family"
camera_entity: "camera.garagecam"
group: 'information'

View File

@@ -1,13 +1,13 @@
<svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.9.4">
<title>2025.9.4</title>
<linearGradient id="wTySA" x2="0" y2="100%">
<linearGradient id="ATbZD" x2="0" y2="100%">
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="PCodJ"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#PCodJ)">
<mask id="ESXkm"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#ESXkm)">
<rect width="615" height="200" fill="#08C" x="0"/>
<rect width="615" height="200" fill="url(#wTySA)"/>
<rect width="615" height="200" fill="url(#ATbZD)"/>
</g>
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2025.9.4</text>

Before

Width:  |  Height:  |  Size: 811 B

After

Width:  |  Height:  |  Size: 811 B