private static IOpenZWaveDeviceValueMatcher CreateMatcher(OpenZWaveDevice device, IOpenZWaveDeviceValueMatcher unitsMatcher)
        {
            var result = new CompositeMatcher(
                new IdMatcher(device.Id),
                new CommandClassMatcher(CommandClass.SensorMultilevel),
                unitsMatcher
                );

            return(result);
        }
 public ThermostatSetpointDataEntry(OpenZWaveDevice device, ThermostatSetpointType setpointType)
     : base(device, CommandClass.ThermostatSetpoint, GetSetpointIndex(setpointType))
 {
 }
 public IlluminanceSensorDataEntry(OpenZWaveDevice device)
     : base(device, UnitsMatcher.Illuminance())
 {
 }
 public ThermometerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorMultilevel)
 {
 }
 public ImmediatePowerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.Meter, 8)
 {
 }
Exemple #6
0
 protected ByteNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass)
     : base(device, commandClass)
 {
 }
 public SwitchBinaryDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SwitchBinary)
 {
 }
Exemple #8
0
 protected BoolNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, bool?initialValueIsValid = null)
     : base(device, commandClass, initialValueIsValid: initialValueIsValid)
 {
 }
 public ThermostatFanModeDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.ThermostatFanMode)
 {
 }
 public BinarySensorDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorBinary, false)
 {
 }
Exemple #11
0
 public SwitchMultilevelDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SwitchMultilevel)
 {
 }
 public ThermostatSetpointDataEntry(OpenZWaveDevice device, ThermostatSetpointType setpointType)
     : base(device, CommandClass.ThermostatSetpoint, GetSetpointIndex(setpointType))
 {
 }
Exemple #13
0
 public HumiditySensorDataEntry(OpenZWaveDevice device)
     : base(device, UnitsMatcher.Humidity())
 {
 }
Exemple #14
0
 protected DecimalNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte?index = null)
     : base(device, commandClass, index)
 {
 }
 public SwitchBinaryDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SwitchBinary)
 {
 }
 public ThermostatCoreCurrentActionDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.ThermostatOperatingState)
 {
 }
 protected TemperatureNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte?index = null)
     : base(device, commandClass, index)
 {
 }
Exemple #18
0
 public ThermometerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorMultilevel)
 {
 }
Exemple #19
0
 protected NodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte?index = null, bool?initialValueIsValid = null)
     : this(device, CompositeMatcher.Create(device.Id, commandClass, index), initialValueIsValid)
 {
 }
 protected MeasurementNodeDataEntry(OpenZWaveDevice device, IOpenZWaveDeviceValueMatcher unitsMatcher)
     : base(device, CreateMatcher(device, unitsMatcher))
 {
 }
Exemple #21
0
 protected NodeDataEntry(OpenZWaveDevice device, IOpenZWaveDeviceValueMatcher matcher, bool?initialValueIsValid = null)
 {
     Device  = device;
     Matcher = matcher;
     _initialValueIsValid = initialValueIsValid ?? true;
 }
 public ImmediatePowerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.Meter, 8)
 {
 }
 public ThermostatFanCurrentActionDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.ThermostatFanState)
 {
 }
 public BinarySensorDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorBinary, false)
 {
 }
Exemple #25
0
 protected WritableTemperatureNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte index)
     : base(device, commandClass, index)
 {
 }