-
-
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
How to add support for 'undefined' modelID device? #844
Comments
How did you try to add it? Most important file here is For instance, I added support for NXP devices by adding:
I suspect you're using the wrong modelID. It also might be you have to do some work on HA side. For example, to get the above device in Domoticz, I also had to add it to the zigbee2mqtt-domoticz plugin. |
Addendum: what might help, I think the logging from zigbee2mqtt when a device is unknown, is incomplete. To find out WHAT device it was talking about, edit find the section where it sais:
and add the following line:
So that the full code reads:
Now when you get the 'device not supported' message, it will also tell you the address of the device. Once you have that, open ./data/database.db, and look for the device address. It might be in there several times. One of these lines will also contain the modelID you have to use. Use this to add the device, and then remove all instances of the device with the address from ./data/database.db ./data/configuration.yaml ./data/state.json (if any), and restart. |
‘undefined’ modelid has been happening to a few devices recently. Probably a bug introduced but I am on an old version for stability so can not investigate. If you search the issues you will find more. |
@henriz that worked! For that one bulb. The other bulbs arent working yet.
Its how I added it, I had the modelID right (A19 W 10 year), but it worked after I deleted it from all of the files you mentioned. |
So you have multiple bulbs of this type, and one of them is now working, but the rest aren't? Are they reset so they are trying to pair? do you see ANY messages about these lights? The reason why delting worked; your bulb WAS paired, but incorrectly. By removing it from those files, it was unpaired (from zigbee2mqtt standpoint) and re-paired, and since it now knew the modelI, it paired correctly. |
In fact that happened to me, too (w/Aqara Cube). It turned out that the reason was an incomplete pairing process. After trying 5-6 times again and again it worked for me, no changes necessary. Of course it‘s worth mentioning that the cube is on the list of supported devices. |
I only got it on devices that were not supported. But from those, on all of them. |
Yes, I have 4 of these bulbs. I have reseted and tried to pair them many times(they blink twice when they enter pairing mode, and blink again once paired). I'm getting the undefined modelID with them too. |
Hello again, Here is the log: pastebin Also, for some reason one of my temperature sensors give a weird zigbee message full of nulls (at the bottom of the log). |
@YamiFrankc
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I got some light bulbs from Sylvania (these ones)
I have tried pairing all of the 4 bulbs that I have many times, but I always get a "Device with modelID 'undefined' is not supported" message in the log, I reseted them many times and also put them just besides the raspberry pi.
There are some other Sylvania bulbs that are supported so I guess this must be really similar?
Anyway, looking around the database.db file, I found an entry with an modelID of "A19 W 10 year", so I tried adding support for that, and it didnt work.
Also, an entity with the name of "light.0xf0d1b80000037f32_light" was autodiscovered in HA, but it doesnt do anything. This was before trying to add support using the "A19 W 10 year" modelID
The text was updated successfully, but these errors were encountered: