ESPHome Servo Control - Up arrow greyed out

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

I added the web service and it works properly there but the up/open arrow is still greyed out in HA.


image

Figured it out finally after a few more hours of searching then trial & error.

Adding optimistic: true changed the state so that HA knows to toggle the buttons.

cover:
  - platform: template
    name: "Vent Damper"
    id: cover1
    optimistic: true
    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