Ability to set 'customize' within packages

The new packages option is great to group all pieces of a component. It would be great to be able to include the customize configuration(s) as well.

front_door_lock:
  lock:  
    - platform: mqtt
      name: "Front Door" 
      state_topic: "smartthings/Front Door/lock"
      command_topic: "smartthings/Front Door/lock"
      payload_lock: "locked"
      payload_unlock: "unlocked"
      initial: "locked"
      retain: true
  
  sensor:
    - platform: mqtt
      name: "Front Door Lock Battery"
      state_topic: "smartthings/Front Door/battery"
      command_topic: "smartthings/Front Door/battery"
      unit_of_measurement: "%"
      retain: true  
      
  customize:
    sensor.front_door_lock_battery:
      friendly_name: Lock Battery
      icon: mdi:battery-minus
3 Likes

Pull request for this was opened a couple days ago here (thanks @kellerza!)

2 Likes

This would only be syntactic sugar for

homeassistant:
  customize:

which allows you to put customization inside the packages.

HI Guys,

my Config:

homeassistant:
  unit_system: metric
  time_zone: Europe/Berlin
  packages: !include_dir_named include

i have a folder named include in the directory config:

in the customize ymal:

homeassistant:
  customize:

    person.test:
      entity_picture: '/local/test.png'

But the system don’t load a customize.yaml from the folder include.

When i try this one: https://joshmccarty.com/use-an-image-for-a-person-entity-in-home-assistant/

it works but there make a new customize.yaml in the Config directory.

Why does the system not read the file in the folder include?

Can anyone help me please?

That customize file is not setup as a package so you need to define the customize location in your configuration yaml or update it to follow the package format.