When Door Open Or Closed Then Turn On/Off Device In Hub