Closed domob1812 closed 1 month ago
Hi @domob1812 ,
I am sorry, but I am not following you. You mentioned you were trying to add a new device to the Meross integration (using the local data broker add-on, too), and it always failed with "Unknown Error" and the logs shown below
.
The logs refer to the portion of code that runs when configuring the Meross integration to HomeAssistant.
Changing to the regex HTTP_API_RE
would only affect this phase, so I don't understand how this helped you in enrolling the Meross device. Can you please revert the change, and provide more details and screenshot about the issue?
Thanks
Sorry my bad, I was describing the situation wrong (basically I had just played around until it worked, and then after the fact submitted the issue to make you aware of what I found, and didn't remember / express the details well).
tl;dr is that you are right, this is about adding the integration, not the device.
I did remove the Meross integration from my HAOS instance, so that it was in a state with the "Meross Local Broker Addon" running and the device paired to it, but not the "Meross Cloud IoT" integration added (and thus also the device not showing). That is the starting configuration.
I added the source code of this repository (release 1.2.13) without changes to my custom_components
, and then tried to add the "Meross Cloud IoT" integration in the HA web frontend. This produces the "Unknown error occurred" error as per the screenshot:
The logs are as in the original post.
If I make the change to the regexp, then I can add the integration per the following flow (it just complains about the auto-detect not working, but I changed the URLs to "localhost" manually, added the credentials, and it worked). The device is then added automatically since it is paired to the add-on:
Hi @domob1812 ,
can you please try v1.3.1 and report if bug still exists?
Thanks
I can confirm the bug is gone with v1.3.1. :+1:
Glad to hear that !
Describe the bug I was trying to add a new device to the Meross integration (using the local data broker add-on, too), and it always failed with "Unknown Error" and the logs shown below.
Trying my luck, I modified the regexp line, changing the expression to this:
With this, adding the device proceeded; the data broker was not auto-configured, but I could enter it manually, and now the device seems to be working properly.
I'd be happy to provide a pull request with this change, too, but I'm not sure it is the proper change for this issue; so please let me know if you want me to do a PR, or otherwise take a look yourself.
Your environment HomeAssistant version:
Hardware environment:
Logs taken when the issue happened