StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
616 stars 111 forks source link

[BUG] Can't configure under HA Core 2022.6.1 #681

Open Masterz69 opened 2 years ago

Masterz69 commented 2 years ago

Environment

Describe the bug

After HACS integration and HA integration added - opening config page http://ha.local:8123/shelly/config lasts forever....

Steps to Reproduce

HACS Integrations - install ShellyforHASS HA Integrations - install shelly integration Press Configure

Expected behavior

Screenshots

image ^^ forever

Traceback/Error logs

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:103
First occurred: 11:23:46 (2 occurrences)
Last logged: 11:27:19

Detected integration that uses deprecated `async_get_registry` to access device registry, use async_get instead. Please report issue to the custom component author for alarmo using this method at custom_components/alarmo/__init__.py, line 58: device_registry = await dr.async_get_registry(hass)
Detected integration that uses deprecated `async_get_registry` to access entity registry, use async_get instead. Please report issue to the custom component author for shelly using this method at custom_components/shelly/__init__.py, line 347: await self.hass.helpers.entity_registry.async_get_registry()

Logger: homeassistant.components.websocket_api.http.connection
Source: loader.py:694
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:27:45 (4 occurrences)
Last logged: 11:35:25

[548185787504] Error handling message: Unknown error (unknown_error)
[547883693392] Error handling message: Unknown error (unknown_error)
[547882963632] Error handling message: Unknown error (unknown_error)
[548240337936] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/shelly/ws_handler.py", line 25, in shelly_get_config
    resources = await async_get_translations(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 317, in async_get_translations
    cached = await cache.async_fetch(language, category, components)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 222, in async_fetch
    await self._async_load(language, components_to_load)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 237, in _async_load
    for translation_strings in await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 157, in async_get_component_strings
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 199, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 197, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/loader.py", line 666, in async_get_integration
    integration = await _async_get_integration(hass, domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 694, in _async_get_integration
    raise IntegrationNotFound(domain)
homeassistant.loader.IntegrationNotFound: Integration 'l' not found.

Additional context

Masterz69 commented 2 years ago

On downloading 0.3.5 - looks Ok: image

hakana commented 2 years ago

Try to restart HA after det nstall S4H

Masterz69 commented 2 years ago

image

Then

image

Doing HA restart to new version take effect.

Now pressing CONFIGURE: image

THAT'S ALL, FOLKS. Configure page do NOT appear..... image

Masterz69 commented 2 years ago

image

Logger: pyShelly
Source: /usr/local/lib/python3.9/site-packages/pyShelly/utils.py:50
First occurred: 21:08:20 (94 occurrences)
Last logged: 21:10:56

Error receiving MQTT message, [Errno 104] Connection reset by peer, Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pyShelly/mqtt_server.py", line 92, in _loop self._connection.send(msg) ConnectionResetError: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyShelly/mqtt_server.py", line 92, in _loop
    self._connection.send(msg)
ConnectionResetError: [Errno 104] Connection reset by peer

Logger: pyShelly
Source: /usr/local/lib/python3.9/site-packages/pyShelly/utils.py:50
First occurred: 21:08:21 (60 occurrences)
Last logged: 21:10:57

Error receiving MQTT message, [Errno 104] Connection reset by peer, Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pyShelly/mqtt_server.py", line 29, in _loop head = b(self._connection.recv(1)) ConnectionResetError: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyShelly/mqtt_server.py", line 29, in _loop
    head = b(self._connection.recv(1))
ConnectionResetError: [Errno 104] Connection reset by peer

Logger: homeassistant.components.websocket_api.http.connection
Source: loader.py:694
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 21:09:17 (1 occurrences)
Last logged: 21:09:17

[547422525328] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/shelly/ws_handler.py", line 25, in shelly_get_config
    resources = await async_get_translations(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 317, in async_get_translations
    cached = await cache.async_fetch(language, category, components)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 222, in async_fetch
    await self._async_load(language, components_to_load)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 237, in _async_load
    for translation_strings in await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 157, in async_get_component_strings
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 199, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 197, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/loader.py", line 666, in async_get_integration
    integration = await _async_get_integration(hass, domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 694, in _async_get_integration
    raise IntegrationNotFound(domain)
homeassistant.loader.IntegrationNotFound: Integration 'l' not found.
hakana commented 2 years ago

Look like it have something with translation, what language do you use?

hakana commented 2 years ago

I upgrade HA and got the same problem. I will have a look on it asap.

Masterz69 commented 2 years ago

Look like it have something with translation, what language do you use?

English.

hakana commented 2 years ago

Fixed and released in 1.0.0

dnavidn commented 2 years ago

Guerssing its related, but I can't integrate on 2022.6.2 following a clean install. Get a 500 internal server error when I click integrate.

Screenshot 2022-06-05 at 21 21 59
fuskaps commented 2 years ago

I also have a problem with error 500 :-( image Shelly Version 1.0.0, HA core-2022.6.2

dnavidn commented 2 years ago

No feedback on this one? Or is it better to log it as a seperate issue?

dnavidn commented 2 years ago

Really, no one?

silfax commented 2 years ago

I can only confirm that I am experiencing the same issue (500 Internal Server Error). Found no solution yet.

DaHype commented 1 year ago

I can only confirm that I am experiencing the same issue (500 Internal Server Error). Found no solution yet.

Same Here. I bought Shelly Plug s for my Photovoltaik for use in Home Assistant, but now i cant use it:-(

Did you found an solution???

1-Felix commented 1 year ago

For me the solution was to restart my docker container, after experiencing the same 500 Internal Server Error message.