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

Will adaptive lighting support be added #95

Open
hassbian-ABC opened this issue May 27, 2021 · 2 comments
Open

Will adaptive lighting support be added #95

hassbian-ABC opened this issue May 27, 2021 · 2 comments

Comments

@hassbian-ABC
Copy link

No description provided.

@Yurik72
Copy link
Owner

Yurik72 commented May 28, 2021

I have spent a litle time, and can't find any official doc from Apple how adaptive light is supported. There is a new feathure in iOS14
Hovewer I found, that is already implemeted by HAP-NodeJS
https://github.com/homebridge/HAP-NodeJS/blob/beta/src/accessories/Light-AdaptiveLighting_accessory.ts

Means device should provide ColorTemperature charachteristic....
So, answering to your question , yes will be implemented
When .... not any promises. Need a few experiments...

Yurik72 added a commit that referenced this issue May 28, 2021
@Yurik72
Copy link
Owner

Yurik72 commented May 28, 2021

I have added in the latest commit 3 functions
homekit_service_t* hap_add_ambientlight_service(const char* szname, hap_callback cb, void* context);
homekit_service_t* hap_add_ambientlight_service_as_accessory(int acctype, const char* szname, hap_callback cb, void* context);
homekit_service_t* hap_new_ambientlight_service(const char* szname, hap_callback cb, void* context);

But not tested yet,
They can be used in any RGB examples instead of hap_add_rgb......

So, if you test and give examples, I will appreciate

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

2 participants