Add zwave_js WS API command to call node.refresh_info#48564
Add zwave_js WS API command to call node.refresh_info#48564MartinHjelmare merged 3 commits intohome-assistant:devfrom
Conversation
|
Hey there @home-assistant/z-wave, mind taking a look at this pull request as its been labeled with an integration ( |
|
If we're using it to trigger a full re-interview, should we call it |
Do we want to deviate from the Z-Wave JS API? I was just pulling over what it was called. |
|
hmm good question. probably best to match Z-Wave JS API |
|
This is just backend, maybe in the frontend we can call it Re-Interview to be more friendly to users |
|
What all events does Z-Wave JS emit during a re-interview? It would be nice to attach listeners to all or some of them and feed that data back to the frontend (similar to the add and remove node websocket commands) |
|
Do we need to check for an existing interview in progress? There's a warning in the docs about this. https://zwave-js.github.io/node-zwave-js/#/api/node?id=refreshinfo |
Nothing that I can tell. I just tried doing a re-interview, the only notifications I got were a |
|
Here's a dump of the command to refresh info and the eventual response: |
I think it's this: |
They aren't exposed as events right now so we'd have to make some changes in |
|
I asked Al about this in Discord (link: https://discord.com/channels/330944238910963714/800356888827002880/827243327551176756). Here was his response: |
|
@cgarwood is this ok for you to work with for now? |
|
Ya this will work for now and we can add subscriptions for status updates later when there's more upstream support |
Proposed change
This command will allow us to build a button to re-interview a node into the UI
CC - @cgarwood
Type of change
Example entry for
configuration.yaml:# Example configuration.yamlAdditional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: