|
9 | 9 | # ------------------------------------------------------------------- |
10 | 10 | # Notes: Expects JSON with title/message/type from the Tugtainer template. |
11 | 11 | # Notes: Creates persistent notifications and stamps last-update time. |
12 | | -# Notes: Fires `tugtainer_available_detected` when report contains `### Available:`. |
| 12 | +# Notes: Fires update events independently when a report has both Available and Updated sections. |
13 | 13 | # Notes: Fires `tugtainer_home_assistant_core_updated` when `### Updated:` includes Home Assistant. |
14 | 14 | # Notes: Home Assistant changelog dispatch uses core-YYYY.M URL format from parsed/fallback version. |
15 | 15 | # Notes: Joanna dispatch cooldown uses mode=single with a 24-hour delay lockout. |
@@ -89,29 +89,28 @@ automation: |
89 | 89 | data: |
90 | 90 | title: "{{ title }}" |
91 | 91 | message: "{{ full_message }}" |
92 | | - - choose: |
93 | | - - conditions: |
94 | | - - condition: template |
95 | | - value_template: "{{ has_available_section }}" |
96 | | - sequence: |
97 | | - - event: tugtainer_available_detected |
98 | | - event_data: |
99 | | - title: "{{ title }}" |
100 | | - event_type: "{{ event_type }}" |
101 | | - message: "{{ message }}" |
102 | | - - conditions: |
103 | | - - condition: template |
104 | | - value_template: "{{ ha_core_update_detected and (ha_core_version_minor | trim != '') }}" |
105 | | - sequence: |
106 | | - - event: tugtainer_home_assistant_core_updated |
107 | | - event_data: |
108 | | - title: "{{ title }}" |
109 | | - event_type: "{{ event_type }}" |
110 | | - message: "{{ message }}" |
111 | | - core_version_full: "{{ ha_core_version_full | trim }}" |
112 | | - core_version_minor: "{{ ha_core_version_minor | trim }}" |
113 | | - changelog_url: "{{ ha_core_changelog_url | trim }}" |
114 | | - report_excerpt: "{{ ha_report_excerpt | trim }}" |
| 92 | + - if: |
| 93 | + - condition: template |
| 94 | + value_template: "{{ has_available_section }}" |
| 95 | + then: |
| 96 | + - event: tugtainer_available_detected |
| 97 | + event_data: |
| 98 | + title: "{{ title }}" |
| 99 | + event_type: "{{ event_type }}" |
| 100 | + message: "{{ message }}" |
| 101 | + - if: |
| 102 | + - condition: template |
| 103 | + value_template: "{{ ha_core_update_detected and (ha_core_version_minor | trim != '') }}" |
| 104 | + then: |
| 105 | + - event: tugtainer_home_assistant_core_updated |
| 106 | + event_data: |
| 107 | + title: "{{ title }}" |
| 108 | + event_type: "{{ event_type }}" |
| 109 | + message: "{{ message }}" |
| 110 | + core_version_full: "{{ ha_core_version_full | trim }}" |
| 111 | + core_version_minor: "{{ ha_core_version_minor | trim }}" |
| 112 | + changelog_url: "{{ ha_core_changelog_url | trim }}" |
| 113 | + report_excerpt: "{{ ha_report_excerpt | trim }}" |
115 | 114 |
|
116 | 115 | - alias: "Tugtainer - Dispatch Joanna For Available Updates" |
117 | 116 | id: tugtainer_dispatch_joanna_for_available_updates |
@@ -149,7 +148,7 @@ automation: |
149 | 148 |
|
150 | 149 | - alias: "Tugtainer - Dispatch Joanna For Home Assistant Core Digest" |
151 | 150 | id: tugtainer_dispatch_joanna_for_home_assistant_core_digest |
152 | | - description: "Dispatch Joanna after Home Assistant core is updated so changelog actions are captured in a GitHub digest issue." |
| 151 | + description: "Dispatch Joanna after Home Assistant core is updated so relevant changelog notes reach the morning digest." |
153 | 152 | mode: queued |
154 | 153 | trigger: |
155 | 154 | - platform: event |
@@ -187,7 +186,7 @@ automation: |
187 | 186 | source: "home_assistant_automation.tugtainer_home_assistant_core_digest" |
188 | 187 | summary: >- |
189 | 188 | Home Assistant core updated to {{ core_version_full }} via Tugtainer. |
190 | | - Build changelog digest and open/refresh the GitHub Update Digest issue. |
| 189 | + Queue a concise changelog note for the morning digest. |
191 | 190 | entity_ids: |
192 | 191 | - "input_datetime.tugtainer_last_update" |
193 | 192 | diagnostics: >- |
|
0 commit comments