Skip to content

fix: inject AUTO fan mode for MH-AC-WIFI-1 devices in _get_fan_map#71

Open
kesawi wants to merge 1 commit into
jnimmo:masterfrom
kesawi:fix/mh-ac-wifi-fan-map
Open

fix: inject AUTO fan mode for MH-AC-WIFI-1 devices in _get_fan_map#71
kesawi wants to merge 1 commit into
jnimmo:masterfrom
kesawi:fix/mh-ac-wifi-fan-map

Conversation

@kesawi
Copy link
Copy Markdown

@kesawi kesawi commented May 14, 2026

Fixes #69

MH-AC-WIFI-1 adapters report fan speed states [1,2,3,4] in their datapoints descriptor, omitting state 0 (auto). No entry in INTESIS_MAP[67] exactly matches [1,2,3,4], so _get_fan_map() falls back to key 63 which incorrectly exposes "max" (5) as a fan option in HA — not advertised by the device and may not be supported depending on the connected MHI unit.

The device genuinely supports AUTO fan (uid 4, value 0) even though it is not advertised in the datapoints descriptor. This fix injects state 0 for MH-AC-WIFI devices before the map lookup, correctly matching key 30 {0: auto, 1: quiet, 2: low, 3: medium, 4: high} and removing the spurious max option.

Tested on MH-AC-WIFI-1 hardware with Mitsubishi Heavy Industries SRK series units (3 devices).

MH-AC-WIFI-1 adapters report fan speed states [1,2,3,4] in their
datapoints descriptor, omitting state 0 (auto). No entry in
INTESIS_MAP[67] exactly matches [1,2,3,4], so _get_fan_map() falls back
to key 63 which incorrectly exposes 'max' (5) as a fan option in HA.

The device genuinely supports AUTO fan (uid 4, value 0) even though it
is not advertised in the datapoints descriptor. Inject state 0 for
MH-AC-WIFI devices before the map lookup, correctly matching key 30
{0: auto, 1: quiet, 2: low, 3: medium, 4: high} and removing the
spurious 'max' option.

Fixes jnimmo#69

Tested on MH-AC-WIFI-1 hardware with Mitsubishi Heavy Industries SRK
series units.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

intesishome_local: MH-AC-WIFI-1 reports fan states [1,2,3,4] causing incorrect fallback fan map with spurious "max" option

1 participant