HomeWizard kWh meters: migrate_to_v2_api repair fails with multiple meters

Hello,

I am using multiple HomeWizard kWh meters (more than 7) with Home Assistant. All meters have the Local API enabled in the HomeWizard Energy app. Data from all devices is coming in correctly in Home Assistant, so the communication with the devices works as expected.

However, I receive repair notifications in Home Assistant for each meter with the message “homewizard: migrate_to_v2_api”. When I click “Submit” to perform the migration, I immediately get an error message. The migration does not complete and the repair message stays visible.

Details about my setup:

  • I have more than 7 HomeWizard kWh meters.
  • The Local API is enabled on all devices.
  • All data updates correctly in Home Assistant.
  • Home Assistant version: [fill in your version here].
  • Integration: official HomeWizard integration.

The problem:

  • Migration to the v2 API fails via the repair system.
  • There is no indication which entity or device is affected.
  • Pressing “Submit” shows an error message instead of completing the migration.

My questions:

  • Is this a known bug in the HomeWizard integration?
  • Is there a workaround for migrating multiple kWh meters without losing the existing entities and historical data?

Any help or clarification would be very much appreciated.

Olger Huis

I’m having the same issue it seems to be related to KWH meters. They got a software update to 5.0011 once they get the update the repair message is triggered. If i remove a device and add it again then it wil still throw a unknown error. The device is paired with the home assistant app but can’t be paired with home assistant although it’s discovered automatically it’s not passing the config. I tried disabling the API in the home assistant as i read that this might not be necessary on the V2 protocol. I created a ticket @ homewizzard but no response yet. If somebody finds a solution, please post it here Thanks

Authorize · Issue #152553 · home-assistant/core

I found above solution on GitHub. The meters should not be in AP mode during pairing

I

Question here for the 3 Phase meter. I also got the message from HA to authenticate.
But when I try, it says “Press the button on your homewizard energy device” …

What button should I press? The 3Phase has only a Wifi button, and 2 up/down buttons.
I am a bit confused.

The device is working normally in HA. It’s just the “repair” message in the settings of HA that stays…

Edit:

Figured it out… it was the WiFi button. Need to press 2 sec…

Thanks all!

I am aware of some issues related to the repair. I will work on fixes for that as soon as possible. For more information, see HomeWizard update authentication repair does not handle multiple simultaneous repairs properly. · Issue #154012 · home-assistant/core · GitHub