espressif / esp-homekit-sdk

550 stars 99 forks source link

Feature request or Bug?: Example of Motion Detector #16

Closed cyba3r closed 3 years ago

cyba3r commented 3 years ago

Hello,

Im not able to get a Motion Detector recognizes as a Motion Detector. HomeKit detect the Sensor always as Switch.

I used hap_serv_get_char_by_uuid(service, HAP_CHAR_UUID_OCCUPANCY_DETECTED); and .cid = HAP_CID_SENSOR

But its not works...

cyba3r commented 3 years ago

Sorry, I just miss to "change hap_serv_occupancy_sensor_create"