ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
142 stars 27 forks source link

Remote Lock/Unlock failing #199

Closed snappa2000 closed 5 months ago

snappa2000 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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.