1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00
Files
esphome/tests/components/endstop/common.yaml
Juan Antonio Aldea d5c36eaf2a [tests] Remove superfluous else-blocks from lambdas (#11322)
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-10-17 21:40:54 -10:00

33 lines
665 B
YAML

binary_sensor:
- platform: template
id: bin1
lambda: |-
if (millis() > 10000) {
return true;
}
return false;
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
cover:
- platform: endstop
id: endstop_cover
name: Endstop Cover
stop_action:
- switch.turn_on: template_switch1
open_endstop: bin1
open_action:
- switch.turn_on: template_switch1
open_duration: 5min
close_endstop: bin1
close_action:
- switch.turn_on: template_switch2
close_duration: 4.5min
max_duration: 10min