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); }
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; }
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); }
public bool Matches(OpenZWaveDeviceValue entry) { var result = _label.Any(x => string.Equals(x, entry.Label, StringComparison.InvariantCultureIgnoreCase)); return(result); }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.Index == _index; return(result); }
public bool Matches(OpenZWaveDeviceValue entry) { var result = _label.Any(x => string.Equals(x, entry.Label, StringComparison.InvariantCultureIgnoreCase)); return result; }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.Instance == _instance; return result; }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.DeviceId == _deviceId; return(result); }
public bool Matches(OpenZWaveDeviceValue entry) { var result = Matcher.Matches(entry); return(result); }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.Index == _index; return result; }
public bool Matches(OpenZWaveDeviceValue entry) { var result = _matchers.All(x => x.Matches(entry)); return(result); }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.CommandClass == _commandClass; return(result); }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.DeviceId == _deviceId; return result; }
public bool Matches(OpenZWaveDeviceValue entry) { var result = _matchers.All(x => x.Matches(entry)); return result; }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.CommandClass == _commandClass; return result; }
public bool Matches(OpenZWaveDeviceValue entry) { var result = entry.Instance == _instance; return(result); }