-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
[feat] Offer auto-complete suggestions for config parameters with allowManualEntry: true
that have options
#779
Comments
@AlCalzone Is options like states? How do I access those |
Blocked by zwave-js/node-zwave-js#1927 |
You need to check the configuration parameters' metadata for these properties. |
I believe there's also an issue in reporting read-only values if options are set in the config file but the device can also return values outside one of the options; in this case, the field ends up showing up as blank. (The flip side of the issue reported here.) |
The fix is ready in #781, just need to wait a new release of zwavejs with zwave-js/node-zwave-js#1927 fixed |
@robertsLando I still don't think this is working correctly for read-only parameters with options. I'm attaching a config file that has read-only parameters with options, but values that are outside the options can also be returned by the device. When values are outside the options, they don't appear. |
@NYZack The problem is that those values have allowManualEntry set to false:
If you check the other values with |
@robertsLando Since that is a readonly parameter, it doesn't really make sense to offer a dropdown. |
@robertsLando Sorry, you're right. I had an old version of the config file. It does return the value when allowManualEntry is set to true. |
OK, I'm still not sure this is resolved. When I enter a manual value for a parameter that also has options set (where allowManualEntry is set to true), the value is ignored, and instead the existing parameter (corresponding to an option) is re-written. In this case, the value 1 corresponded to the already-set option. I changed it to 500, and the log showed this: 2021-03-05 15:17:17.543 INFO ZWAVE: Calling api writeValue with args: [ |
Firstly ensure you are running the very latest version of z2m. Then to send a custom value write it on the input, press enter and then press the button on the right side to send the value |
Is your feature request related to a problem? Please describe.
Some
zwave-js
config params have bothallowManualEntry: true
andoptions
. These options are meant to give the user some guideline or point out special values like "Off".Describe the solution you'd like
We should offer auto-complete suggestions in this case that can be selected in addition to manually entered values.
Describe alternatives you've considered
none
Additional context
none
The text was updated successfully, but these errors were encountered: