Is it possible to have ESPHome present a Sonoff switch as a light?

Yes, I noticed. This said, despite the docs for output stating that

Note that output components are not switches

I still “switch” (toggle) though it (from the light component). I asked with more details about that here: What is in ESPHome the relationship between binary_switch, switch and output?