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
71.8k stars 30.06k forks source link

Cool Master Integration Error #104752

Closed Liors85 closed 6 months ago

Liors85 commented 10 months ago

The problem

When trying to integrate with Cool master, after putting the relevant Ip adress in the host field, I recieve "unknown error" message and cannot continue installation. using Home assistant Version 11.1

What version of Home Assistant Core has the issue?

core-2023.11.3

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

Coolmaster Net

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Log details (ERROR)
Logger: aiohttp.server
Source: /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py:403
First occurred: 11:17:45 PM (9 occurrences)
Last logged: 11:35:30 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, 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 31, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
    return await func(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
    return await super().post(request, flow_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 293, in async_configure
    result = await self._async_handle_step(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 389, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/coolmaster/config_flow.py", line 75, in async_step_user
    result = await _validate_connection(host)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/coolmaster/config_flow.py", line 39, in _validate_connection
    units = await cool.status()
            ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pycoolmasternet_async/coolmasternet.py", line 70, in status
    for unit, key in await asyncio.gather(
                     ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pycoolmasternet_async/coolmasternet.py", line 91, in create
    return CoolMasterNetUnit(bridge, unit_id, raw, swing_raw), unit_id
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pycoolmasternet_async/coolmasternet.py", line 83, in __init__
    self._parse()
  File "/usr/local/lib/python3.11/site-packages/pycoolmasternet_async/coolmasternet.py", line 96, in _parse
    raise Exception("Unexpected status line format: " + str(fields))
Exception: Unexpected status line format: ['Command', 'is', 'not', 'allowed', 'in', 'Cloud', 'Only', 'mode']

Additional information

No response

home-assistant[bot] commented 10 months ago

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

Code owner commands Code owners of `coolmaster` 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 coolmaster` 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)


coolmaster documentation coolmaster source (message by IssueLinks)

OnFreund commented 10 months ago

Looks like your CoolMaster is set to cloud only mode. Is it the device that came with your Tadiran A/C? In that case unfortunately you're out of luck - it's locked.

Liors85 commented 10 months ago

Hi.

Thank you for your answer. I am not sure that it is locked.

It used to work, until I reinstalled home assistant and tried to configure again.

Lior.

בתאריך יום ה׳, 30 בנוב׳ 2023 ב-10:10 מאת On Freund @.***

:

Looks like your CoolMaster is set to cloud only mode. Is it the device that came with your Tadiran A/C? In that case unfortunately you're out of luck - it's locked.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/104752#issuecomment-1833285724, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCMX425MJUUKUJ5XC6MMID3YHA5OPAVCNFSM6AAAAABAAE4V3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTGI4DKNZSGQ . You are receiving this because you authored the thread.Message ID: @.***>

OnFreund commented 10 months ago

Is it Tadiran? If so, it's locked and didn't work with the official integration. You might have been using a community integration that uses scraping of the CoolMaster cloud web app.

Liors85 commented 10 months ago

I am pretty sure I have used the official intergration. can you guide me to the community integration?

OnFreund commented 10 months ago

I don't know how to find it but I know it exists and was posted on the Home Assistant IL facebook group a while ago. The only thing I can think that could have changed between HA installs is that you were using the customer integration. Otherwise, if it worked before it means you've made a change to Coolmaster (or maybe they performed a remote firmware update)

issue-triage-workflows[bot] commented 7 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.