Skip to content

Error when climate on and not find climante automations #26

@mrenfurecido

Description

@mrenfurecido

Hello.

When I try to turn on airzone it turns off automatically after a few seconds, why?

- SALON apagado
19:11:27 - Hace 2 segundos
- SALON cambiado a Calor por Miguel
19:11:22 - Hace 7 segundos

Also, I have had to change heating to air-heating and cooling to air-cooling, if not, it told me that the mode did not exist.

Thank you.

set hvac mode on parent system

if hvac_mode == HVAC_MODE_HEAT:
self._device.group.set_mode("air-heating
elif hvac_mode == HVAC_MODE_COOL:
self._device.group.set_mode("air-cooling
elif hvac_mode == HVAC_MODE_DRY:
self._device.group.set_mode("dehumidify
elif hvac_mode == HVAC_MODE_FAN_ONLY:
self._device.group.set_mode("ventilation

Edit:

Change this:

if self._group.is_on:
if mode in [
"cooling",
"air-cooling",
"radiant-cooling",
"combined-cooling",
]:
return HVAC_MODE_COOL

        if mode in [
            "heating",
            "air-heating",
            "radiant-heating",
            "combined-heating",
            "emergency-heating",
        ]:
            return HVAC_MODE_HEAT

For this:

@property
def hvac_mode(self) -> str:
    """Return hvac operation ie. heat, cool mode."""
    mode = self._group.mode

    if self._group.is_on:
        if mode in [
            "air-cooling",
        ]:
            return HVAC_MODE_COOL

        if mode in [
            "air-heating",
        ]:
            return HVAC_MODE_HEAT

        if mode == "ventilation":
            return HVAC_MODE_FAN_ONLY

        if mode == "dehumidify":
            return HVAC_MODE_DRY

    return HVAC_MODE_OFF

and all ok...I do not understand.

When I try to create an automation I can't find the device, can't it be done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions