HMEventTrigger doesn't restore all characteristic values when using an end event

Originator:matthias.hochgatterer
Number:rdar://37703334 Date Originated:2018-02-20
Status:Open Resolved:
Product:HomeKit Product Version:
Classification:Other Bug Reproducible:Always
 
# Summary
HMEventTrigger should restore characteristic states previous to the executed scene. Currently only some characteristic values are restored – for example the power state of a light bulb.

# Steps to reproduce
1. Create an HMEventTrigger and add an event
2. Add a scene to the trigger which sets the power state of a light bulb to On and the brightness to 100%.
3. Set an HMDurationEvent as end event.
4. Trigger the trigger and wait until the end event restores the characteristic values before the trigger was executed.

# Expected Results
The power state and brightness value should be restored to the previous value.

# Actual Result
Only the power state is restored.

# Comment
If this is expected behaviour, please update the documentation of `HMEventTrigger.endEvents` accordingly.

Tested on iOS 11.3 (15E5178f)

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!