core: MacAddressMismatchError when replacing a Shelly device
The problem
Yesterday one of my Shelly 2PM (Gen1) died, so I replaced it and wanted to replace it in Home Assistant. I went to Shelly integration, removed the old device and tried to add new, but I got this error:
Failed setup, will retry:
MacAddressMismatchError('Input MAC: E8DB84D21065, Shelly MAC: 244CAB43B378')
I’m also using Huawei LTE integration which has device tracker build in (sadly there is no way to disable the tracker), so I disabled the Huawei LTE and tried again, same error.
I’ve again removed the bad device, restarted HA, and verified that I don’t have any other device with the same IP in /homeassistant/.storage/core.device_registry. I also tried searching for both MAC addresses
Similar issue :https://github.com/home-assistant/core/issues/119933 (it is closed for comments)
What version of Home Assistant Core has the issue?
core-2024.9.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Shelly
Link to integration documentation on our website
https://www.home-assistant.io/integrations/shelly/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (23 by maintainers)
as I wrote in my previous message, I’ll try that 🙂 but I have to get home first
There isn’t a software workaround for this as we need to be able to match the device somehow, and the only stable identifier we have is the MAC address.
If its provisioned incorrectly, sometimes a factory reset can fix the issue.
I think you should ask Shelly support about this. The device is somehow faulty.
A few weeks ago I also replaced the device with a new one and I didn’t encounter any problems. I did the following: