Yurik72 / ESPHap

ESP32/ESP8266 Arduino library for native Apple Homekit Accessory Protocol (HAP)
MIT License
264 stars 60 forks source link

Will adaptive lighting support be added #95

Open hassbian-ABC opened 3 years ago

Yurik72 commented 3 years ago

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 commented 3 years ago

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