I am attempting to create a device with 6 solenoids connected to it
I want to ensure that if HA goes down - the esp32 still turns off the solenoid - so I tried to create a button , which runs a script which turns the output on and then 1 minute later off
At the moment I have only included the file 3 times
When I use the package with parameters I get a switch for each package - but only one button is created - the last one also the button turns all three switches on and then off after the one minute
The three switches operate independently but I have not checked if the GPIO pin is being correctly configured yet
I donât know enough to see if there are three scripts ,
However I donât understand how the package include works fine with the substitution work for both the switch and button - but only the last button gets created when all the Switches get created
I tried adding a space into the Button name before the $ - that does not help
I tried adding spaces before the $ in everything - but spaces are now allowed in IDs
Here is the screen shot of the ESPHome device - showing the three switches and the single button
Is this a bug, expected behaviour or am I just not doing something right.
I was so hopeful - but there is no change with all substitutions having had the ${ syntax added
I have also done all 5 solenoids so there are more now
I also find it strange that the button - coded to only affect one switch affects all five switches
This is the copy and past from the Activity log in esphome
Orchard6 Water Solenoid greenhouse turned on
9:26:41 PM - Now
Orchard6 Water Solenoid nursery turned on
9:26:41 PM - Now
Orchard6 Water Solenoid chickens turned on
9:26:41 PM - Now
Orchard6 Water Solenoid gumtrees turned on
9:26:41 PM - Now
Orchard6 Water Solenoid vegetablegarden turned on
9:26:41 PM - Now
Orchard6 RunWaterTimer greenhouse changed to January 7, 2026 at 9:26 PM triggered by action Button: Press
9:26:41 PM - Now - Ross
and even better the helpful person who told me this also said - the âvalidateâ button in ESPHome gives you the expanded full yaml , so it shows all the YASML AFTER the includes, expansions and substitutions
it was pretty obvious what was happening when I looked at that