home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.15k stars 30.19k forks source link

Tado air cooling v3, mode fan only not working #117954

Open devildant opened 4 months ago

devildant commented 4 months ago

The problem

Hello,

i have air cooling teknopoint with tado climatisation v3, when i try to set the mode fan only (hvac) nothing happens and I return to the previous mode. The mode dry, cool, heat work but not the fan only mode But if i set the fan only direct on tado application, the themostat switch correctly in ha

What version of Home Assistant Core has the issue?

core-24.5.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tado/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @chiefdragon, @erwindouna, mind taking a look at this issue as it has been labeled with an integration (tado) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tado` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tado` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tado documentation tado source (message by IssueLinks)

devildant commented 4 months ago

https://github.com/home-assistant/core/assets/8700106/72b1b079-360b-4edf-b027-2186f0ea5a95

devildant commented 3 months ago

Someone?

erwindouna commented 3 months ago

Sorry for a late response. Can you please enable debugging and show what's happening in the logs? Currently it's hard to provide support without knowing what happens on the background.

devildant commented 3 months ago

Hello, no problem, sorry for missing log.

the logs :

2024-06-08 13:10:15.417 DEBUG (SyncWorker_2) [homeassistant.components.tado] Dispatching update to xxxx mobile device: {'name': 'Iphone', 'id': xxxxx, 'settings': {'geoTrackingEnabled': False, 'specialOffersEnabled': True, 'onDemandLogRetrievalEnabled': False, 'pushNotifications': {'lowBatteryReminder': True, 'awayModeReminder': True, 'homeModeReminder': True, 'openWindowReminder': True, 'energySavingsReportReminder': True, 'incidentDetection': True, 'energyIqReminder': True}}, 'deviceMetadata': {'platform': 'iOS', 'osVersion': '17.5.1', 'model': 'iPhone15,2', 'locale': 'fr'}}
2024-06-08 13:10:15.418 DEBUG (MainThread) [homeassistant.components.tado.device_tracker] Fetching Tado devices from API for (newly) tracked entities
2024-06-08 13:10:17.244 DEBUG (SyncWorker_4) [homeassistant.components.tado.climate] Switching to FAN for zone Chambre clim (15) with temperature 24.62 °C and duration None using overlay TADO_MODE
2024-06-08 13:10:17.244 DEBUG (SyncWorker_4) [homeassistant.components.tado] Set overlay for zone 15: overlay_mode=TADO_MODE, temp=None, duration=None, type=AIR_CONDITIONING, mode=FAN fan_speed=None swing=None
2024-06-08 13:10:17.294 DEBUG (SyncWorker_4) [homeassistant.components.tado] Updating zone 15
2024-06-08 13:10:17.386 DEBUG (SyncWorker_4) [PyTado.zone] Processing data from zone 15
2024-06-08 13:10:17.387 DEBUG (SyncWorker_4) [homeassistant.components.tado] Dispatching update to xxxx zone 15: <PyTado.zone.TadoZone object at 0x7f7a875670>
2024-06-08 13:10:24.322 DEBUG (SyncWorker_21) [homeassistant.components.tado.climate] Switching to FAN for zone Chambre clim (15) with temperature 24.62 °C and duration None using overlay TADO_MODE
2024-06-08 13:10:24.322 DEBUG (SyncWorker_21) [homeassistant.components.tado] Set overlay for zone 15: overlay_mode=TADO_MODE, temp=None, duration=None, type=AIR_CONDITIONING, mode=FAN fan_speed=None swing=None
2024-06-08 13:10:24.375 DEBUG (SyncWorker_21) [homeassistant.components.tado] Updating zone 15
2024-06-08 13:10:24.485 DEBUG (SyncWorker_21) [PyTado.zone] Processing data from zone 15
2024-06-08 13:10:24.486 DEBUG (SyncWorker_21) [homeassistant.components.tado] Dispatching update to xxxx zone 15: <PyTado.zone.TadoZone object at 0x7f7a8cc1a0>

note: fan speed and swing mode shouldn't be None :p but that's another issue ^^

devildant commented 3 months ago

for this log, i just try to set fan_only mode

devildant commented 3 months ago

also, i caught the response api in mytado (capabilities?ngsw-bypass=true) if can help :

{
    "type": "AIR_CONDITIONING",
    "COOL": {
        "temperatures": {
            "celsius": {
                "min": 16,
                "max": 31,
                "step": 1.0
            },
            "fahrenheit": {
                "min": 61,
                "max": 88,
                "step": 1.0
            }
        },
        "fanLevel": [
            "LEVEL3",
            "LEVEL2",
            "AUTO",
            "LEVEL1",
            "LEVEL4",
            "LEVEL5"
        ],
        "verticalSwing": [
            "MID_UP",
            "MID_DOWN",
            "ON",
            "OFF",
            "UP",
            "MID",
            "DOWN"
        ],
        "horizontalSwing": [
            "OFF",
            "ON"
        ],
        "light": [
            "ON",
            "OFF"
        ]
    },
    "FAN": {
        "temperatures": {
            "celsius": {
                "min": 16,
                "max": 31,
                "step": 1.0
            },
            "fahrenheit": {
                "min": 61,
                "max": 88,
                "step": 1.0
            }
        },
        "fanLevel": [
            "LEVEL3",
            "LEVEL2",
            "AUTO",
            "LEVEL1",
            "LEVEL4",
            "LEVEL5"
        ],
        "verticalSwing": [
            "MID_UP",
            "MID_DOWN",
            "ON",
            "OFF",
            "UP",
            "MID",
            "DOWN"
        ],
        "horizontalSwing": [
            "OFF",
            "ON"
        ],
        "light": [
            "ON",
            "OFF"
        ]
    },
    "AUTO": {
        "fanLevel": [
            "LEVEL3",
            "LEVEL2",
            "AUTO",
            "LEVEL1",
            "LEVEL4",
            "LEVEL5"
        ],
        "verticalSwing": [
            "MID_UP",
            "MID_DOWN",
            "ON",
            "OFF",
            "UP",
            "MID",
            "DOWN"
        ],
        "horizontalSwing": [
            "OFF",
            "ON"
        ],
        "light": [
            "ON",
            "OFF"
        ]
    },
    "HEAT": {
        "temperatures": {
            "celsius": {
                "min": 16,
                "max": 31,
                "step": 1.0
            },
            "fahrenheit": {
                "min": 61,
                "max": 88,
                "step": 1.0
            }
        },
        "fanLevel": [
            "LEVEL3",
            "LEVEL2",
            "AUTO",
            "LEVEL1",
            "LEVEL4",
            "LEVEL5"
        ],
        "verticalSwing": [
            "MID_UP",
            "MID_DOWN",
            "ON",
            "OFF",
            "UP",
            "MID",
            "DOWN"
        ],
        "horizontalSwing": [
            "OFF",
            "ON"
        ],
        "light": [
            "ON",
            "OFF"
        ]
    },
    "DRY": {
        "temperatures": {
            "celsius": {
                "min": 16,
                "max": 31,
                "step": 1.0
            },
            "fahrenheit": {
                "min": 61,
                "max": 88,
                "step": 1.0
            }
        },
        "verticalSwing": [
            "MID_UP",
            "MID_DOWN",
            "ON",
            "OFF",
            "UP",
            "MID",
            "DOWN"
        ],
        "horizontalSwing": [
            "OFF",
            "ON"
        ],
        "light": [
            "ON",
            "OFF"
        ]
    },
    "initialStates": {
        "mode": "COOL",
        "modes": {
            "COOL": {
                "temperature": {
                    "celsius": 24,
                    "fahrenheit": 75
                },
                "fanLevel": "LEVEL3",
                "verticalSwing": "OFF",
                "horizontalSwing": "OFF",
                "light": "ON"
            },
            "HEAT": {
                "temperature": {
                    "celsius": 24,
                    "fahrenheit": 75
                },
                "fanLevel": "LEVEL3",
                "verticalSwing": "OFF",
                "horizontalSwing": "OFF",
                "light": "ON"
            },
            "DRY": {
                "temperature": {
                    "celsius": 24,
                    "fahrenheit": 75
                },
                "verticalSwing": "OFF",
                "horizontalSwing": "OFF",
                "light": "ON"
            },
            "FAN": {
                "temperature": {
                    "celsius": 24,
                    "fahrenheit": 75
                },
                "fanLevel": "LEVEL3",
                "verticalSwing": "OFF",
                "horizontalSwing": "OFF",
                "light": "ON"
            },
            "AUTO": {
                "fanLevel": "LEVEL3",
                "verticalSwing": "OFF",
                "horizontalSwing": "OFF",
                "light": "ON"
            }
        }
    }
}
devildant commented 3 months ago

hi @erwindouna it's ok for the logs ?

erwindouna commented 3 months ago

Are you able to retrieve the underlying logs of PyTado? I wonder what the Tado backend returns.

devildant commented 3 months ago

Are you able to retrieve the underlying logs of PyTado? I wonder what the Tado backend returns.

I want to, but how can I obtain these logs?

illuzn commented 3 months ago

I suspect this might be a long running issue with pyTado and the now deprecated fan_speed. See #95389 and #117378

fan_speed=None is invalid and tado will assume you want to have your AC off. See the existing comments here: https://github.com/home-assistant/core/blob/473b3b61ebea3096ec75ebcf54c25615a32f3247/homeassistant/components/tado/climate.py#L683-L684

To further diagnose, can you send what is sent via the tado integration when you activate heat or cool modes.

devildant commented 3 months ago

To further diagnose, can you send what is sent via the tado integration when you activate heat or cool modes.

hi, Of course

2024-06-23 16:01:40.593 DEBUG (SyncWorker_33) [homeassistant.components.tado.climate] Switching to COOL for zone Chambre clim (15) with temperature 21.16 °C and duration None using overlay TADO_MODE
2024-06-23 16:01:40.594 DEBUG (SyncWorker_33) [homeassistant.components.tado] Set overlay for zone 15: overlay_mode=TADO_MODE, temp=21.16, duration=None, type=AIR_CONDITIONING, mode=COOL fan_speed=None swing=None
2024-06-23 16:01:40.683 DEBUG (SyncWorker_33) [homeassistant.components.tado] Updating zone 15
2024-06-23 16:01:40.776 DEBUG (SyncWorker_33) [PyTado.zone] Processing data from zone 15
2024-06-23 16:01:40.777 DEBUG (SyncWorker_33) [homeassistant.components.tado] Dispatching update to 1225773 zone 15: <PyTado.zone.TadoZone object at 0x7f3267c380>
illuzn commented 3 months ago

I'm shocked... I have no idea how it's turning on with fan_speed=None

In any event, I suspect this will be resolved once the tado integration is updated with the new library (should be in 2024.7). Of course, you could try spinning up a container from the dev version of homeassistant to test (but I assume you are an end-user and have no idea how to do that).

devildant commented 3 months ago

Yes i will wait the next update :p

devildant commented 2 months ago

hi,

i update the HA core to 2024.7.3, same result, fan mode selection not working with same log... :(

illuzn commented 2 months ago

I believe this is still a WIP: https://github.com/erwindouna/python-tado/issues/57