zigbee2mqtt
zigbee2mqtt copied to clipboard
feat: add api for device re-interview
- Adds an API that allows for the re-interview of a device. This can be useful a device firmware upgrade adds new device endpoints (as is the case when upgrading an Inovelli VZM31-SN to 2.18). Without the ability to re-interview, one must remove and re-add the device.
Notes:
- I have only really tested performing device re-interviews via a hand-crafted extension (see gist). It was as simple as
await someDevice.interview(). I have not had a chance to this changeset on my system (it's sunday morning and the kids are running around). - As far as I can tell, this seems to require restarting z2m in order for the UI to reflect any changes picked up by the re-interview. I feel like this might be a matter of having whatever drives the frontend be responsive to device interview events?
- As mentioned, this eliminated the need for me to remove and re-add 18 Inovelli VZM31-SN switches. I reinterviewed the devices, restarted z2m, and all was good in the world.