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:
@@ -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
|
||||
|
Reference in New Issue
Block a user