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

Quick question - not an issue #134

Open
HSkul opened this issue Mar 25, 2023 · 0 comments
Open

Quick question - not an issue #134

HSkul opened this issue Mar 25, 2023 · 0 comments

Comments

@HSkul
Copy link

HSkul commented Mar 25, 2023

First, thanks a lot of a great library and set of examples. Being able to use Arduino IDE for ESP32/8266 Homekit devices is really helpful.
Now my question may already have been answered here in the forum but it was a long time ago and I'm not sure if something has changed.
Is it possible to define custom characteristics? Someone asked about that before and the answer was no. But when I was looking through the types.h file, I found this definition:
#define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM(...)
Apple left the door open to do this and under Homebridge this is possible (but can only be viewed in Eve, not the Home app although automation is able to utilize custom characteristics).

If the answer is yes, how would I use the macro above? Is it possible to define for example custom units? I'm trying to figure out if I can define Radon concentration as a custom characteristic (with unit Bq/m3) and then add it to a sensor accessory.

Thanks,

H

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