added HomeAutomation.RegisterDeviceEventTrigger
This can replace the more specific `HomeAutomation.Register(PowerOff|PowerOn|PowerChanged)Command` commands, and will also work with any other event type for devices