Open marcelveldt opened 1 year ago
Also, resetting all config parameters (and optionally, individual ones) to default must be supported.
This is not supported yet
-
Refreshing such a config parameter seems also not supported, this is not a requirement though.
This task has been split up into multiple smaller ones. Left is fixing the set config value service call.
@AlCalzone according to the typing here: https://github.com/zwave-js/node-zwave-js/blob/master/packages/cc/src/cc/ConfigurationCC.ts#L107
valueFormat
is required alongside valueSize
. Is that correct? If so then this behavior is correct and should be expected. If not, then should we update the type? This will need to be fixed in the server and lib as well
Hmm, you're right. I could have sworn it defaults to signed. In this case it's just the error message that's terrible.
Yeah unfortunately that comes from the validator we use. I'll look into customizing the message
This is a candidate for the expert UI
I think we should first fix the service call. Then we can do the rest. We can't remove the service call, if we even want that, without a long deprecation time anyway.
The service to be fixed is named zwave_js.set_config_parameter
.
The fixed service will merged with https://github.com/home-assistant/core/pull/129332
Maybe we can close this issue. The service validation has been removed. A new UI for custom params is added in #31 but in the node config page, not the expert UI. Is there anything else to do here? Maybe tweak the validation?
I'll double check that it works as intended, then close 👍🏻