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
74.04k stars 31.07k forks source link

camera.record will not support multiple entities anymore when entity_id should be part of the filename template #131779

Open NODeeJay opened 1 day ago

NODeeJay commented 1 day ago

The problem

With the the change https://github.com/home-assistant/core/pull/128592 discussed in https://github.com/home-assistant/core/issues/40241 the option to use the variable entity_id in a filename template when multiple entities are provided will not work anymore, however it was mentioned several times in the thread by multiple users.

this:

action: camera.record
  target:
    entitiy_id:
      - camera.cam1
      - camera.cam2
      - camera.cam3
  data:
    filename: {{ entity_id }}.mp4

will not work anymore and I did not find a way to pass an array to the variable one should define as suggested in the docs.

What version of Home Assistant Core has the issue?

2024.11

What was the last working version of Home Assistant Core?

2024.10

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Camera

Link to integration documentation on our website

https://www.home-assistant.io/integrations/camera/#action-record

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

A repair message is shown:

The pre-defined template variable entity_id was used when performing action camera.record targeting camera entity camera.cam_driveway_low_latency. The pre-defined template variable entity_id is being removed from the filename parameter of camera.record.

Please update your automations and scripts to use a manually defined variable instead and select Submit to close this issue.

Additional information

No response

home-assistant[bot] commented 1 day ago

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

Code owner commands Code owners of `camera` 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 camera` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


camera documentation camera source (message by IssueLinks)