Skip to content

v18.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 00:47
· 16 commits to master since this release

⚠️⚠️⚠️ BREAKING CHANGE! READ BEFORE UPDATE ⚠️⚠️⚠️

This release is a major one and it is a breaking change. This version needs Home Assistant 2026.12.0 as the minimum version to work. So, if you are not already in this version of Home Assistant DO NOT UPDATE.

Fixed item_background_hover option

This release makes the item_background_hover option to start working in Home Assistant 2026.12.0. If you are not in this version of Home Assistant, the aformentioned option will not work and also will throw a JavaScript error in the console:

Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'e.shadowRoot.querySelector(${Ne.ANCHOR}, ${Ne.BUTTON}).querySelector(Re.HA_RIPPLE).shadowRoot')

Rename of the plugin bundle

Important

This release brings a new way of loading the configuration of the plugin. As each method of loading the configuration is incompatible with the other, and to make it clearer which method a bundle uses, a suffix has been added to the end of each bundle name, provoking a breaking change because users need to take action and change their configuration depending on the method that they prefer to chose.

Until now, the only way to retrieve the configuration was through a public YAML file located in the /www folder which is mapped to the public /local alias. This was a concern for users that expose the Home Assistant instance to the internet (like the ones that use Nabucasa), because that means that anyone could access the custom-sidebar-config.yaml file and this configuration tends to have user names, entities names and other information that not many users want to have public on purpose.

If you don't expose your Home Assistant instance to the internet in any way, and you want to keep using the public configuration stored in the /www folder, you only need to rename the name of the bundle in the frontend > extra_module_url section in your configuration. But if you prefer to make this configuration private, then you need to follow extra steps.

If you are already in Home Assistant 2026.12.0 and you have updated the plugin, you need to follow one of the next migration paths:

For users that would like to keep the configuration in the public www folder

  1. Go to your configuration.yaml file and rename the path of the plugin bundle:
frontend:
    extra_module_url:
-      - /local/community/custom-sidebar/custom-sidebar-plugin.js
+      - /local/community/custom-sidebar/custom-sidebar-plugin-public.js
  1. Restart Home Assistant
  2. And the most important part, clean cache from any place that could be caching the previous plugin bundle

For users that would like to move the configuration out of the www folder

  1. Move your custom-sidebar-config.yaml file from the /config/www/ folder to the /config/ folder
  2. Create the next command_line sensor in your configuration.yaml file:
command_line:
  - sensor:
      unique_id: custom_sidebar_configuration
      name: Custom Sidebar Configuration
      command: |
        python3 -c '
        import json
        from homeassistant.util.yaml import load_yaml
        config = load_yaml("/config/custom-sidebar-config.yaml")
        print(json.dumps({"config": config}, default=str))'
      value_template: "OK"
      json_attributes:
        - config
  1. In the same configuration.yaml file, rename the path of the plugin bundle:
frontend:
    extra_module_url:
-      - /local/community/custom-sidebar/custom-sidebar-plugin.js
+      - /local/community/custom-sidebar/custom-sidebar-plugin-sensor.js
  1. Restart Home Assistant
  2. And the most important part, clean cache from any place that could be caching the previous plugin bundle

Note

  1. By default, the command_line sensor will be updated every 30 seconds, so if you make changes in the YAML configuration file, you will not be able to see those changes until the sensor is updated.
  2. If you don't plan to update your configuration too often, you can add the scan_interval option with a value of 86400 (24 hours).
  3. To force an update of the command_line sensor, you can go to the Tools > Actions dashboard and execute the homeassistant.update_entity action sending sensor.custom_sidebar_configuration as entity_id.

🚀 Features

🛠 Fixes

🧩 Dependencies

  • [Dependencies]: Bump the dependencies-dev group with 5 updates
  • Update home-assistant-javascript-templates to version 9.0.0
  • [Dependencies]: Bump the dependencies-dev group with 2 updates
  • [Dependencies]: Bump the dependencies-dev group with 4 updates
  • [Dependencies]: Bump the dependencies-prod group across 1 directory with 2 updates
  • Update home-assistant-query-selector to version 8.0.0

⚙️ Configuration

📝 Documentation