home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.66k stars 30.8k forks source link

trigger template image does not restore state #96055

Open Mariusthvdb opened 1 year ago

Mariusthvdb commented 1 year ago

The problem

as title (and opposed to the other trigger template platforms)

when using below trigger to create the template image, the dashboard shows a broken placeholder when HA starts, or template integration is reloaded

(we can add some extra triggers for those events, but that updates the template entity, and makes the picture-entity card show a dat of the last trigger, and not the date/time of the last snapshot creation)

What version of Home Assistant Core has the issue?

2023.7.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

template image

Link to integration documentation on our website

https://www.home-assistant.io/integrations/template/#image

Diagnostics information

No response

Example YAML snippet

template:

  - trigger:

      - platform: state
        entity_id:
          - binary_sensor.oprit_vehicle_detected
          - binary_sensor.oprit_person_detected
        to: 'on'

    image:

      - unique_id: last_snapshot_oprit_camera
        name: Last snapshot oprit camera
        url:

Anything in the logs that might be useful for us?

No response

Additional information

Scherm­afbeelding 2023-07-07 om 08 56 32
home-assistant[bot] commented 1 year ago

Hey there @phracturedblue, @tetienne, @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (template) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `template` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign template` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


template documentation template source (message by IssueLinks)

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

tankdeer commented 1 year ago

Very much still an issue

issue-triage-workflows[bot] commented 10 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

tankdeer commented 10 months ago

Still there

issue-triage-workflows[bot] commented 7 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.