node-red-contrib-ambiclimate

1.0.2 • Public • Published

node-red-contrib-ambiclimate

npm version

A collection of Node-RED nodes to control Ambi Climate devices.

Installation

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-ambiclimate

OAuth Client

Register a OAuth Client in the Ambi Dev Portal by following the steps on the Quick Start page. You require the Client Id and Client Secret of that client in order to use this node.

Usage

Separate nodes are provided for each of the capabilities of the LIFX HTTP Remote Control API. Each node can be configured, or can receive settings in the triggering msg.

Power Off

Power off your AC

Sample input msg.payload:

{
  "room_name": "Bedroom",
  "location_name": "Home"
}

Comfort Mode

Enable Comfort mode on your AC

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home"
}

Away Temperature Lower

Enable Away mode and set an lower bound for temperature. Ambi will try to keep temperature above the lower bound.

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home",
  "value": 15
}

Away Temperature Upper

Enable Away mode on your AC to stay above target temperature. Ambi will try to keep temperature below the upper bound.

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home",
  "value": 22
}

Away Humidity Upper

Enable Away mode and set an upper bound for humidity. Ambi will try to keep humidity below the upper bound.

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home",
  "value": 70
}

Temperature Mode

Enable Temperature mode on your AC

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home",
  "value": 24
}

Sensor Temperature

Get latest sensor temperature data.

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home"
}

Sample output msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home",
  "created_on": "2016-08-19T08:08:01+00:00",
  "value": 28.970001220703125
}

Sensor Humidity

Get latest sensor humidity data.

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home"
}

Sample output msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home",
  "created_on": "2016-08-19T08:08:01+00:00",
  "value": 68.08000183105469
}

Current Mode

Get Ambi Climate's current working mode.

Sample input msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home"
}

Sample output msg.payload

{
  "room_name": "Bedroom",
  "location_name": "Home",
  "mode": "Away_Temperature_Upper",
  "value": 25
}

Package Sidebar

Install

npm i node-red-contrib-ambiclimate

Weekly Downloads

3

Version

1.0.2

License

Apache-2.0

Unpacked Size

59.1 kB

Total Files

9

Last publish

Collaborators

  • alisdairjsmyth