Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAME characteristics showing on IOS just at time of pairing and then ESP name #132

Closed
simkard69 opened this issue Jan 12, 2023 · 2 comments

Comments

@simkard69
Copy link

Hello,

Seems like something is acting weird in IOS as I successfully define the NAME of my services using this line :

SERVICE1 =  hap_add_hvac_service("SERVICE_NAME_1", CALLBACK_FUNCTION, 0);
SERVICE2 =  hap_add_hvac_service("SERVICE_NAME_2", CALLBACK_FUNCTION, 0);
SERVICE3 =  hap_add_hvac_service("SERVICE_NAME_3", CALLBACK_FUNCTION, 0);
SERVICE4 =  hap_add_hvac_service("SERVICE_NAME_4", CALLBACK_FUNCTION, 0);

Fact is that, at time of pairing in IOS, I can see the names given to my services but then, when I enter the paired accessory containing all the services, I just see my ESP32 hostname.

Any idea of what is going on here ?
Do I need to define a new characteristic on each of the services ?
Logically it should be OK as long as it is defined using this line on each service in homeintegration.c :
NEW_HOMEKIT_CHARACTERISTIC(NAME, szname)

@simkard69
Copy link
Author

simkard69 commented Sep 13, 2023

Someone already got it working by modifying "homeintegration.c" file >>> #124

homekit_service_t* hap_new_homekit_accessory_service(const char *szname,const char * szserialnumber){
	return NEW_HOMEKIT_SERVICE(ACCESSORY_INFORMATION, .characteristics=(homekit_characteristic_t*[]) {
		        NEW_HOMEKIT_CHARACTERISTIC(NAME, sz_acc_name),   // TO BE REMOVED
		        NEW_HOMEKIT_CHARACTERISTIC(NAME, szname),        // TO BE ADDED
		        NEW_HOMEKIT_CHARACTERISTIC(MANUFACTURER, sz_acc_manufacturer),
		        NEW_HOMEKIT_CHARACTERISTIC(SERIAL_NUMBER, szserialnumber),
		        NEW_HOMEKIT_CHARACTERISTIC(MODEL, sz_acc_models),

@simkard69
Copy link
Author

SOLVED as per last comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant