#Get value of parameter from device

1 messages · Page 1 of 1 (latest)

burnt current
#

Hello! I want to check the value of a parameter in a zwave-device. The value is cached and shown in zwave-js-ui, and I am happy to get it from there if possible.
The value is to be used in an automation, but I cannot figure out how to get the value. Is this a supported action?

#

For example, I might want to get the value of "3-111-0-keyCacheTimeout" to my automation

mild lantern
#

I think it's not easy.

#

The one way I've done something like this in the past is to use MQTT with zjsui, and each parameter can be subscribed as a mqtt topic.

burnt current
#

Ah. I am hoping that there is another way, since I am not using mqtt. I would also like to get the value synchronously (almost) from inside the automation, as waiting for a value update from mqtt might be difficult

mild lantern
#

In theory zwave integration could make a service action to get a parameter and return it in the service response.
No idea if that's ever been considered.

burnt current
#

I am sort of thinking that I cannot be the first to wish to do things this way 🙂 So either there has to be a way that I am missing, or it might be time for a feature request..

mild lantern
burnt current
#

Sadly I don't think so, I would have to use a helper sensor for each of the 30 values I want to keep track of and have automations to update them

#

So the result would be quite messy

marsh crystal
#

Action responses did not exist in HA when the z-wave integration services were originally added, so a synchronous Get was never a possibility. You're currently stuck with the async refresh + value updated triggers mentioned. I don't think there would be any pushback for someone to implement it.

burnt current
#

Okay, thank you. I'll check what is being done and see if I can contribute somewhere