Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

D1 MINI PRO failed to add to home app because HomeKit: Failed to read HomeKit storage magic

aleroot opened this issue · comments

>>> [   3896] HomeKit: Update the CPU to run at 160MHz
>>> [   3904] HomeKit: Starting server
!!! [   3907] HomeKit: Failed to read HomeKit storage magic
>>> [   3913] HomeKit: Formatting HomeKit storage at 0xffb000
!!! [   3918] HomeKit: Failed to erase HomeKit storage
>>> [   3923] HomeKit: Resetting HomeKit storage
!!! [   3927] HomeKit: Failed to reset HomeKit storage
>>> [   3933] HomeKit: Generated new accessory ID: F8:32:B9:47:5D:E0
!!! [   3939] HomeKit: Failed to write accessory ID to HomeKit storage
>>> [   3996] HomeKit: Generated new accessory key
!!! [   4001] HomeKit: Failed to write accessory key to HomeKit storage

I'm trying to build a Homekit occupancy sensor with a D1 MINI PRO but I can't add to the home app because it says there was an error adding the accessory, any idea how to solve this issue ?
I'm using visual studio code with arduino plugin and arduino-cli to upload ....

The problem seems related to this failure: Failed to read HomeKit storage magic

Changing board type from: LOLIN(WEMOS) D1 mini Pro(esp8266:esp8266:d1_mini_pro) to LOLIN(WEMOS) D1 R2 & mini(esp8266:esp8266:d1_mini) fixed the problem ...

That's weird because my board is a D1 Mini Pro...