1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Template tilt cover (#577)

* Enabling tilt control in the template cover
Added test
Add tilt option to publish action

* Added CONF_TILT to alidation schema per comment

* Removed default for CONF_TILT
This commit is contained in:
mtl010957
2019-06-18 12:42:36 -05:00
committed by Otto Winter
parent 369d175694
commit 27453afa4e
4 changed files with 28 additions and 1 deletions

View File

@@ -439,6 +439,14 @@ cover:
close_action:
- switch.turn_on: gpio_switch2
close_duration: 4.5min
- platform: template
name: Template Cover with Tilt
tilt_lambda: "return 0.5;"
tilt_action:
- output.set_level:
id: out
level: !lambda "return tilt;"
output:
- platform: esp8266_pwm