-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pairing issues with updated esp-homekit library #8
Comments
I compiled with esp-homekit @ 0f8dd68 and wolfssi @ 790b040 |
After having everything working I started to debugging my code. Updated to the lattes version of the repository.
I got everything working except the FAN2 service. So I commented it out. Sorry to bother you once more, if you have any insights would be great. Thanks in advance |
After a bit of research, I commented out the "&fan_rotation_speed,"
in this repository (https://github.com/Fonger/esp-homekit-sanyo-cooler/blob/3679ec435d14aadcf13d265b6ffe604adaafcffe/src/homekit_callback.c), the accessory with the ac_rotation_speed - once it uses a HEATER_COOLER service (similar to the &fan_rotation_speed, in FAN2 service). I had no issues. Anyway. I will keep looking for answers. |
Just show definition for fan_rotation_speed characteristic |
Hi maxim. thanks for responding :) A few months ago I updated to the latest esp-homekit commits. and then I started debugging the code. And noticed that whenever I used the FAN2 service with the fan_rotation_speed characteristic I got the error. But it is basically the same of yours in main.c. I started to tweak a few things in the code and noticed that when I change to this, it pairs. But I still tweaking the update_state(); and the void ir_rx_task(void *_args) to work with it.
I don't know if I am making myself clear. |
So the error you're getting is because you have difference in the type of value you assign to characteristic (or return from a custom getter if you use one) and the type of the characteristic itself. Like in the code sample above you override ROTATION_SPEED characteristic format to be homekit_format_uint8, but in previous code samples you posted you set it as HOMEKIT_FLOAT(). Revision 0f8dd68 was LONG time ago and there were many changes since then and it's hard to trace why it wouldn't work. IMO it's easier to figure out why it does not work now than to figure out why it worked before. |
That’s the point that I am trying to say. |
Hello Maxim,
Sorry to trouble you once more...
Since updated to iOS 16.2, the I was having some connection issues with my accessories. Also I've damaged my previous PC and needed to build the environment again. Also I hoped that updating to the latest commits helped somehow.
But I faced a different issue when pairing.
!!! HomeKit: Characteristic value format is different from characteristic format
Of course I thought that I messed something and tried the code in this repository but with updates in "esp-homekit-demo" components libraries.
And I realized that every accessories with 2 services or more is not working.
The log is here:
Can you help me to get in the right path?
Thanks in advance
The text was updated successfully, but these errors were encountered: