Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when climate on and not find climante automations #26

Open
mrenfurecido opened this issue Feb 6, 2022 · 0 comments
Open

Error when climate on and not find climante automations #26

mrenfurecido opened this issue Feb 6, 2022 · 0 comments

Comments

@mrenfurecido
Copy link

mrenfurecido commented Feb 6, 2022

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 mrenfurecido changed the title Error when on climate Error when climate on Feb 6, 2022
@mrenfurecido mrenfurecido changed the title Error when climate on Error when climate on and not find climante automations Feb 6, 2022
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

No branches or pull requests

1 participant