Update notification service

This commit is contained in:
MacRimi
2026-03-20 21:45:19 +01:00
parent 22cd2e4bb3
commit c24c10a13a
13 changed files with 542 additions and 150 deletions

View File

@@ -775,6 +775,21 @@ TEMPLATES = {
'default_enabled': False,
},
# ── AI model migration ──
'ai_model_migrated': {
'title': '{hostname}: AI model updated',
'body': (
'The AI model for notifications has been automatically updated.\n'
'Provider: {provider}\n'
'Previous model: {old_model}\n'
'New model: {new_model}\n\n'
'{message}'
),
'label': 'AI model auto-updated',
'group': 'system',
'default_enabled': True,
},
# ── Burst aggregation summaries (hidden -- auto-generated by BurstAggregator) ──
# These inherit enabled state from their parent event type at dispatch time.
'burst_auth_fail': {
@@ -1106,6 +1121,8 @@ EVENT_EMOJI = {
'update_summary': '\U0001F4E6',
'pve_update': '\U0001F195', # NEW
'update_complete': '\u2705',
# AI
'ai_model_migrated': '\U0001F916', # robot
}
# Decorative field-level icons for body text enrichment