Esempio n. 1
0
        private static string[] TransformValue(OpenZWaveDeviceValue deviceValue)
        {
            var commandClass = deviceValue.CommandClass.ToString();
            var index        = deviceValue.Index.ToString();
            var instance     = deviceValue.Instance.ToString();
            var value        = deviceValue.GetValue();
            var units        = deviceValue.Units;
            var type         = deviceValue.Type.ToString();
            var label        = deviceValue.Label;
            var help         = deviceValue.Help;

            var result = new[] { commandClass, index, instance, value, units, type, label, help };

            return(result);
        }
Esempio n. 2
0
        private static string[] TransformValue(OpenZWaveDeviceValue deviceValue)
        {
            var commandClass = deviceValue.CommandClass.ToString();
            var index = deviceValue.Index.ToString();
            var instance = deviceValue.Instance.ToString();
            var value = deviceValue.GetValue();
            var units = deviceValue.Units;
            var type = deviceValue.Type.ToString();
            var label = deviceValue.Label;
            var help = deviceValue.Help;

            var result = new[] {commandClass, index, instance, value, units, type, label, help};

            return result;
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = _label.Any(x => string.Equals(x, entry.Label, StringComparison.InvariantCultureIgnoreCase));

            return(result);
        }
Esempio n. 5
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.Index == _index;

            return(result);
        }
Esempio n. 6
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = _label.Any(x => string.Equals(x, entry.Label, StringComparison.InvariantCultureIgnoreCase));

            return result;
        }
Esempio n. 7
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.Instance == _instance;

            return result;
        }
Esempio n. 8
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.DeviceId == _deviceId;

            return(result);
        }
Esempio n. 9
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = Matcher.Matches(entry);

            return(result);
        }
Esempio n. 10
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.Index == _index;

            return result;
        }
Esempio n. 11
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = _matchers.All(x => x.Matches(entry));

            return(result);
        }
Esempio n. 12
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.CommandClass == _commandClass;

            return(result);
        }
Esempio n. 13
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.DeviceId == _deviceId;

            return result;
        }
Esempio n. 14
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = _matchers.All(x => x.Matches(entry));

            return result;
        }
Esempio n. 15
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.CommandClass == _commandClass;

            return result;
        }
Esempio n. 16
0
        public bool Matches(OpenZWaveDeviceValue entry)
        {
            var result = entry.Instance == _instance;

            return(result);
        }