In your main yaml file you have something like this:
packages: left_garage_door: !include file: garage-door.yaml vars: door_name: Left door_location: left open_switch_gpio: 25 close_switch_gpio: 26
It's the best version of templating YAML that I have experienced.
1. https://esphome.io/guides/configuration-types#packages-as-te...
In your main yaml file you have something like this:
Then in garage-door.yaml you can reference the vars directly with ${door_name} syntax.It's the best version of templating YAML that I have experienced.
1. https://esphome.io/guides/configuration-types#packages-as-te...