Cannot add HMCharacteristicEvent or HMCharacteristicThresholdRangeEvent objects as end events to HMEventTrigger [HomeKit]

Originator:matthias.hochgatterer
Number:rdar://33846809 Date Originated:2017-08-11
Status:Open Resolved:
Product:HomeKit Product Version:iOS 11 beta 5
Classification:Bug Reproducible:Always
 
Summary:
HMEventTrigger can have end events since iOS 11. Using the method `updateEndEvents(_:, completionHandler)`, I was able to add a HMDurationEvent as end event to an event trigger. But adding instances of HMCharacteristicEvent or HMCharacteristicThresholdRangeEvent always fails.

Steps to Reproduce:
Add a HMCharacteristicEvent or HMCharacteristicThresholdRangeEvent as end event to an HMEventTrigger using the method `updateEndEvents(_:, completionHandler)`.

Expected Results:
Adding a HMCharacteristicEvent or HMCharacteristicThresholdRangeEvent end event should succeed.

Observed Results:
It fails with the following error.

Error Domain=HMErrorDomain Code=3 "Invalid parameter." UserInfo={NSLocalizedDescription=Invalid parameter.}

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!