Example #1
0
 public static void GetSetPoint(ZWaveNode node, SetPointType ptype)
 {
     node.SendRequest(new byte[] {
         (byte)CommandClass.ThermostatSetPoint,
         (byte)Command.ThermostatSetPointGet,
         (byte)ptype
     });
 }
Example #2
0
 /*
  * Set temperature in Celcius.
  */
 public override void Thermostat_SetPointSet(SetPointType ptype, int temperature)
 {
     this.nodeHost.SendRequest(new byte[] {
         (byte)CommandClass.COMMAND_CLASS_THERMOSTAT_SETPOINT,
         (byte)Command.THERMOSTAT_SETPOINT_SET,
         (byte)ptype,
         0x01,
         (byte)temperature
     });
 }
Example #3
0
 /*
  * I had no idea how this was going to work
  * found this:  http://www.agocontrol.com/forum/index.php?topic=175.10;wap2
  * not sure what it will do with Celsius
  *
  * Set Thermostat Setpoint (Node=6): 0x01, 0x0c, 0x00, 0x13, 0x06, 0x05, 0x43, 0x01, 0x02, 0x09, 0x10, 0x25, 0xc5, 0x5a
  *
  *  0x43 - COMMAND_CLASS_THERMOSTAT_SETPOINT
  *  0x01 - THERMOSTAT_SETPOINT_SET
  *  0x02 - type (see SetPointType enum)
  *  0x09 - 3 bit precision, 2 bit scale (0 = C,1=F), 3 bit size -> Fahrenheit, size == 1
  *  0x10 - value to set == 16 degF
  */
 public virtual void Thermostat_SetPointSet(SetPointType ptype, int temperature)
 {
     this.nodeHost.SendRequest(new byte[] {
         (byte)CommandClass.ThermostatSetPoint,
         (byte)Command.ThermostatSetPointSet,
         (byte)ptype,
         0x09,
         (byte)temperature
     });
 }
Example #4
0
 /*
  * I had no idea how this was going to work
  * found this:  http://www.agocontrol.com/forum/index.php?topic=175.10;wap2
  * not sure what it will do with Celsius
  *
  * Set Thermostat Setpoint (Node=6): 0x01, 0x0c, 0x00, 0x13, 0x06, 0x05, 0x43, 0x01, 0x02, 0x09, 0x10, 0x25, 0xc5, 0x5a
  *
  *  0x43 - COMMAND_CLASS_THERMOSTAT_SETPOINT
  *  0x01 - THERMOSTAT_SETPOINT_SET
  *  0x02 - type (see SetPointType enum)
  *  0x09 - 3 bit precision, 2 bit scale (0 = C,1=F), 3 bit size -> Fahrenheit, size == 1
  *  0x10 - value to set == 16 degF
  */
 public virtual void Thermostat_SetPointSet(SetPointType ptype, int temperature)
 {
     this.nodeHost.ZWaveMessage(new byte[] {
         (byte)CommandClass.COMMAND_CLASS_THERMOSTAT_SETPOINT,
         (byte)Command.THERMOSTAT_SETPOINT_SET,
         (byte)ptype,
         0x09,
         (byte)temperature
     });
 }
Example #5
0
 /*
  * Set temperature in Celcius.
  */
 public override void Thermostat_SetPointSet(SetPointType ptype, int temperature)
 {
     this.nodeHost.SendRequest(new byte[] { 
         (byte)CommandClass.COMMAND_CLASS_THERMOSTAT_SETPOINT, 
         (byte)Command.THERMOSTAT_SETPOINT_SET, 
         (byte)ptype,
         0x01,
         (byte)temperature
     });
 } 
        private IActionResult SetSetPoint(int zoneId, float value, SetPointType setPointType)
        {
            var command = new SetTemperatureCommand
            {
                SetPointType = setPointType,
                ZoneId       = zoneId,
                Value        = value
            };

            return(_commandHandler.ExecuteCommand(command, UserId));
        }
Example #7
0
        public static void SetSetPoint(ZWaveNode node, SetPointType ptype, double temperature)
        {
            List <byte> message = new List <byte>();

            message.AddRange(new byte[] {
                (byte)CommandClass.ThermostatSetPoint,
                (byte)Command.ThermostatSetPointSet,
                (byte)ptype
            });
            var setPoint = GetSetPointData(node);

            message.AddRange(ZWaveValue.GetValueBytes(temperature, setPoint.Precision, setPoint.Scale, setPoint.Size));
            node.SendRequest(message.ToArray());
        }
Example #8
0
 public static void SetSetPoint(ZWaveNode node, SetPointType ptype, double temperature)
 {
     List<byte> message = new List<byte>();
     message.AddRange(new byte[] {
         (byte)CommandClass.ThermostatSetPoint,
         (byte)Command.ThermostatSetPointSet,
         (byte)ptype
     });
     var setPoint = GetSetPointData(node);
     message.AddRange(ZWaveValue.GetValueBytes(temperature, setPoint.Precision, setPoint.Scale, setPoint.Size));
     node.SendRequest(message.ToArray());
 }
Example #9
0
 public static void GetSetPoint(ZWaveNode node, SetPointType ptype)
 {
     node.SendRequest(new byte[] {
         (byte)CommandClass.ThermostatSetPoint,
         (byte)Command.ThermostatSetPointGet,
         (byte)ptype
     });
 }