espressif / esp-homekit-sdk

541 stars 98 forks source link

Change serial number without re-build source code #134

Open leotordo opened 1 month ago

leotordo commented 1 month ago

Hello, with lightbulb example I've to set specific value of setup-ID (when I add the accessory) and serial number (visibile in accessory properties in "Home").

For setup ID I use ./tools/factory_nvs_gen.py to generate a specific .bin file and it works fine.

Is there a .py for serial number? How to change app_main.c for using it?

Thanks Stefano

shahpiyushv commented 1 month ago

The HomeKit SDK tools themselves cannot create serial numbers, but if you can create a CSV with serial numbers as per your requirements, you can use the HomeKit Manufacturing Utility to add these in the factory nvs binary and read in your firmware code. Please also check the docs here

leotordo commented 1 month ago

Hello @shahpiyushv thank for message. I'll try it soon and give you feedback here Regards Stefano