Airzonecloud-HomeAssistant icon indicating copy to clipboard operation
Airzonecloud-HomeAssistant copied to clipboard

Error when climate on and not find climante automations

Open mrenfurecido opened this issue 3 years ago • 0 comments

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?

mrenfurecido avatar Feb 06 '22 18:02 mrenfurecido