SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

The air conditioner cannot be used

Open seocgr opened this issue 10 months ago • 5 comments

The latest version of haos, Midea air conditioner works fine in ewelinkapp. After ewelinkapp is added to SonoffLAN, the air conditioner cannot be used.

seocgr avatar Feb 21 '25 03:02 seocgr

https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#issues

AlexxIT avatar Feb 21 '25 08:02 AlexxIT

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.2.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.1",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Asia/Shanghai",
    "os_name": "Linux",
    "os_version": "6.6.73-haos",
    "supervisor": "2025.02.1",
    "host_os": "Home Assistant OS 14.2",
    "docker_version": "27.2.0",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hikconnect": {
      "documentation": "https://github.com/tomasbedrich/home-assistant-hikconnect",
      "version": "2.4.0",
      "requirements": [
        "hikconnect==1.2.1"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "colorfulclouds": {
      "documentation": "https://github.com/fineemb/Colorfulclouds-weather",
      "version": "2.0.3",
      "requirements": []
    },
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.8.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "hikvision_next": {
      "documentation": "https://github.com/maciej-or/hikvision_next",
      "version": "1.1.1",
      "requirements": [
        "xmltodict==0.13.0",
        "requests-toolbelt==1.0.0"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "codeowners": [
      "AlexxIT"
    ],
    "config_flow": true,
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.8.2",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.0003393809965928085
    },
    "01JMH1J1YT06277HRES2VDQCJY": {
      "wait_import_platforms": -0.0002774210006464273,
      "wait_base_component": -0.00269341999955941,
      "config_entry_setup": 0.8729839849984273
    }
  },
  "data": {
    "version": "c4b6fda",
    "cloud_auth": true,
    "config": null,
    "options": {
      "debug": false,
      "homes": 1,
      "mode": "cloud"
    },
    "errors": [],
    "devices": {
      "ab70031553": {
        "uiid": 175,
        "params": {
          "uiActive": 120
        },
        "model": "MideaConditioner",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "ab70031552": {
        "uiid": 151,
        "params": {
          "uiActive": 120
        },
        "model": "MideaConditioner",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "ab70031551": {
        "uiid": 151,
        "params": {
          "screen_display_now": "on",
          "power_on_time_value": 0,
          "mode": "heat",
          "dust_full_time": 0,
          "power_off_time_value": 0,
          "analysis_value": "power,mode,temperature,wind_speed,power_on_timer,smart_dry_value,power_off_timer,power_off_time_value,power_on_time_value,ptc,eco,dry,wind_swing_lr,wind_swing_lr_under,wind_swing_ud,kick_quilt,prevent_cold,small_temperature,purifier,dust_full_time,indoor_temperature",
          "wind_swing_lr_under": "off",
          "wind_swing_ud": "off",
          "version": 83,
          "dry": "on",
          "eco": "off",
          "comfort_sleep": "off",
          "natural_wind": "off",
          "purifier": "off",
          "prevent_cold": "off",
          "error_code": 0,
          "power_on_timer": "off",
          "kick_quilt": "off",
          "power_saving": "off",
          "small_temperature": 0,
          "power_off_timer": "off",
          "indoor_temperature": 9.9,
          "power": "off",
          "wind_swing_lr": "off",
          "strong_wind": "off",
          "pmv": -3.5,
          "temperature": 25,
          "wind_speed": 102,
          "ptc": "off",
          "uiActive": 120
        },
        "model": "MideaConditioner",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "1000da8e5a": {
        "uiid": 1,
        "params": {
          "version": 8,
          "sledOnline": "off",
          "switch": "off",
          "fwVersion": "3.3.1",
          "rssi": -55,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "bindInfos": "***"
        },
        "model": "SA-018",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      }
    }
  }
}

seocgr avatar Feb 21 '25 08:02 seocgr

Image

Image The obtained switch is normal, but the Midea water heater and air conditioner display incorrectly and cannot be used

seocgr avatar Feb 21 '25 08:02 seocgr

It's a very complicated device. I can't write support remotely. Maybe some of the other owners can.

AlexxIT avatar Feb 21 '25 09:02 AlexxIT

2025-02-21 11:16:17.661 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hikconnect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 11:16:17.663 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 11:16:17.665 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration colorfulclouds which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 11:16:17.666 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 11:16:17.668 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hikvision_next which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 11:18:04.287 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package hikconnect==1.2.1: error: Failed to fetch: `https://pypi.org/simple/propcache/`
  Caused by: request or response body error
  Caused by: error reading a body from connection
  Caused by: connection reset
2025-02-21 11:19:12.428 ERROR (MainThread) [custom_components.hikconnect.config_flow] Hik-Connect login failed
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/hikconnect/api.py", line 97, in login
    session_id = res_json["loginSession"]["sessionId"]
                 ~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'loginSession'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/hikconnect/config_flow.py", line 55, in async_step_user
    await validate_input(self.hass, user_input)
  File "/config/custom_components/hikconnect/config_flow.py", line 42, in validate_input
    await api.login(data["username"], data["password"])
  File "/usr/local/lib/python3.13/site-packages/hikconnect/api.py", line 99, in login
    raise LoginError("Unable to parse session_id from response.") from e
hikconnect.exceptions.LoginError: Unable to parse session_id from response.
2025-02-21 17:13:46.075 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 17:13:46.079 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration colorfulclouds which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 17:13:46.081 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 17:13:46.083 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration hikvision_next which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-21 17:32:54.365 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=True, new=None
2025-02-21 17:32:54.524 DEBUG (MainThread) [custom_components.sonoff] 4 devices loaded from Cloud
2025-02-21 17:32:54.527 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] ab70031553 UIID 0175 | {'bindInfos': {}, 'uiActive': 120}
2025-02-21 17:32:54.527 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] ab70031552 UIID 0151 | {'bindInfos': {}, 'uiActive': 120}
2025-02-21 17:32:54.527 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] ab70031551 UIID 0151 | {'bindInfos': {}, 'screen_display_now': 'on', 'power_on_time_value': 0, 'mode': 'heat', 'dust_full_time': 0, 'power_off_time_value': 0, 'analysis_value': 'power,mode,temperature,wind_speed,power_on_timer,smart_dry_value,power_off_timer,power_off_time_value,power_on_time_value,ptc,eco,dry,wind_swing_lr,wind_swing_lr_under,wind_swing_ud,kick_quilt,prevent_cold,small_temperature,purifier,dust_full_time,indoor_temperature', 'wind_swing_lr_under': 'off', 'wind_swing_ud': 'off', 'version': 83, 'dry': 'on', 'eco': 'off', 'comfort_sleep': 'off', 'natural_wind': 'off', 'purifier': 'off', 'prevent_cold': 'off', 'error_code': 0, 'power_on_timer': 'off', 'kick_quilt': 'off', 'power_saving': 'off', 'small_temperature': 0, 'power_off_timer': 'off', 'indoor_temperature': 9.9, 'power': 'off', 'wind_swing_lr': 'off', 'strong_wind': 'off', 'pmv': -3.5, 'temperature': 25, 'wind_speed': 102, 'ptc': 'off', 'uiActive': 120}
2025-02-21 17:32:54.528 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 1000da8e5a UIID 0001 | {'version': 8, 'sledOnline': 'off', 'switch': 'off', 'fwVersion': '3.3.1', 'rssi': -55, 'staMac': '60:01:94:FE:18:6C', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'bindInfos': {'hiLink': ['89470622-7724-400e-aebe-e0f1d0573ec9_HiLinkSmartHome']}}
2025-02-21 17:32:54.529 DEBUG (MainThread) [custom_components.sonoff] CLOUD mode start
2025-02-21 17:32:54.816 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=None, new=True
2025-02-21 17:32:54.817 DEBUG (MainThread) [custom_components.sonoff] Add 8 entities

seocgr avatar Feb 21 '25 09:02 seocgr