esphome / feature-requests

ESPHome Feature Request Tracker

Home Page:https://esphome.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package compilation enabled under condition

SeByDocKy opened this issue · comments

Describe the problem you have/What new integration you would like

In case of very large yaml model based on massive packages usage.... it would be great to allow according for example with a (templatable) boolean variable the usage of a given package

For example a way to do it could be

packages:
  left_garage_door: !include
    file: garage-door.yaml
    enable: true    #default

Perfectly enable can be templated by a lambda/substitution and of course when enable is set to false... the package (and childrens) is not compiled