Skip to content

IndexError on ECO mode activation - Model 171H120F #666

@torresjosea70c

Description

@torresjosea70c

HA core version

2026.2.3

Intergration version

v0.6.10

Device type and model

Heat Pump Wi-Fi Controller 171H120F (0)

Used App

skip

The description of problem

Hello,

When activating ECO mode on my heat pump, the integration crashes with the following error:

Model: 171H120F
Subtype: 0
Device protocol: 3
Message protocol: 0

Error:
File "midealocal/devices/c3/message.py", line 373
self.eco_function_state = body[data_offset] & 0x01 > 0
IndexError: bytearray index out of range

This causes all sensors to lose their values until the integration is reinstalled.

midea_ac_lan version: latest
Home Assistant version: latest

The logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions