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

Remote Lock/Unlock failing #199

Closed
snappa2000 opened this issue Feb 9, 2024 · 2 comments
Closed

Remote Lock/Unlock failing #199

snappa2000 opened this issue Feb 9, 2024 · 2 comments

Comments

@snappa2000
Copy link

The problem

When trying to lock/unlock the below error message appears.
The code for lock.a45s_lock doesn't match pattern ^\d{4}$
This was working a few weeks ago, but has stopped working for both cars we have registered.

What version of MBAPI2020 do use?

v0.10.1

What was the last working version of MBAPI2020?

No response

What type of installation are you running?

Home Assistant OS

Diagnostics information

config_entry-mbapi2020-594f6c57d804f715a66be00eeffb357d.json

Example YAML snippet

Snippet below from main YAML for button:

show_name: true
show_icon: true
type: button
tap_action:
  action: toggle
show_state: true
entity: lock.a45s_lock
hold_action:
   action: toggle

Anything in the logs that might be useful for us?

2024-02-10 09:20:25.610 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139663534629824] The code for lock.a45s_lock doesn't match pattern ^\d{4}$

Additional information

No response

@snappa2000
Copy link
Author

Looks like the requirement of the PIN is what was causing this issue now, going into the device itself and selecting lock popped up the request for a PIN. Using the custom button to call the service, didnt. Might good to pop up the pin request when the service is called.

@ReneNulschDE
Copy link
Owner

Correct, you can store the pin in the configure dialog of the component. Then this pin is used in all the places including the buttons.

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

No branches or pull requests

2 participants