A demo wrote in Swift for HomeKit. Works with HomeKit Simulator