Bouke / HAP

Swift implementation of the Homekit Accessory Protocol
https://boukehaarsma.nl/HAP/
MIT License
366 stars 50 forks source link

valid values #106

Closed makleso6 closed 4 years ago

makleso6 commented 4 years ago

Hi! I Creating plugin for Xiaomi humidifier based on https://github.com/russtone/homebridge-mi-humidifier. There is a function in https://github.com/russtone/homebridge-mi-humidifier/blob/master/index.js#L64 valid values. Is there any equivalent in HAP?

makleso6 commented 4 years ago

also I test in fork https://github.com/makleso6/HAP/commit/aabce61d33b77032ad1fa6701c47bdec255d3da3

makleso6 commented 4 years ago

photo_2020-05-24_21-36-17

makleso6 commented 4 years ago

also can implement "valid-values-range"

makleso6 commented 4 years ago

Add it in pr #107

Bouke commented 4 years ago

Thanks for the PR, merged!