-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cannot rename device in HA #74
Comments
Hey there. I'll look into this, perhaps its related to the following changes from the HA side:
These are harmless. The last 2 will be resolved in the next msmart-ng release, and are related to #69 |
Thanks a mil for the quick reply. I was wondering whether it could be related to those changes, but I thought it's so long ago that there might've been more issues raised if that was the case. Maybe I'm the only one renaming things. :-) What would be the workaround for now? Don't use the device renaming feature, or if I do, select the option to say "don't rename entities" and then rename entities individually? I thought the log messages were maybe related, as they got emitted at the same time, but good to know it's harmless. |
There's plenty of cruft from older versions of HA still in this codebase.
No idea! Might be worth a shot. I'd remove and re-add the device to the integration first to hopefully start on a clean slate. |
Just created a PR with a potential fix: #76 Would you be able to test? My unit is offline for the season so I can't be of much help. |
Sure! I'll try my best to do it tomorrow. |
@mill1000 I got around to test it. The good news is that after renaming the device all entities are still available. The bad news is that only the climate entity got renamed (I picked the option to rename all entities). |
Hm..just did a test myself. The first attempt was odd. Some of the entities had IDs like Did you remove and re-configure your device after updating to the branch? |
A kind of third option: I had a second climate entity that I had added (but no renaming, so it was as added) before manually updating the code. I repeated your steps now and I can confirm it renamed all the entities correctly. Awesome! |
Sorry, should probably keep this open until merged/released. :-) |
Cool. I'll get this merged and released soon. I just want to perform some tests so I understand how a user updating to this change is impacted. |
Thanks a mil. I'm happy to do more testing too, if needed. |
Adding my new aircon (a 9000 BTU Midea Xtreme Inverter) through this integration works just fine. The
msmart
tool also reports it as supported.The problem is that when I rename the device (and choose the option for HA to also rename all associated entities with it), I end up with a broken integration: Only the climate entity gets renamed and some entities become unavailable.
Relevant piece of the HA log:
The text was updated successfully, but these errors were encountered: