1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00:00

Add on_open and on_closed triggers to cover (#2488)

This commit is contained in:
Chris Nussbaum
2021-10-11 21:39:21 -05:00
committed by GitHub
parent 6a5eb43454
commit b4f57972fb
3 changed files with 56 additions and 0 deletions

View File

@@ -2307,6 +2307,12 @@ cover:
tilt_lambda: !lambda 'return 0.5;'
tilt_state_topic: tilt/state/topic
tilt_command_topic: tilt/command/topic
on_open:
then:
- lambda: 'ESP_LOGD("cover", "open");'
on_closed:
then:
- lambda: 'ESP_LOGD("cover", "closed");'
- platform: am43
name: 'Test AM43'
id: am43_test