Skip to content

warning error on startup does not set FanEntityFeature.TURN_ON but implements the turn_on method #25

@m4r1k

Description

@m4r1k

The problem

Hey there!

Thanks for reviving this integration. I have three Levoit Air Purifier, two Vital 100s and one Vital 200s.
On startup HA reports the following issue:
[homeassistant.components.fan] Entity None (<class 'custom_components.vesync.fan.VeSyncFanHA'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method

What version of this integration has the issue?

commit 9e95d6d

What version of Home Assistant Core has the issue?

core-2024.11.3

Diagnostics

Diagnostics
{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.11.3",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Rome",
    "os_name": "Linux",
    "os_version": "5.14.0-503.15.1.el9_5.x86_64",
    "run_as_root": true
  },
  "custom_components": {
    "dlight": {
      "documentation": "https://www.home-assistant.io/integrations/dlight",
      "version": "1.0.0",
      "requirements": []
    },
    "dwains_dashboard": {
      "documentation": "https://dwainscheeren.github.io/dwains-lovelace-dashboard/",
      "version": "3.7.1",
      "requirements": []
    },
    "visonicalarm": {
      "documentation": "https://github.com/And3rsL/VisonicAlarm-for-Hassio",
      "version": "v3.0.6",
      "requirements": [
        "visonicalarm2==3.1.3",
        "python-dateutil==2.7.3"
      ]
    },
    "localtuya": {
      "documentation": "https://github.com/xZetsubou/hass-localtuya/",
      "version": "2024.9.0",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.8.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "innova": {
      "documentation": "https://github.com/danielrivard/homeassistant-innova/blob/main/README.md",
      "version": "1.5.0",
      "requirements": [
        "innova-controls==2.2.3"
      ]
    },
    "becker": {
      "documentation": "",
      "version": "0.3.4",
      "requirements": []
    },
    "thermal_comfort": {
      "documentation": "https://github.com/dolezsa/thermal_comfort/blob/master/README.md",
      "version": "2.2.2",
      "requirements": []
    },
    "better_thermostat": {
      "documentation": "https://github.com/KartoffelToby/better_thermostat",
      "version": "1.6.1",
      "requirements": []
    },
    "auto_backup": {
      "documentation": "https://github.com/jcwillox/hass-auto-backup",
      "version": "1.5.3",
      "requirements": []
    },
    "scheduler": {
      "documentation": "https://github.com/nielsfaber/scheduler-component",
      "version": "v0.0.0",
      "requirements": []
    },
    "vesync": {
      "documentation": "https://github.com/haext/custom_vesync",
      "version": "1.3.3",
      "requirements": [
        "pyvesync==2.1.12"
      ]
    }
  },
  "integration_manifest": {
    "domain": "vesync",
    "name": "VeSync",
    "codeowners": [
      "markperdue",
      "webdjoe",
      "thegardenmonkey",
      "vlebourl",
      "tv4you2016",
      "gdgib"
    ],
    "config_flow": true,
    "dhcp": [
      {
        "hostname": "levoit-*",
        "macaddress": "*"
      }
    ],
    "documentation": "https://github.com/haext/custom_vesync",
    "iot_class": "cloud_polling",
    "issue_tracker": "https://github.com/haext/custom_vesync/issues",
    "loggers": [
      "pyvesync"
    ],
    "requirements": [
      "pyvesync==2.1.12"
    ],
    "version": "1.3.3",
    "is_built_in": false,
    "overwrites_built_in": true
  },
  "setup_times": {
    "null": {
      "setup": 1.1967000091317459e-05
    },
    "f712a7903ca5953dc2c85393d9cb1cc1": {
      "wait_import_platforms": -0.15431049399990115,
      "config_entry_setup": 2.3613055749999603
    }
  },
  "data": {}
}

Home Assistant log

Logs
2024-11-30 13:36:06.934 DEBUG (MainThread) [custom_components.vesync] Finished fetching vesync data in 1.874 seconds (success: True)
2024-11-30 13:36:06.935 DEBUG (MainThread) [custom_components.vesync.common] Found the following devices: {'fans': [{'manager': <pyvesync.vesync.VeSync object at 0x7f91229314c0>, 'device_name': 'Studio', 'device_image': 'https://image.vesync.com/defaultImages/deviceDefaultImages/vs_wfon_apr_lap_v102s.png', 'cid': '**REDACTED**', 'connection_status': 'online', 'connection_type': 'WiFi+BTOnboarding+BTNotify', 'device_type': 'LAP-V102S-WEU', 'type': 'wifi-air', 'uuid': '**REDACTED**', 'config_module': 'VS_WFON_APR_LAP-V102S-WEU_EU', 'mac_id': '**REDACTED**', 'mode': 'manual', 'speed': 2, 'extension': None, 'current_firm_version': None, 'device_region': 'EU', 'pid': None, 'sub_device_no': None, 'config': {'display': False, 'display_forever': False}, 'device_status': 'on', 'enabled': True, '_config_dict': {'module': 'VeSyncAirBaseV2', 'models': ['LAP-V102S-AASR', 'LAP-V102S-WUS', 'LAP-V102S-WEU', 'LAP-V102S-AUSR', 'LAP-V102S-WJP'], 'modes': ['manual', 'auto', 'sleep', 'off', 'pet'], 'features': ['air_quality'], 'levels': [1, 2, 3, 4]}, '_features': ['air_quality'], 'modes': ['manual', 'auto', 'sleep', 'off', 'pet'], 'air_quality_feature': True, 'details': {'filter_life': 20, 'mode': 'manual', 'level': 0, 'display': False, 'child_lock': False, 'night_light': 'off', 'air_quality': 1, 'light_detection_switch': True, 'environment_light_state': False, 'screen_switch': False, 'air_quality_value': 2, 'auto_preference_type': 'default'}, 'timer': None, 'set_speed_level': 2, 'auto_prefences': ['default', 'efficient', 'quiet']}, {'manager': <pyvesync.vesync.VeSync object at 0x7f91229314c0>, 'device_name': 'Kitchen', 'device_image': 'https://image.vesync.com/defaultImages/deviceDefaultImages/vs_wfon_apr_lap_v201s-wus_us_240.png', 'cid': '**REDACTED**', 'connection_status': 'online', 'connection_type': 'WiFi+BTOnboarding+BTNotify', 'device_type': 'LAP-V201S-WEU', 'type': 'wifi-air', 'uuid': '**REDACTED**', 'config_module': 'VS_WFON_APR_LAP-V201S-WEU_EU', 'mac_id': '**REDACTED**', 'mode': 'manual', 'speed': 2, 'extension': None, 'current_firm_version': None, 'device_region': 'EU', 'pid': None, 'sub_device_no': None, 'config': {'display': False, 'display_forever': False}, 'device_status': 'on', 'enabled': True, '_config_dict': {'module': 'VeSyncAirBaseV2', 'models': ['LAP-V201S-AASR', 'LAP-V201S-WJP', 'LAP-V201S-WEU', 'LAP-V201S-WUS', 'LAP-V201-AUSR', 'LAP-V201S-AUSR', 'LAP-V201S-AEUR'], 'modes': ['manual', 'auto', 'sleep', 'off', 'pet'], 'features': ['air_quality'], 'levels': [1, 2, 3, 4]}, '_features': ['air_quality'], 'modes': ['manual', 'auto', 'sleep', 'off', 'pet'], 'air_quality_feature': True, 'details': {'filter_life': 22, 'mode': 'manual', 'level': 0, 'display': True, 'child_lock': False, 'night_light': 'off', 'air_quality': 1, 'light_detection_switch': True, 'environment_light_state': False, 'screen_switch': True, 'air_quality_value': 1, 'auto_preference_type': 'default'}, 'timer': None, 'set_speed_level': 2, 'auto_prefences': ['default', 'efficient', 'quiet']}, {'manager': <pyvesync.vesync.VeSync object at 0x7f91229314c0>, 'device_name': 'Bedroom', 'device_image': 'https://image.vesync.com/defaultImages/deviceDefaultImages/vs_wfon_apr_lap_v102s.png', 'cid': '**REDACTED**', 'connection_status': 'online', 'connection_type': 'WiFi+BTOnboarding+BTNotify', 'device_type': 'LAP-V102S-WEU', 'type': 'wifi-air', 'uuid': '**REDACTED**', 'config_module': 'VS_WFON_APR_LAP-V102S-WEU_EU', 'mac_id': '**REDACTED**', 'mode': 'manual', 'speed': 2, 'extension': None, 'current_firm_version': None, 'device_region': 'EU', 'pid': None, 'sub_device_no': None, 'config': {'display': False, 'display_forever': False}, 'device_status': 'on', 'enabled': True, '_config_dict': {'module': 'VeSyncAirBaseV2', 'models': ['LAP-V102S-AASR', 'LAP-V102S-WUS', 'LAP-V102S-WEU', 'LAP-V102S-AUSR', 'LAP-V102S-WJP'], 'modes': ['manual', 'auto', 'sleep', 'off', 'pet'], 'features': ['air_quality'], 'levels': [1, 2, 3, 4]}, '_features': ['air_quality'], 'modes': ['manual', 'auto', 'sleep', 'off', 'pet'], 'air_quality_feature': True, 'details': {'filter_life': 0, 'mode': 'manual', 'level': 0, 'display': True, 'child_lock': False, 'night_light': 'off', 'air_quality': 1, 'light_detection_switch': True, 'environment_light_state': False, 'screen_switch': True, 'air_quality_value': 1, 'auto_preference_type': 'default'}, 'timer': None, 'set_speed_level': 2, 'auto_prefences': ['default', 'efficient', 'quiet']}], 'outlets': [], 'switches': [], 'bulbs': [], 'kitchen': []}
2024-11-30 13:36:06.948 DEBUG (MainThread) [custom_components.vesync] Finished fetching vesync data in 0.007 seconds (success: True)

Additional information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions