13. Supported Devices

Here you can find all the supported devices and the example code for connecting them to Smartnest.

Supported devices:

Air conditioner

Analog Sensor

Blinds

Camera

Contact Sensor

Door

Doorbell

Fan

Light

Light RGB

Lock

Motion Sensor

Sprinkler

Switch

Temperature Sensor

Thermostat

TV

Smartnest supports the following device controller types:

Power Controller: On OFF

The variable used for this controller is called powerState and it can only be either ON or OFF, this is the basic controller type and it can be used for switches, relays, lights and in general any device that can be turned on, turned off, activated or deactivated.

Supported on All devices

Percentage Controller: 0-100%

The variable used for this controller is called percentage and it can only be between 0 and 100, this can be use for lights or dimmable devices.

Supported on Light, Light RGB, Fan, Blinds

Thermostat Controller:

There are three variables that are used to storage the current state of the thermostat:

  1. temperature : current ambient temperature.

  2. setpoint: desired temperature.

  3. scale: sets the temperature units to use, "C" for Celcius, "F" for Fahrenheit.

The temperature variable is supported by these device types:

  • Thermostat

  • Temperature Sensor

  • Air conditioner

The setpoint variable is supported by these device types:

  • Thermostat

  • Air conditioner

The scale variable is supported by these device types

  • Thermostat

  • Temperature Sensor

  • Air conditioner

Sensor detection Controller:

The variable for digital sensors is called detectionState and it can be true or false, it is supported by the following device types:

  • Contact Sensor

  • Motion Sensor

  • Doorbell

Lock controller:

The variable that stores the state for locks and doors is called lockedState, it can be true or false, it is supported by these device types:

Supported on Lock and Door

Last updated