Arduino-HomeKit-ESP8266 icon indicating copy to clipboard operation
Arduino-HomeKit-ESP8266 copied to clipboard

in_use seems to throw errors despite being a requirement for a valve

Open Zacknetic opened this issue 5 years ago • 5 comments
trafficstars

Trying to create a valve / sprinkler, however can't seem to get "in_use" working. Could you provide an example that makes use of characteristic type valve?

Zacknetic avatar May 20 '20 09:05 Zacknetic

Refer to the Apple's HAP section 8.43. The 'Valve' seems to be a little bit complicated service.

Mixiaoxiao avatar May 20 '20 10:05 Mixiaoxiao

I was able to get it to compile by adding this. homekit_characteristic_t cha_in_use = HOMEKIT_CHARACTERISTIC_(IN_USE, false);

However the device continuously says "updating". Perhaps in_use is an int8?

Zacknetic avatar May 20 '20 10:05 Zacknetic

uint8. Defined in Apple's HAP section 9.48.

Mixiaoxiao avatar May 20 '20 10:05 Mixiaoxiao

updated all values to uint8. Looked at HAP 8.43 and it describes the only values needed are Active, In Use, and Valve Type if the valve type is anything other than 1 "Irrigation System". Still getting a valve that is stuck in "updating..."

Zacknetic avatar May 20 '20 10:05 Zacknetic