maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.11k stars 170 forks source link

Workaround for a HomeKit bug where bool is send #23

Closed renssies closed 6 years ago

renssies commented 6 years ago

Siri sometimes sends a boolean instead of an int value. I made it so that a boolean value is accepted as an integer, the reverse is already implemented.

This bug was found when setting the "Active" characteristic of a Fan V2 with Siri. Siri sends the value as a boolean, while the HAP spec states it expects a UInt8 value. The Home app or other HomeKit apps do seem to properly send a UInt8 in this case.