HomeKit Bridge: export fan oscillation (HomeKit Swing Mode)

I'd like the built-in HomeKit Bridge to export a fan's oscillation, so it shows up as the "Oscillate" toggle inside the fan tile in the Home app.

Current behaviour (platform 2.5.2.129)

  • A device with the Fan Control capability can be exported as Fan, Dimmer or Switch.
  • The exported Fan has power and speed only. There are no Extras for it.
  • As far as I can tell there is no standard capability for oscillation, so a driver can only offer it as a custom attribute and command, which the Bridge does not see.

What I do today

My driver creates a child "Generic Component Switch" for oscillation and I export that as a separate Switch. It works, but every fan takes two tiles in the Home app, and the oscillation switch is not visibly tied to its fan.

Request

HomeKit's fan service already has a Swing Mode characteristic (disabled / enabled). Either of these would cover it:

  1. A standard capability for oscillation (for example an oscillation attribute with values on / off and a setOscillation command), which the Bridge maps to Swing Mode.
  2. Or, without a new capability, a Bridge option on a Fan to map Swing Mode to an attribute and command that follow a documented naming convention.

Many pedestal and tower fans have oscillation, so this would help more than one driver.