The device to build the mapping for.
Optionalmode: MysaDeviceMode
The mode the device will be in, when known. Without it the mapping cannot be mode-specific and falls through to the device-wide sources.
A partial map from fan speed to the device-specific fn value.
Builds the send-side fan-speed
fnmapping for a device, for the mode the command will leave it in.Sources are consulted from most to least specific:
SupportedCaps.modes[md].fanSpeeds, mapped by value. A device can accept different speeds per mode — an AC-V1-0 offers all four in heat and cool, but onlyautoin dry — and only this list reflects that.SupportedCaps.fanSpeeds, zipped positionally with CanonicalFanSpeedOrder, so that a list of1, 2, 4, 6reads as auto, low, medium and high respectively.fnvalues even without enumerating them) and every other device the LegacyFanSpeedSendMap, preserving backward compatibility.