Closed marcelveldt closed 2 weeks ago
See the original issue in core for some discussion about this, the gist is that there are no configuration options missing but actual controls and sensors for door locks.
@AlCalzone I started looking at this again. Can you review my assumptions and tell me which, if any are wrong?
setConfiguration
CC command.outsideHandlesCanOpenDoor
and insideHandlesCanOpenDoor
are not required to be controllable by users.outsideHandlesCanOpenDoor
and insideHandlesCanOpenDoor
must be sent as part of the setConfiguration CC command, so presumably we can just retrieve the current value of these parameters and resend them.blockToBlock
, holdAndReleaseTime
, twistAssist
, and blockToBlock
setConfiguration
CC command.serialize
function already has some fallbacks if those are not arrays, so they should be just made optional and default to 0xF
as recommended if no value has been set before.setConfiguration
command though.Might make sense to read the cached values in the setConfiguration command though.
Are you saying that if the v4 properties aren't included, the library should read the cached values or are you thinking about adding this to the driver?
I'm not sure this is solved yet:
Setup Door Lock Mode to 'UnsecuredWithTimeout'
Related to 2. in the above comment, other states than locked and unlocked can also not be displayed:
Please check if current mode is set to 'UnsecuredWithTimeout'. Is the mode displayed correctly?
So, I got further this time, but setting the lock configuration still fails. This is because lockTimeoutConfiguration
is missing from the configuration passed to the driver, even though the checkbox is set:
This field is required when the operation type is timed.
Also how is this supposed to be formatted? I can't get it to pass validation:
Shouldnt this be in the expert UI ?
Very, very short term fix:
zwave_js.set_lock_configuration
, pass missing lockTimeoutConfiguration
to the node-zwave-js
APIBetter:
[ ] Move the service call functionality to the expert UI. This needs one block where:
[ ] Afterwards, verify if this requirement is fulfilled for the door lock mode control on the device page:
Timed Operation modes MUST NOT be selectable by the end user if the door lock is not configured in Timed Operation
Device diagnostics: zwave_js-01J2ZVFHVQG8V8J9D9360S4VCQ-Node 7-685335944bc32e1f4a03cdc5b3940b7d.json
I think I've found the bug for missing lock timeout configuration. We don't include that attribute when building the dict from the dataclass that represents the lock configuration in the client library. So even though we pass the parameter from the integration it's not included in the parameters sent from the client to the server.
I'm working on a fix.
Let's move the expert panel tasks to a new issue. I'll close this issue when merging the fix.
Followup issue: https://github.com/zwave-js/certification-backlog/issues/48
Still not fixed I'm afraid:
Please paste the YAML from the YAML mode instead.
We decided to remove those parameters (inside/outside handles) since they weren't required for certification as we understood it at that time. We forgot to remove it from the service description.
https://github.com/home-assistant/core/pull/103595#pullrequestreview-1725594543
From core created by AlCalzone: home-assistant/core#86955
The problem
(the mentioned operation types mean constant
0x01
and timed0x02
, V4+ adds additional ones)I could not find any way to configure the operation type of a lock, so this will need to be added before certification.
Also setting the lock mode (Locked, Unlocked, and several timed modes) must be available to the user if supported by the lock:
What version of Home Assistant Core has the issue?
2023.1.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Z-Wave JS
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response