added sleep event
Merge branch 'feature/robb/sleepevent' into develop
type discriminator for sleep events.
Merge branch 'release/v1.7.0.0'