diff --git a/Common/Immich Album Watcher/blueprint.yaml b/Common/Immich Album Watcher/blueprint.yaml index ce06911..3909928 100644 --- a/Common/Immich Album Watcher/blueprint.yaml +++ b/Common/Immich Album Watcher/blueprint.yaml @@ -844,7 +844,7 @@ variables: event_new_name: "{{ trigger.event.data.new_name | default('') if trigger.event is defined else '' }}" # Album dates (look up from entity using event_album_id) - # Find the entity that has this album ID and get its created_at/updated_at attributes + # Find the entity that has this album ID and get its created_at/last_updated_at attributes event_album_entity: > {% if trigger.event is defined %} {% for entity_id in album_id_entities %} @@ -863,7 +863,7 @@ variables: {% endif %} event_album_updated: > {% if event_album_entity | length > 0 %} - {% set updated_attr = state_attr(event_album_entity | trim, 'updated_at') | default('', true) %} + {% set updated_attr = state_attr(event_album_entity | trim, 'last_updated_at') | default('', true) %} {% set updated_dt = updated_attr | as_datetime(none) if updated_attr is string and updated_attr | length > 0 else none %} {{ updated_dt.strftime(date_format) if updated_dt else '' }} {% else %} @@ -1092,7 +1092,7 @@ variables: {% set created_attr = state_attr(entity_id, 'created_at') | default('', true) %} {% set created_dt = created_attr | as_datetime(none) if created_attr is string and created_attr | length > 0 else none %} {% set album_created = created_dt.strftime(date_format) if created_dt else '' %} - {% set updated_attr = state_attr(entity_id, 'updated_at') | default('', true) %} + {% set updated_attr = state_attr(entity_id, 'last_updated_at') | default('', true) %} {% set updated_dt = updated_attr | as_datetime(none) if updated_attr is string and updated_attr | length > 0 else none %} {% set album_updated = updated_dt.strftime(date_format) if updated_dt else '' %} {% set item = periodic_album_template @@ -1230,7 +1230,7 @@ action: {% set created_dt = created_attr | as_datetime(none) if created_attr is string and created_attr | length > 0 else none %} {{ created_dt.strftime(date_format) if created_dt else '' }} current_album_updated: > - {% set updated_attr = state_attr(current_album_entity, 'updated_at') | default('', true) %} + {% set updated_attr = state_attr(current_album_entity, 'last_updated_at') | default('', true) %} {% set updated_dt = updated_attr | as_datetime(none) if updated_attr is string and updated_attr | length > 0 else none %} {{ updated_dt.strftime(date_format) if updated_dt else '' }} diff --git a/manifest.json b/manifest.json index 7a23fa9..22b6df4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,3 +1,3 @@ { - "version": "1.23.0" + "version": "1.23.1" }