Templated version of the config #179
excalbian
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since I have two Vue's (42 position panel) and it's how I prefer to setup my esphome projects, I converted the example to a file that can be used as a package (see below). This allows me to reference the package from the individual device files, overriding values as needed.
Note that I have wifi as a separate package (because I use it in multiple nodes) but you could move the wifi definitions back into the 'main' package if you wanted. I also use a few other 'standard' packages on my nodes (text sensors with device status, project info, and a restart button) which I've left out for brevity.
Simplest node definition
More involved node definition
Package definition (shared/packages/vue.yaml)
Package definition (shared/packages/wifi-no-captive.yaml)
Beta Was this translation helpful? Give feedback.
All reactions