Skip to content

Fails to initialize when the AC unit is in Auto mode #72

@dmllr

Description

@dmllr

There is an issue in initialization of DaikinFactory if AC (RX Series Urusara X) has been switched to Auto mode..

device = await DaikinFactory(ip_address, session)

leads to an "Error extracting values: Key p_1D not found" error.

This code from pydaikin/daikin_brp084.py

            # Get target temperature
            if self.values['mode'] in self.API_PATHS["temp_settings"]:
                self.values['stemp'] = str(
                    self.hex_to_temp(
                        self.find_value_by_pn(
                            response,
                            *self.get_path("temp_settings", self.values['mode']),
                        )
                    )
                )
            else:
                self.values['stemp'] = "--"

fails on self.find_value_by_pn.

If AC is in Cooling mode, no error happens. Interesting that if the AC is in Drying mode (which has no target temperature either). no error happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions