So I’m currently in the process of setting up templated update entities to remotely update my Docker containers since doing that manually is annoying enough with an increasing number of containers.
This is what I currently have:
- triggers:
- trigger: "time_pattern"
minutes: "/5"
actions:
- service: "shell_command.get_docker_version"
data:
compose_path: "~/docker/portainer"
container_name: "portainer"
response_variable: result
update:
- name: "Docker: Portainer"
unique_id: "85fcc27f-7e93-4b22-83e7-fe4143fc511e"
installed_version: "{{ result.stdout | default('unknown') }}"
latest_version: "{{ states('sensor.docker_portainer_latest') }}"
release_url: "{{ state_attr('sensor.docker_portainer_latest', 'html_url') }}"
title: "{{ state_attr('sensor.docker_portainer_latest', 'name') }}"
release_summary: >
{% set body = state_attr('sensor.docker_portainer_latest', 'body') %}
{{ body | default("No description available.") }}
availability: |-
{{
result is defined and result.stdout is defined
and has_value("sensor.docker_portainer_latest")
}}
install:
action: "script.update_docker_container"
data:
update_entity: "{{ this.entity_id }}"
compose_path: "~/docker/portainer"
to_version: "{{ states('sensor.docker_portainer_latest') }}"
from_version: "{{ result.stdout }}"
It basically works with getting and matching the versions and actually doing the update. What I’m currently struggling with is getting the update entity to switch to OFF after doing the update. I have no way of knowing when it’s complete except for retrieving the installed version again.
When trying to use homeassistant.update_entity, I only get the error NotImplementedError: Update method not implemented.
What’s a good way to fix that? I refrained from setting the time pattern to low since the scripts I call rely on SSH calls. Not sure if that would even be a problem setting the pattern to every 30 seconds or so?
Bonus question:
I’ve noticed that the release summary I get for the update is cut off. It cuts off just after “It’s not possible to” with the full being
## Known issues
- On Async Edge environments, an invalid update schedule date can be displayed when browsing a snapshot
### Known issues with Podman support
- Podman environments aren't supported by auto-onboarding script
- It's not possible to add Podman environments via socket, when running a Portainer server on Docker (and vice versa)
- Support for only CentOS 9, Podman 5 rootful
## Changes:
- Fixed an issue where the environment status was not updating in a timely fashion for Standard Edge Agent
- Fixed an issue where the `--tlscert` and `--tlskey` CLI options did not work unless `--sslcert` and `--sslkey` were also provided
- Fixed an issue where Edge Stacks with GitOps enabled were not being updated correctly
- Fixed an issue where the container engine defaulted to Docker when associating the first Kubernetes environment
- Resolved the following CVEs:
- CVE-2025-22871
- CVE-2025-22868
- CVE-2025-22869
- CVE-2025-4673
- CVE-2024-45341
- CVE-2024-45336
- CVE-2025-0913
- CVE-2024-45338
- CVE-2025-22872
- CVE-2024-40635
- CVE-2025-22870
- CVE-2025-22866
- CVE-2025-54410
- GHSA-2464-8j7c-4cjm
## Deprecated and removed features
**Deprecated features**
- None
**Removed features**
- None