Tried searching but haven’t found anything…
I added the below code and have a servo that works with a slider but the cover image has the UP arrow greyed out. The Stop and Down seem to work.
I’ve rebooted the ESP32 and restarted HA but the issue persists. What am I missing?
Application is a 3D printed 4" duct damper using a SG90 servo to turn the door 0-90 degrees.
esphome:
name: "vent"
esp8266:
board: nodemcuv2
logger:
api:
encryption:
key: "redacted"
services:
- service: control_servo
variables:
level: float
then:
- servo.write:
id: damper
level: !lambda 'return level / 100.0;'
ota:
password: "redacted"
wifi:
ssid: "WIFI-redacted"
password: "redacted"
ap:
ssid: "Spray-Tent Fallback Hotspot"
password: "redacted"
captive_portal:
output:
- platform: esp8266_pwm
id: pwm_output
pin: D3
frequency: 50 Hz
servo:
- id: damper
output: pwm_output
cover:
- platform: template
name: "Vent Damper"
id: cover1
open_action:
- servo.write:
id: damper
level: 100.0%
close_action:
- servo.write:
id: damper
level: -15.0%
stop_action:
- servo.write:
id: damper
level: 0.0%
- servo.detach: damper