Пример #1
0
        private static IOpenZWaveDeviceValueMatcher CreateMatcher(OpenZWaveDevice device, IOpenZWaveDeviceValueMatcher unitsMatcher)
        {
            var result = new CompositeMatcher(
                new IdMatcher(device.Id),
                new CommandClassMatcher(CommandClass.SensorMultilevel),
                unitsMatcher
                );

            return(result);
        }
Пример #2
0
 public ThermostatSetpointDataEntry(OpenZWaveDevice device, ThermostatSetpointType setpointType)
     : base(device, CommandClass.ThermostatSetpoint, GetSetpointIndex(setpointType))
 {
 }
Пример #3
0
 public IlluminanceSensorDataEntry(OpenZWaveDevice device)
     : base(device, UnitsMatcher.Illuminance())
 {
 }
Пример #4
0
 public ThermometerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorMultilevel)
 {
 }
Пример #5
0
 public ImmediatePowerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.Meter, 8)
 {
 }
Пример #6
0
 protected ByteNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass)
     : base(device, commandClass)
 {
 }
Пример #7
0
 public SwitchBinaryDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SwitchBinary)
 {
 }
Пример #8
0
 protected BoolNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, bool?initialValueIsValid = null)
     : base(device, commandClass, initialValueIsValid: initialValueIsValid)
 {
 }
Пример #9
0
 public ThermostatFanModeDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.ThermostatFanMode)
 {
 }
Пример #10
0
 public BinarySensorDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorBinary, false)
 {
 }
Пример #11
0
 public SwitchMultilevelDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SwitchMultilevel)
 {
 }
Пример #12
0
 public ThermostatSetpointDataEntry(OpenZWaveDevice device, ThermostatSetpointType setpointType)
     : base(device, CommandClass.ThermostatSetpoint, GetSetpointIndex(setpointType))
 {
 }
Пример #13
0
 public HumiditySensorDataEntry(OpenZWaveDevice device)
     : base(device, UnitsMatcher.Humidity())
 {
 }
Пример #14
0
 protected DecimalNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte?index = null)
     : base(device, commandClass, index)
 {
 }
Пример #15
0
 public SwitchBinaryDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SwitchBinary)
 {
 }
Пример #16
0
 public ThermostatCoreCurrentActionDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.ThermostatOperatingState)
 {
 }
Пример #17
0
 protected TemperatureNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte?index = null)
     : base(device, commandClass, index)
 {
 }
Пример #18
0
 public ThermometerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorMultilevel)
 {
 }
Пример #19
0
 protected NodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte?index = null, bool?initialValueIsValid = null)
     : this(device, CompositeMatcher.Create(device.Id, commandClass, index), initialValueIsValid)
 {
 }
Пример #20
0
 protected MeasurementNodeDataEntry(OpenZWaveDevice device, IOpenZWaveDeviceValueMatcher unitsMatcher)
     : base(device, CreateMatcher(device, unitsMatcher))
 {
 }
Пример #21
0
 protected NodeDataEntry(OpenZWaveDevice device, IOpenZWaveDeviceValueMatcher matcher, bool?initialValueIsValid = null)
 {
     Device  = device;
     Matcher = matcher;
     _initialValueIsValid = initialValueIsValid ?? true;
 }
Пример #22
0
 public ImmediatePowerDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.Meter, 8)
 {
 }
Пример #23
0
 public ThermostatFanCurrentActionDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.ThermostatFanState)
 {
 }
Пример #24
0
 public BinarySensorDataEntry(OpenZWaveDevice device)
     : base(device, CommandClass.SensorBinary, false)
 {
 }
Пример #25
0
 protected WritableTemperatureNodeDataEntry(OpenZWaveDevice device, CommandClass commandClass, byte index)
     : base(device, commandClass, index)
 {
 }