-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: add api for device re-interview #22788
Conversation
FWIW, I've had a chance to test out a version of the hass addon from my branch, and it seems to be working.
I suspect the reason that a restart is required after the interview is because calling |
|
We might be agreeing, but I think there should always be an interview button somewhere in the Device page... its presence will eliminate a lot of "upgrade firmware, delete and rejoin the device" that I see on the Inovelli forums. I was thinking the fa-exchange icon, if you don't think it looks too similar to the re-configure icon (fa-retweet). |
* Adds an "interview" button which starts an interview for the associated device. See Koenkk/zigbee2mqtt#22788 * The icon is [fa-info](https://fontawesome.com/v6/icons/info?f=classic&s=solid).
PR to add an "interview" button. |
Agree, thanks! Reviewed both PRs and all is OK, could you also make a PR for the docs? Then this can be merged. |
lib/extension/bridge.ts
Outdated
throw new Error(`Invalid payload`); | ||
} | ||
|
||
const device = this.zigbee.resolveEntityAndEndpoint(message.id).entity as Device; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Koenkk I just realized that I am using resolveEntityAndEndpoint
, which is a little weird since interviewing is a device-level thing. I'll change it to using getEntity('device', ....)
- 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.
927f8e9
to
9eee45b
Compare
Doc PR: Koenkk/zigbee2mqtt.io#2777 |
Thanks! |
* feat(DeviceControlGroup): add interview button * Adds an "interview" button which starts an interview for the associated device. See Koenkk/zigbee2mqtt#22788 * The icon is [fa-info](https://fontawesome.com/v6/icons/info?f=classic&s=solid). * feat(DeviceControlGroup): make things pretty
Notes:
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).