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

Shelly plus login #64443

Closed
3 tasks done
basic-steve opened this issue Jan 6, 2022 · 4 comments
Closed
3 tasks done

Shelly plus login #64443

basic-steve opened this issue Jan 6, 2022 · 4 comments

Comments

@basic-steve
Copy link

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

Describe the issue you are experiencing

Unable to add shelly 1PM plus, probably shelly 1PM also.
Old shelly os to restrict access with login it used to have username and password, on the new os on plus versions there is no username, only password.
Adding shelly from frontend it requires to fill username and password, but new os does not have username.

Describe the behavior you expected

Adding shelly and omitting shelly username

Steps to reproduce the issue

  1. Enable shelly 1PM PLUS/1 PLUS password
  2. Add integration/shelly
  3. Add shelly, and put username/password

image

What version of Home Assistant Core has the issue?

core-2021.12.8

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/shelly/config_flow.py", line 150, in async_step_credentials
    device_info = await validate_input(
  File "/usr/src/homeassistant/homeassistant/components/shelly/config_flow.py", line 59, in validate_input
    rpc_device = await RpcDevice.create(
  File "/usr/local/lib/python3.9/site-packages/aioshelly/rpc_device.py", line 58, in create
    await instance.initialize()
  File "/usr/local/lib/python3.9/site-packages/aioshelly/rpc_device.py", line 93, in initialize
    await asyncio.gather(
  File "/usr/local/lib/python3.9/site-packages/aioshelly/rpc_device.py", line 133, in update_config
    self._config = await self._wsrpc.call("Shelly.GetConfig")
  File "/usr/local/lib/python3.9/site-packages/aioshelly/wsrpc.py", line 234, in call
    raise JSONRPCError(code, msg)
aioshelly.exceptions.JSONRPCError: (401, '{"auth_type": "digest", "nonce": 1641477985, "nc": 1, "realm": "shellyplus1pm-44179394b00c", "algorithm": "SHA-256"}')

Additional information

No response

@spacegaier
Copy link
Member

The content/fields of those configuration dialogs are defined by the backend, the frontend just renders them as requested, so I will transfer the issue to the backend.

@spacegaier spacegaier transferred this issue from home-assistant/frontend Jan 19, 2022
@probot-home-assistant
Copy link

shelly documentation
shelly source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @balloob, @bieniu, @thecode, @chemelli74, mind taking a look at this issue as it has been labeled with an integration (shelly) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@thecode
Copy link
Member

thecode commented Jan 19, 2022

Duplicate of #63621
Please follow the linked issue

@thecode thecode closed this as completed Jan 19, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants