Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic and Basic2 switches ´unavailable´ after update to 3.0.2 #809

Closed
roelof-47 opened this issue May 3, 2022 · 11 comments
Closed

Basic and Basic2 switches ´unavailable´ after update to 3.0.2 #809

roelof-47 opened this issue May 3, 2022 · 11 comments
Labels
question Further information is requested

Comments

@roelof-47
Copy link

Before the update the sonoff switches acted well. Still they work well via the Ewelink app.
I restored the old version.

@AlexxIT AlexxIT added the question Further information is requested label May 3, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented May 3, 2022

Install latest master version and get integration diagnostics (Hass v2022.2 and more):

Configuration > Integrations > Sonoff > 3 dots > Download diagnostics

@roelof-47
Copy link
Author

Your suggested path to ´download diagnostics´ does not show a menu with this choice. See attached.
Translations of the menu: Change name, System specs, Documentation, Known problems, Reload, Disable, Delete

menu sonoff integration

@AlexxIT
Copy link
Owner

AlexxIT commented May 3, 2022

Have you installed master version and using Hass v2022.2+?

@roelof-47
Copy link
Author

I have Core 2022.4.7 installed.

@AlexxIT
Copy link
Owner

AlexxIT commented May 3, 2022

HACS > SonoffLAN > Reinstall > master

@roelof-47
Copy link
Author

O.k., I did install ´master´ version and restart the HA system. I checked again the path your earlier mentioned to find `download diagnosis´.
But nothing has changed. The menu options (as above) remain unchanged. No ´download diagnosis´.

@roelof-47
Copy link
Author

roelof-47 commented May 3, 2022

I can provide you with the error message from the logbook.

Logger: homeassistant
Source: custom_components/sonoff/core/ewelink/__init__.py:44
Integration: Sonoff (documentation, issues)
First occurred: 18:21:55 (1 occurrences)
Last logged: 18:21:55
Error doing job: Task exception was never retrieved

Traceback (most recent call last):
  File "/config/custom_components/sonoff/__init__.py", line 201, in internal_normal_setup
    await internal_cache_setup(hass, entry, devices)
  File "/config/custom_components/sonoff/__init__.py", line 222, in internal_cache_setup
    registry.setup_devices(devices)
  File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 44, in setup_devices
    _LOGGER.debug(f"{deviceid} UIID {uiid:04} | %s", device["params"])
KeyError: 'params'

@AlexxIT
Copy link
Owner

AlexxIT commented May 4, 2022

Can change this lines:

resp = await r.json()
if resp["error"] != 0:
raise Exception(resp["msg"])

to:

            resp = await r.json()
            _LOGGER.error(resp)
            if resp["error"] != 0:
                raise Exception(resp["msg"])

And send response in logs to sonofflan@gmail.com
You have some strange type of device. Maybe it's shared group. I don't know.

@roelof-47
Copy link
Author

I did send you response in logs.

@AlexxIT
Copy link
Owner

AlexxIT commented May 4, 2022

Problem with "Ext Grond zijkant". I never saw device without some state info. Is it works fine?

AlexxIT added a commit that referenced this issue May 4, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented May 4, 2022

Should be fixed in latest master version. Will be in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants