-
Notifications
You must be signed in to change notification settings - Fork 32
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
LYWSD03MMC configuration Error in Z2M #58
Comments
nevermind...
|
you are right - hvacuserinterfacecfg wasnt bound at all my LYWSD03MMC-Sensors, too |
New ver 0.1.2.0 - zigbeeModel: ['LYWSD03MMC-z'] |
Do you want to say there will be a new Version soon, that will fix this Problem? |
The devices will have different names. |
thank you for clarification.
I realise you're not a friend of Z2M - that's OK. Knowing that would be a good approach, then I could deal with it and see if I can get it built such an converter somehow, if I want to stay on your pvvx-FW with Z2M. |
Yes. In ZHA the name is indifferent.
Preference has nothing to do with it. |
I have the same problem. A few days ago I did a fw update to the zigbee version and everything was OK. I updated another same device today but it shows as unsupported with "-z". And I see that what works has a slightly older fw, see picture. Does anyone have any ideas how to fix this when the bluetooth is not working? I don't have the option to flash it somehow via cables. And I have 3 more thermometers that I wanted to convert to zigbee as well, but I don't have the courage now and I don't want to turn them into another useless device. I uploaded the fw via this page https://pvvx.github.io/atc_mithermometer/telinkmiflasher.html Sorry, I'm a beginner. Will it be fixed somehow in cooperation with zigbee2mqtt and it will start working again on its own, or is it necessary to reset something somewhere? If so, what exactly? Thank you. |
Did you manage to get this to work? Is there any guide to adding a new custom converter to Z2M for us newbies? I have half of all my thermomethers with fw 119 working fine and the other hald with fw 120 not working at all... :( |
I just took devbis converter and changed the name to -z in it. Might look in to how to flash devbis firmware using OTA, but for now this is good enough. I don't want to start religious discussion either, but I don't understand the augment about Z2M using too many resources. |
https://github.com/pvvx/ZigbeeTLc/tree/master/bin/devbis Added to TelinkMiFlasher.html : Warning: The devbis version consumes twice as much as ZigbeeTlc!
You forgot MQTT and stuff. 200 MB RAM minimum |
So far I have solved it like this https://www.reddit.com/r/homeassistant/comments/1aok4l4/help_im_stuck_with_an_unknown_zigbee_device/ . Apparently my posts were published "Hairy-Plum-3118", so you need to be logged in. |
@TreborR2 - The device names have been renamed because the devbis converter (at https://github.com/devbis/z03mmc/blob/master/converters/lywsd03mmc.js) is not compatible with the firmware from the ZigbeeTlc repository. |
Sorry I'm going to need my hand held here. Is the python script above something I run from the command line on the box with my zigbee coordinator in it and if so how does it know which device to actually update as I have a few and only one is not working or is it something incorporated into the TelinkMiFlasher which I understands needs Bluetooth to connect and the device I want to flash no longer has Bluetooth available. What I want to achieve is to get one device I flashed OTA that is now zigbee only and now appearing with a -z suffix back to the state that Z2M recognises it. If that's using the devis firmware that I'm all for it. |
Disable other thermometers during Zigbee OTA. Remove the battery. Then delete the Zigbee OTA file and reboot the system.
Update all thermometers to devbis version. The batteries in Devbis will last up to 6 months. |
So Sorry I'm really lost here Is that correct ? |
No. In Zigbee2MQTT OTA is more difficult to do. Like this: In ZHA you need to copy the *.zigbee file to the directory for OTA and enable OTA. |
The "Calibration" and "comfort" settings do not match the ZigbeeTlc version. |
I'm still puzzled by the discussion about the name - I don't really understand something here. I have updated one of my 3 thermometers to 0.1.2.0. ![]() If I connect it via the following external converter, everything works without errors and can be configured.
The current external converter vor devbis-FW runs into our known problems - that is clear Well, that's 147 very manageable lines of code, the last part of which is no problem. If I understand everything correctly, we would only have to use this converter as a template and adapt it to the corresponding variables/parameters/attributes of the pvvx-FW. Do I understand that correctly? Let's make an example:
Maybe the ID is the only thing to change?! |
ZigBee Cluster Library Specification -> 2.6.2 Data Types -> Table 2-10. Data Types Setting offsets for temperature and humidity |
Finally got some time to look in to this.
Thank you so much for your help 👍 But I have run in to a couple of problems:
Ahh sorry I didn't look the at the right place. My HA is rock stable and super fast running on the 2GB Proxmox is allocating to it. It is not actively using any swap, and it only has 650MB swap anyway:
zwave is using 3.1% RAM, and I only have 2 zwave devices (as compared with 41 zigbee. Don't you think ZHA is about just as demanding, only not as visible because it buried in the rest of HA python processes? |
That is awesome. I have changed this to get the smiley working again:
havn't looked at calibration yet, but it seems to pretty straight forward. |
Consequently, assistant.db no longer fits into the RAM buffers. When you set to display the graph for a year, it will slow down mercilessly...
NanoPi_R5S home-assistant_v2.db 3.5G |
@pvvx :
hmm...
? devbis:
ZHA-Settings from pvvx say so why not:
or at least:
? |
How is this possible? And are you really using zigbee2mqtt or ZHA |
And are you using the conversion file? If Z2M fix it??? And I still ask, perhaps stupidly, what good is the conversion file if the thermometer has the right name and the Z2M recognizes it? The picture shows the thermometer with the functional FW, where I don't use the conversion file, and I have all the setting options there. On the other hand, I don't see some of these options with the new FW and converter??? |
I think I got it. Here I have modified the devbis version of the ext. converter so that it works with Z2M for the pvvx-FW. Open questions:
Perhaps lines 29 and 30 still need to be adjusted for other users who want to use this converter I left a lot of comments in to have a comparison to the devbis version - these can all still be removed
I don't understand where to get the attributes like 'tempDisplayMode'
|
|
Can anyone please tell me or make a short summary what to do if I have a Z2M and thermometer with error "Exception converter: LYWSD03MMC-z has no endpoint"? OTA isn't possible in Z2M now. |
this is how I do updates through z2m: |
What a nightmare in Z2M... |
OK guys, but I don't have an "update" button on this thermometer. In the OTA panel there's no this thermometer. |
With Zigbee this is true everywhere. Therefore, for a long time I did not want to make firmware for thermometers on Zigbee. |
@TreborR2 Try the following: Than try to do a OTA-Update When everything is fine, you can delete this converter and remove it from Z2M config |
So put the firmware file in the dir, point at it in a json file the same place, and add the json file in Z2M GUI…? Just read up on ZHA, looks not much different 🤷♂️ |
I got the same when I tried to go the other way: ie. from ZigbeeTLC/pvvx firmware to devbis. Guess that's why pvvx explains how to create a conversion file here: #58 (comment) |
Based on the LYWSD03MMC external converter for Zigbee2MQTT posted above, here is one for the CGDK2 (Qingping Temp & RH Monitor Lite) Since the CGDK2 does not have Smiley or Comfort settings, these are removed from the convertor. ZCGDK2 external convertor: |
I'm only responding now because I was away. Thank you for answer. I did what you wrote and I think it shows what you think it should show? |
@Bodengriller |
I have one more question. Do you also find that the newer FW 3001-0120 drains the battery faster than the older 3001-0119? I started using the one with the newer FW later than the older FW and it shows that the one with the newer one already has 81.5% and the other one still has 100%. |
My thought was that your OTA update might fail because the device is configured with the wrong converter (Custom Device DIY is definitely the Z2M converter for the devbis firmware, which is stored at Z2M, but does not work correctly for the pvvx firmware) However, since the OTA update does not work for you even with the stripped-down, functioning converter, it was probably not due to this. After you have deleted the converter, you must reconfigure the device (yellow button) - then the completely wrong converter from Z2M should be loaded again I've no clue why you cannot update OTA, sorry
I can't make a judgement on this, all the updates and gimmicks have almost drained my batteries :D |
Keep in mind that the OTA can drain your battery a lot already. Also I noticed that some of my devices used wrong report intervals, so I'd advice to occassionally reconfigure the thermometer through zigbee2mqtt (yellow reconfigure / refresh button at bottom in "About" tab of device). Therefore I'm still not 100% confident that this firmware stores the configuration (such as report intervals!) correctly in flash because I also noticed different battery drain and report intervals on some of my devices - usually resolved by manually reconfiguring them. |
I too was using I wanted to stay on ZigbeeTLc rather than devbis (mostly for battery life) but was unsure whether the z2m OTA had updated my devices to the latter. A major source of confusion for me was that z2m kept reporting the model as FWIW, what finally worked for me was adding the custom converter from here, but twice (one as-is, and a second copy edited without the |
@Nephiel I have the same issue, that the device with the new firmware is still recognized as the one without
Do you have any further hints? Thanks! |
A similar problem exists in ZHA. After updating, the device name is not updated. Removing and re-pairing does not help. Although the device name changes. Something is not completed in the Home Assistant software with Z2M and ZHA. But in ZHA, the device name has no effect. The device operates according to the Zigbee 3.0 standard and does not require converters or “quirks” for basic operation. In this case, non-standard functions are setting up a smiley face and shifting the measurements of the temperature and humidity sensor. But they are available in the “Services” menu or configured in the “yaml” of Home Assistant. |
I'm using FHEM, not Home Assistant, but the issue is within zigbee2mqtt I think. The model is not updated. I checked the data directory where z2m saves all data, but even there the device was removed completely before re-pairing. I don't know where z2m gets the wrong model when pairing a new device. Another z2m installation, which hasn't been paired with any LYWSD03MMC devices before, works. |
This means that the command to remove the device from the list has not been sent to the Zigbee coordinator. And old data is used. After updating the firmware, the Zigbee 3.0 device may change functionality. For example, expand. But this is not tracked in z2m. This greatly limits the expansion of the device's functionality. In z2m, users are tied to a list of supported devices approved by z2m programmers. Everything depends only on the wishes of the z2m developers. It was recently announced that support for the Zigbee 3.0 standard will be implemented. But I don’t know how things are in z2m. PS: Similar to BLE, it typically takes open source writers 10 years to implement a new standard. Linux still does not support Bluetooth 5.0, which was released in 2016. |
The coordinator information is also stored in the data directory of z2m. I don't know of any other place. Just one thing to mention regarding the external converter. Since 1.36.1 (released a few hours ago) the batteryPercentage function isn't implemented any more https://github.com/pvvx/ZigbeeTLc/blob/master/z2m/lywsd03mmc-z.js#L8 |
I can't help you with anything other than corrections or additions to the thermometer firmware. There is no such opportunity to monitor and participate in writing the code for each user application. There is always a workaround - you can introduce a function to change the MAC device. But this will be a “plug” for the sake of compatibility with outdated software and will not add functionality to the device, and may create new problems. In general, the software for Zigbee is very crude and unfinished. |
I was just trying to recall any other steps I took to get it to work for me. I do remember not enabling the "force remove" and "prevent from joining again" options in z2m web UI when removing the old devices. Other than that, I'm not sure, but I'd probably try restarting z2m right after removing all the non |
@fhempy |
I never disconnected the batteries. A temporary GND-reset contact or pressing a button on thermometers with a button is always sufficient. |
To change zigbeeModel: LYWSD03MMC to zigbeeModel: LYWSD03MMC-z with 0121 firmware I've removed device from z2m, then restarted z2m, permitted join and reset (GND+RST) LYWSD03MMC. After that my z2m has correctly defined modelID and used converter from that PR. |
Since the Z2M update to 1.35.3-1 I get the following configuration-error for all my LYWSD03MMC:
I have already tested this external converter - same problem
There are no problems with this external converter, but all settings are missing (smiley off etc.):
There is only this warning:
OTA: Images currently unavailable for device 'LYWSD03MMC', hardwareVersion '16', manufacturerName Xiaomi, {"fieldControl":0,"manufacturerCode":4417,"imageType":522,"fileVersion":18427905}'
I'm sure that all the settings worked until recently even without an external converter.
However, I can't find any issue or report on this problem.
Am I doing something wrong or is it a known problem?
Is there a way to solve this?
Installed Version on devices:
1141-020a-01193001-Z03MMC.zigbee
(until yesterday all devices were on v0.1.1.8 - as the problem was recognized)
The text was updated successfully, but these errors were encountered: