"Architectural" question about using servos in HA via ESPHome

Hey everyone,

as I’m currently having issues with my Switchbot setup, and one of the workarounds I found was about adding an ESP as a “bridge” from Switchbot to HA. I’m now considering just skipping the whole Switchbot and just hooking up a servo directly to the ESP. According to Servo Component — ESPHome this wouldn’t be a big thing, except for the fact that HA does not support servo control directly, and with the manual method just by setting percentages directly to the servo.

If I would like to create a “shortcut” for that, is that possible? And if so: where?

Example:
shortcut could be “toggle button”, which then triggers a “servo to 10%, wait 5 milliseconds, servo back to 50%” logic.

Is this something I could put into a HA script? Or directly into the ESP and then expose that instead of the percentage setting?

Thanks! :slight_smile: