Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bisand/node-red-contrib-panasonic-comfort-cloud
https://github.com/bisand/node-red-contrib-panasonic-comfort-cloud
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bisand/node-red-contrib-panasonic-comfort-cloud
- Owner: bisand
- License: mit
- Created: 2020-12-01T12:29:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T15:51:07.000Z (4 months ago)
- Last Synced: 2024-10-18T07:08:11.132Z (3 months ago)
- Language: JavaScript
- Size: 1.21 MB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-red-contrib-panasonic-comfort-cloud
[![DeepScan grade](https://deepscan.io/api/teams/16513/projects/19832/branches/520480/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=16513&pid=19832&bid=520480)
![GitHub last commit](https://img.shields.io/github/last-commit/bisand/node-red-contrib-panasonic-comfort-cloud)
![Travis (.com)](https://img.shields.io/travis/com/bisand/node-red-contrib-panasonic-comfort-cloud)
![npm](https://img.shields.io/npm/v/node-red-contrib-panasonic-comfort-cloud)
![npm](https://img.shields.io/npm/dw/node-red-contrib-panasonic-comfort-cloud)
![NPM](https://img.shields.io/npm/l/node-red-contrib-panasonic-comfort-cloud)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](https://www.npmjs.com/package/panasonic-comfort-cloud-client).
# Features
* Get groups of the devices.
* Get single device by Device ID.
* Send commands to device.# 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**:
* Off = 0
* On = 1Valid values for **operationMode**:
* Auto = 0
* Dry = 1
* Cool = 2
* Heat = 3
* Fan = 4Valid values for **ecoMode**:
* Auto = 0
* Powerful = 1
* Quiet = 2Valid values for **temperatureSet**:
* 8 - 30Valid values for **airSwingUD**:
* Up = 0
* UpMid = 3
* Mid = 2
* DownMid = 4
* Down = 1Valid values for **airSwingLR**:
* Left = 0
* LeftMid = 4
* Mid = 2
* RightMid = 3
* Right = 1Valid values for **fanAutoMode**:
* Disabled = 1
* AirSwingAuto = 0
* AirSwingLR = 3
* AirSwingUD = 2Valid values for **fanSpeed**:
* Auto = 0
* Low = 1
* LowMid = 2
* Mid = 3
* HighMid = 4
* High = 5### Payload example
```JSON
{
"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](https://raw.githubusercontent.com/bisand/node-red-contrib-panasonic-comfort-cloud/master/assets/images/Nodes.png)
[Click here do download demo flow](https://raw.githubusercontent.com/bisand/node-red-contrib-panasonic-comfort-cloud/master/examples/demo.json)
## Licence[MIT](https://github.com/bisand/node-red-contrib-panasonic-comfort-cloud/blob/HEAD/LICENSE)