Example #1
0
 public override void RemoveDevice(Device device)
 {
     throw new NotImplementedException();
 }
Example #2
0
        public override void RemoveDevice(Device device)
        {
            var zWaveDevice = device as OpenZWaveDevice;

            using (var watcher = new ControllerNotificationWatcher(this))
            {
                Manager.RemoveFailedNode(HomeId.Value, zWaveDevice.Id);

                watcher.WaitUntilEventType(ZWNotification.Type.NodeRemoved);
            }

            _devices.Remove(zWaveDevice);
        }
Example #3
0
 public abstract void RemoveDevice(Device device);
Example #4
0
        public override void RemoveDevice(Device device)
        {
            var zWaveDevice = device as ZWaveDevice;

            var result = ZWaveController.RemoveFailedDevice(zWaveDevice.BackingObject);

            if (!result)
            {
                throw new HomeAutomationException("Failed to remove device " + device);
            }

            Devices.Remove(device);
        }