bigmoby / fglair_for_homeassistant

❄️ FGLair heat pump controller integration
MIT License
47 stars 4 forks source link

Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble #112

Closed cbird808 closed 4 months ago

cbird808 commented 4 months ago

System Health details

System Information

version core-2024.4.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.25-haos
arch aarch64
timezone America/Chicago
config_dir /config
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.04.0 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 28.0 GB disk_used | 3.7 GB healthy | true supported | true board | green supervisor_api | ok version_api | ok installed_addons | Duck DNS (1.16.0), File editor (5.8.0), Terminal & SSH (9.13.0)
Dashboards dashboards | 2 -- | -- resources | 0 views | 0 mode | storage
Recorder oldest_recorder_run | April 13, 2024 at 7:07 PM -- | -- current_recorder_run | April 18, 2024 at 11:13 AM estimated_db_size | 5.19 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

I followed the installation instruction and am getting this error when trying to add the fglair device. The log indicates that pyfujitsugeneral can't be found. There is a vague reference to this api before your instructions, but its unclear if we are supposed to install separately or if it's included in fglair_for_homeassistant. There are no instuctions for pyfujistsugeneral

Reproduction steps

  1. follow the installation instructions by cloning this repo, etc
  2. restart ha
  3. add fglair device
  4. Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble ...

Debug logs

2024-04-18 11:13:25.415 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration fglair_heatpump_controller 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
2024-04-18 11:13:25.418 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration smartthinq_sensors 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
2024-04-18 11:19:13.379 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package pyfujitsugeneral==2.0.10: ERROR: Could not find a version that satisfies the requirement pyfujitsugeneral==2.0.10 (from versions: 1.0.0, 1.0.1, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 2.0.1, 2.0.4, 2.0.5, 2.0.7, 2.0.8, 2.0.9)
ERROR: No matching distribution found for pyfujitsugeneral==2.0.10
2024-04-18 11:19:25.144 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package pyfujitsugeneral==2.0.10: ERROR: Could not find a version that satisfies the requirement pyfujitsugeneral==2.0.10 (from versions: 1.0.0, 1.0.1, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 2.0.1, 2.0.4, 2.0.5, 2.0.7, 2.0.8, 2.0.9)
ERROR: No matching distribution found for pyfujitsugeneral==2.0.10
2024-04-18 11:19:36.969 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package pyfujitsugeneral==2.0.10: ERROR: Could not find a version that satisfies the requirement pyfujitsugeneral==2.0.10 (from versions: 1.0.0, 1.0.1, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 2.0.1, 2.0.4, 2.0.5, 2.0.7, 2.0.8, 2.0.9)
ERROR: No matching distribution found for pyfujitsugeneral==2.0.10
2024-04-18 11:19:36.972 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 88, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 71, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 172, in post
return await self._post_impl(request, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 179, in _post_impl
return await super()._post_impl(request, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 84, in _post_impl
result = await self._flow_mgr.async_init(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1155, in async_init
flow, result = await self._async_init(flow_id, handler, context, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1312, in async_create_flow
handler = await _async_get_flow_handler(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2608, in _async_get_flow_handler
await _load_integration(hass, domain, hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2585, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 551, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 53, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/requirements.py", line 176, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 193, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 280, in async_process_requirements
await self._async_process_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 318, in _async_process_requirements
raise RequirementsNotFound(name, list(failures))
homeassistant.requirements.RequirementsNotFound: Requirements for fglair_heatpump_controller not found: ['pyfujitsugeneral==2.0.10'].

Diagnostics dump

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.4.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.12.2", "docker": true, "arch": "aarch64", "timezone": "America/Chicago", "os_name": "Linux", "os_version": "6.6.25-haos", "supervisor": "2024.04.0", "host_os": "Home Assistant OS 12.2", "docker_version": "25.0.5", "chassis": "embedded", "run_as_root": true }, "custom_components": { "fglair_heatpump_controller": { "version": "0.3.7", "requirements": [ "pyfujitsugeneral==2.0.10" ] }, "hacs": { "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "smartthinq_sensors": { "version": "0.39.0", "requirements": [ "pycountry>=23.12.11", "xmltodict>=0.13.0", "charset_normalizer>=3.2.0" ] } }, "integration_manifest": { "domain": "hacs", "name": "HACS", "codeowners": [ "@ludeeus" ], "config_flow": true, "dependencies": [ "http", "websocket_api", "frontend", "persistent_notification", "lovelace", "repairs" ], "documentation": "https://hacs.xyz/docs/configuration/start", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/hacs/integration/issues", "requirements": [ "aiogithubapi>=22.10.1" ], "version": "1.34.0", "is_built_in": false }, "data": { "entry": { "entry_id": "526de464759ed50a08e51be2953875e9", "version": 1, "minor_version": 1, "domain": "hacs", "title": "", "data": { "token": "REDACTED" }, "options": { "experimental": true }, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": null, "disabled_by": null }, "hacs": { "stage": "running", "version": "1.34.0", "disabled_reason": null, "new": true, "startup": false, "categories": [ "template", "plugin", "integration", "theme" ], "renamed_repositories": {}, "archived_repositories": [], "ignored_repositories": [], "lovelace_mode": "storage", "configuration": { "appdaemon": false, "country": "ALL", "debug": false, "dev": false, "experimental": true, "netdaemon": false, "python_script": false, "release_limit": 5, "theme": false } }, "custom_repositories": [], "repositories": [ { "data": { "archived": false, "authors": [ "@ludeeus" ], "category": "integration", "config_flow": true, "default_branch": "main", "description": "HACS gives you a powerful UI to handle downloads of all your custom needs.", "domain": "hacs", "downloads": 442205, "etag_repository": "W/\"6851e162bc58ec75230104140cfb199888db07b284926cbb0aaf97685c2c50f8\"", "etag_releases": null, "file_name": "", "first_install": false, "full_name": "hacs/integration", "hide": false, "has_issues": true, "id": "172733314", "installed_commit": null, "installed_version": "1.34.0", "installed": true, "last_commit": null, "last_updated": "2024-04-18T13:15:49Z", "last_version": "1.34.0", "manifest_name": "HACS", "new": false, "open_issues": 49, "published_tags": [ "1.34.0", "1.33.0", "1.32.1", "1.32.0", "1.31.0" ], "releases": true, "selected_tag": null, "show_beta": false, "stargazers_count": 4617, "topics": [ "community", "package-manager" ] }, "integration_manifest": { "domain": "hacs", "name": "HACS", "codeowners": [ "@ludeeus" ], "config_flow": true, "dependencies": [ "http", "websocket_api", "frontend", "persistent_notification", "lovelace", "repairs" ], "documentation": "https://hacs.xyz/docs/configuration/start", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/hacs/integration/issues", "requirements": [ "aiogithubapi>=22.10.1" ], "version": "0.0.0" }, "repository_manifest": { "content_in_root": false, "country": [], "filename": "hacs.zip", "hacs": "0.19.0", "hide_default_branch": true, "homeassistant": "2023.6.0", "manifest": { "name": "HACS", "zip_release": true, "hide_default_branch": true, "homeassistant": "2023.6.0", "hacs": "0.19.0", "filename": "hacs.zip" }, "name": "HACS", "persistent_directory": null, "render_readme": false, "zip_release": true }, "ref": "1.34.0", "paths": { "localpath": "/config/custom_components/hacs", "local": "/config/custom_components/hacs", "remote": "custom_components/hacs" } } ], "rate_limit": { "resources": { "core": { "limit": 5000, "used": 5, "remaining": 4995, "reset": 1713462241 }, "search": { "limit": 30, "used": 0, "remaining": 30, "reset": 1713458774 }, "graphql": { "limit": 5000, "used": 0, "remaining": 5000, "reset": 1713462314 }, "integration_manifest": { "limit": 5000, "used": 0, "remaining": 5000, "reset": 1713462314 }, "source_import": { "limit": 100, "used": 0, "remaining": 100, "reset": 1713458774 }, "code_scanning_upload": { "limit": 1000, "used": 0, "remaining": 1000, "reset": 1713462314 }, "actions_runner_registration": { "limit": 10000, "used": 0, "remaining": 10000, "reset": 1713462314 }, "scim": { "limit": 15000, "used": 0, "remaining": 15000, "reset": 1713462314 } }, "rate": { "limit": 5000, "used": 5, "remaining": 4995, "reset": 1713462241 } } } }

cbird808 commented 4 months ago

I got the hacs install to work