What am I doing wrong? This is the idea for speed1, speed2, speed3. I want the water pump to turn on first then one of the fans. It works ok without the “- platform: template” and below delay:
"
ERROR Error while reading config: Invalid YAML syntax:
while parsing a block mapping
in “/config/esphome/Air Cool1.yaml”, line 33, column 5:
- platform: gpio
^
expected , but found ‘-’
in “/config/esphome/Air Cool1.yaml”, line 42, column 5:
- platform: template
^
"
For starter your indentation is wrong, under “turn on action” - lines below that (delay and turn.on…) should be two spaces to the right. Yaml is VERY picky for indentation.
Here is what finally validated, plus the next switch displayed here. Had to change some logic here as well. I will wait for comments before changing my other three switches.
After much testing I have concluded the delay is not provided as the docs say. I am using a D1-mini, so now I am thinking the hardware probably does not support it in the template. I was able to get a delay in one test by changing names and ID to the same name, but this would not allow me to have interlock and I didn’t have an action to turn the switch off or publish the template state.
I am just going to leave the switches in interlock configuration and do the delay with automation.
Delay is not depending on special hardware. So either what you want to do is gernal not supported or you have configured it wrong. For me it is not clear which delay is not working.
is not working. I tried different methods, but unsuccessful. To reiterate, I would like each motor speed to delay 30-40 seconds 40 secs now, then when I use the programmable thermostat it will turn on the water pump first, delay 40 seconds to turn the motor speed on. The programmer for Programmable Thermostat has not worked on the project for over a year. I am thinking of learning python to add this feature. But if it would be easier to do it here then fine. Now yaml accepts all the tried syntax’s, but the mini-d1 doesn’t respond to the delay commands. or when validating with ESPhome the code errors.