bisand / node-red-contrib-panasonic-comfort-cloud

MIT License
6 stars 4 forks source link

node-red-contrib-panasonic-comfort-cloud

DeepScan grade GitHub last commit Travis (.com) npm npm NPM

Node-RED support for Panasonic Comfort Cloud to control air conditioning systems over REST API. This libaray uses the same endpoints as the mobile app Panasonic Comfort Cloud. Based on panasonic-comfort-cloud-client.

Features

Usage

Provide username and password via the config node. The access token will be retrieved and stored in the credentials after the first login. It will only be stored in memory store, so after a restart, it will have to be renewed again. This is done automatically if you have provided a correct username and password.

Groups

Does not process any input, but returns a list of all homes and devices in your setup.

Device

Takes device ID as an input in the payload or by providing it via the node config. You can find the device id by looking for guid in the list of devices from the groups result.

Command

Send commands to a device based on device id and commands provided by a JSON object.

Commands must be injected as a JSON object containing the correct values. These values can be either an enum key (case insensitive) or value. The JSON object can consist of one or many properties/parameters. The corresponding key/value pair are listed below.

Values

Valid values for operate:

Valid values for operationMode:

Valid values for ecoMode:

Valid values for temperatureSet:

Valid values for airSwingUD:

Valid values for airSwingLR:

Valid values for fanAutoMode:

Valid values for fanSpeed:

Payload example

{
    "deviceId": "CS-XXXXXXX+1234567890",
    "operate": "On",
    "operationMode": "Heat",
    "ecoMode": "Auto",
    "temperatureSet": 22,
    "airSwingUD": "Mid",
    "airSwingLR": "Mid",
    "fanAutoMode": "AirSwingAuto",
    "fanSpeed": "Auto"
}

Illustration on how to use the different nodes

Click here do download demo flow

Licence

MIT