jwillemsen / daikin_onecta

Home Assistant Integration for devices supported by the Daikin Onecta App
https://github.com/jwillemsen/daikin_onecta
GNU General Public License v3.0
295 stars 9 forks source link

error when set to fan_only #282

Closed brinkgit closed 3 months ago

brinkgit commented 3 months ago

When I set the airco from 'dry' to 'fan_only' by the action:

  - metadata: {}
    data:
      hvac_mode: fan_only
    action: climate.set_hvac_mode
    target:
      entity_id: climate.airco_woonkamer_room_temperature

an error shows up in the log (setting to fan_only is going OK):

Logger: homeassistant.components.websocket_api.http.connection
Bron: components/websocket_api/commands.py:283
integratie: Home Assistant WebSocket API ([documentatie](https://www.home-assistant.io/integrations/websocket_api), [problemen](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
Eerst voorgekomen: 09:25:23 (4 gebeurtenissen)
Laatst gelogd: 09:41:12

    [139901644379696] Fan mode is not valid. Valid fan modes are: auto, quiet, 1, 2, 3, 4, 5
    [139900359651200] Fan mode is not valid. Valid fan modes are: auto, quiet, 1, 2, 3, 4, 5
    [139900456198512] Fan mode is not valid. Valid fan modes are: auto, quiet, 1, 2, 3, 4, 5
    [139900479724496] Fan mode is not valid. Valid fan modes are: auto, quiet, 1, 2, 3, 4, 5

It does not show up when I set from 'cool' to 'fan_only'.

Detailed logging:

2024-08-13 09:40:48.228 DEBUG (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' request to set hvac_mode to dry
2024-08-13 09:40:48.228 INFO (MainThread) [custom_components.daikin_onecta.device] Path: /v1/gateway-devices/4a686588-c4ee-498f-ab91-d967f45a53e2/management-points/climateControl/characteristics/operationMode , options: {"value": "dry"}
2024-08-13 09:40:48.228 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER REQUEST URL: https://api.onecta.daikineurope.com/v1/gateway-devices/4a686588-c4ee-498f-ab91-d967f45a53e2/management-points/climateControl/characteristics/operationMode
2024-08-13 09:40:48.228 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER TYPE PATCH JSON: {"value": "dry"}
2024-08-13 09:40:49.326 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER RESPONSE CODE: 204 LIMIT: {'minute': 20, 'day': 200, 'remaining_minutes': 18, 'remaining_day': 178, 'retry_after': 0, 'ratelimit_reset': 12}
2024-08-13 09:40:49.326 DEBUG (MainThread) [custom_components.daikin_onecta.device] RES IS True
2024-08-13 09:40:49.326 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode dry has setpoint None
2024-08-13 09:40:49.326 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' supports preset_modes ['none', 'away', 'boost']
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' supports features 440
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Climate: Device sensoryData {'ref': '#sensoryData', 'settable': False, 'value': {'roomTemperature': {'settable': False, 'unit': '°C', 'value': 25, 'stepValue': 1, 'minValue': -25, 'maxValue': 50}, 'outdoorTemperature': {'settable': False, 'unit': '°C', 'value': 27.5, 'stepValue': 0.5, 'minValue': -25, 'maxValue': 50}}}
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature sensoryData {'settable': False, 'unit': '°C', 'value': 25, 'stepValue': 1, 'minValue': -25, 'maxValue': 50}
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature current temperature '25'
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode dry has setpoint None
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature max temperature 'None'
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode dry has setpoint None
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature min temperature 'None'
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode dry has setpoint None
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature target temperature step 'None'
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode dry has setpoint None
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature target temperature 'None'
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' support swing modes ['off', 'horizontal', 'vertical', 'both', 'comfort', 'comfort_horizontal']
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' supports preset_modes ['none', 'away', 'boost']
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Found fanspeed {'currentMode': {'value': 'auto', 'settable': True, 'values': ['auto']}}
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' found fan mode auto
2024-08-13 09:40:49.327 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' has swing mode 'off', determined from h:stop v:stop
2024-08-13 09:41:11.473 DEBUG (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' request to set hvac_mode to fan_only
2024-08-13 09:41:11.473 INFO (MainThread) [custom_components.daikin_onecta.device] Path: /v1/gateway-devices/4a686588-c4ee-498f-ab91-d967f45a53e2/management-points/climateControl/characteristics/operationMode , options: {"value": "fanOnly"}
2024-08-13 09:41:11.473 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER REQUEST URL: https://api.onecta.daikineurope.com/v1/gateway-devices/4a686588-c4ee-498f-ab91-d967f45a53e2/management-points/climateControl/characteristics/operationMode
2024-08-13 09:41:11.474 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER TYPE PATCH JSON: {"value": "fanOnly"}
2024-08-13 09:41:12.071 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER RESPONSE CODE: 204 LIMIT: {'minute': 20, 'day': 200, 'remaining_minutes': 19, 'remaining_day': 177, 'retry_after': 0, 'ratelimit_reset': 49}
2024-08-13 09:41:12.072 DEBUG (MainThread) [custom_components.daikin_onecta.device] RES IS True
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode fanOnly has setpoint None
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' supports preset_modes ['none', 'away', 'boost']
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' supports features 440
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Climate: Device sensoryData {'ref': '#sensoryData', 'settable': False, 'value': {'roomTemperature': {'settable': False, 'unit': '°C', 'value': 25, 'stepValue': 1, 'minValue': -25, 'maxValue': 50}, 'outdoorTemperature': {'settable': False, 'unit': '°C', 'value': 27.5, 'stepValue': 0.5, 'minValue': -25, 'maxValue': 50}}}
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature sensoryData {'settable': False, 'unit': '°C', 'value': 25, 'stepValue': 1, 'minValue': -25, 'maxValue': 50}
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature current temperature '25'
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode fanOnly has setpoint None
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature max temperature 'None'
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode fanOnly has setpoint None
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature min temperature 'None'
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode fanOnly has setpoint None
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature target temperature step 'None'
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature operation mode fanOnly has setpoint None
2024-08-13 09:41:12.072 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer': roomTemperature target temperature 'None'
2024-08-13 09:41:12.073 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' support swing modes ['off', 'horizontal', 'vertical', 'both']
2024-08-13 09:41:12.073 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' supports preset_modes ['none', 'away', 'boost']
2024-08-13 09:41:12.073 INFO (MainThread) [custom_components.daikin_onecta.climate] Found fanspeed {'currentMode': {'value': 'quiet', 'settable': True, 'values': ['auto', 'quiet', 'fixed']}, 'modes': {'fixed': {'value': 1, 'stepValue': 1, 'minValue': 1, 'maxValue': 5, 'settable': True}}}
2024-08-13 09:41:12.073 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' found fan mode auto
2024-08-13 09:41:12.073 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' found fan mode quiet
2024-08-13 09:41:12.073 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' found fan mode fixed
2024-08-13 09:41:12.073 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' found fixed {'fixed': {'value': 1, 'stepValue': 1, 'minValue': 1, 'maxValue': 5, 'settable': True}}
2024-08-13 09:41:12.074 INFO (MainThread) [custom_components.daikin_onecta.climate] Device 'Airco woonkamer' has swing mode 'off', determined from h:stop v:stop
2024-08-13 09:41:12.144 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139900479724496] Fan mode  is not valid. Valid fan modes are: auto, quiet, 1, 2, 3, 4, 5
jwillemsen commented 3 months ago

I can't reproduce it here, do you have some kind of automation that controls the unit? I think some code is setting the fan mode to empty which is not valid

jwillemsen commented 3 months ago

Looks there is a core issue for this, see https://github.com/home-assistant/frontend/issues/19620

jwillemsen commented 3 months ago

As this seems to be a core issue closing here

brinkgit commented 3 months ago

So I guess it can be ignored…

Op 13 aug 2024, om 10:27 heeft Johnny Willemsen @.***> het volgende geschreven:

As this seems to be a core issue closing here

— Reply to this email directly, view it on GitHub https://github.com/jwillemsen/daikin_onecta/issues/282#issuecomment-2285663352, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDBSD34IATR5P4PSG6M2ETZRG7PBAVCNFSM6AAAAABMNVSDBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBVGY3DGMZVGI. You are receiving this because you authored the thread.