Thermostat device

A thermostat monitors room temperature and adjusts heating or cooling for comfort. Using Node-RED Alexa integration, you can set routines to adjust temperatures automatically based on time, presence, or weather conditions.

Node-RED Virtual Thermostat device

Output

The following is a sample Node-RED output for this device using default component values:

{
  "id": "{--Thermostat Device ID--}",
  "name": "{--Thermostat Device Name--}",
  "type": "thermostat",
  "components": {
    "TemperatureSensor": {
      "temperature": {
        "value": 22,
        "scale": "CELSIUS"
      }
    },
    "ThermostatController": {
      "targetSetpoint": {
        "value": 15,
        "scale": "CELSIUS"
      },
      "thermostatMode": "AUTO"
    }
  },
  "metadata": {
    "previous": {
      "components": {
        ...
      }
    }
  }
}

Components

The following components enable various features and controls for this device. Each component offers specific capabilities, commands, and configurations to enhance your Node-RED Alexa integration.

TemperatureSensor

The TemperatureSensor provides the current temperature measured by the sensor.

Commands:

“Alexa, what's the living room temperature?”

Specification:

Property Description Allowed Values Default
temperature.value Indicates the current temperature measured by the sensor. Celsius: 10 - 37.5
Fahrenheit: 50 - 99.5
22
temperature.scale Specifies the temperature scale used. CELSIUS, FAHRENHEIT CELSIUS

ThermostatController

The ThermostatController manages heating and cooling systems for thermostats.

Commands:

“Alexa, set the living room temperature to 22 degrees.”
“Alexa, increase the bedroom temperature by 3 degrees.”

Specification:

Property Description Allowed Values Default
targetSetpoint.value Sets the desired temperature for the thermostat. Celsius: 10 - 37.5
Fahrenheit: 50 - 99.5
15
targetSetpoint.scale Specifies the temperature scale used. CELSIUS, FAHRENHEIT CELSIUS
thermostatMode Indicates the current operating mode of the thermostat. AUTO, COOL, HEAT, ECO, OFF AUTO