Can someone explain to me why this config file uses the “package: cameras” key pair when customizing entities in the package file.
I understand how the customize section works. I get packages and their benefits. I also understand anchors and merging. I just don’t get the point of adding the “package” attribute with the value of the package name to an entity that is defined in that package.
Can some explain to me what the package attribute does?
Here’s a link to an example of a full package file im talking about
And a snippet:
homeassistant:
customize:
package.node_anchors:
common: &common
package: "cameras"
camera.kontor:
<<: *common
switch.barnrum_ptz_left:
<<: *common
hidden: true
icon: mdi:chevron-left
camera:
- name: Kontor
platform: mjpeg
mjpeg_url: !secret camera_kontor_mjpeg
still_image_url: !secret camera_kontor_still
username: !secret camera_kontor_username
password: !secret camera_kontor_password