Exemple #1
0
        public bool ProcessValueUpdate(OpenZWaveDeviceValue value, ValueUpdateType updateType)
        {
            if (!Matches(value))
            {
                return(false);
            }

            if (!_initialValueIsValid && updateType == ValueUpdateType.Add)
            {
                return(true);
            }

            RefreshLastUpdated();

            var @event = CreateDeviceEvent();

            Device.AddEvent(@event);

            return(true);
        }