# python-panasonic-comfort-cloud
A python module for reading and changing status of panasonic climate devices through Panasonic Comfort Cloud app api
## Command line usage
```
usage: pcomfortcloud.py [-h] [-t TOKEN] username password {list,get,set} ...
Read or change status of Panasonic Climate devices
positional arguments:
username Username for Panasonic Comfort Cloud
password Password for Panasonic Comfort Cloud
{list,get,set,dump} commands
list Get a list of all devices
get Get status of a device
set Set status of a device
dump Dump raw data of a device
history Dump history of a device
optional arguments:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
File to store token in
-s [BOOL], --skipVerify [BOOL]
Skip Ssl verification
-r [BOOL], --raw [BOOL]
Raw dump of response
```
```
usage: pcomfortcloud.py username password get [-h] device
positional arguments:
device device number
optional arguments:
-h, --help show this help message and exit
```
```
usage: pcomfortcloud.py username password set [-h]
[-p, --power {On,Off}]
[-t, --temperature TEMPERATURE]
[-f, --fanspeed {Auto,Low,LowMid,Mid,HighMid,High}]
[-m, --mode {Auto,Cool,Dry,Heat,Fan}]
[-e, --eco {Auto,Quiet,Powerful}]
[-y, --airswingvertical {Auto,Down,DownMid,Mid,UpMid,Up}]
[-x, --airswinghorizontal {Auto,Left,LeftMid,Mid,RightMid,Right}]
device
positional arguments:
device Device number
optional arguments:
-h, --help
show this help message and exit
-p, --power {On,Off}
Power mode
-t, --temperature TEMPERATURE
Temperature in decimal format
-f, --fanspeed {Auto,Low,LowMid,Mid,HighMid,High}
Fan speed
-m, --mode {Auto,Cool,Dry,Heat,Fan}
Operation mode
-e, --eco {Auto,Quiet,Powerful}
Eco mode
-y, --airswingvertical {Auto,Down,DownMid,Mid,UpMid,Up}
Vertical position of the air swing
-x, --airswinghorizontal {Auto,Left,LeftMid,Mid,RightMid,Right}
Horizontal position of the air swing
```
```
usage: pcomfortcloud username password dump [-h] device
positional arguments:
device Device number 1-x
optional arguments:
-h, --help show this help message and exit
```
```
usage: pcomfortcloud username password history [-h] device mode date
positional arguments:
device Device number 1-x
mode mode (Day, Week, Month, Year)
date date of day like 20190807
optional arguments:
-h, --help show this help message and exit
```
## Module usage
```python
import pcomfortcloud
session = pcomfortcloud.Session('user@example.com', 'mypassword')
session.login()
client = pcomfortcloud.ApiClient(session)
devices = client.get_devices()
print(devices)
print(client.get_device(devices[0]['id']))
client.set_device(devices[0]['id'],
power = pcomfortcloud.constants.Power.On,
temperature = 22.0)
```
## PyPi package
can be found at https://pypi.org/project/pcomfortcloud/
### How to publish package;
- `python .\setup.py sdist bdist_wheel`
- `python -m twine upload dist/*`
Raw data
{
"_id": null,
"home_page": "http://github.com/lostfields/python-panasonic-comfort-cloud",
"name": "pcomfortcloud",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "home automation panasonic climate",
"author": "Lostfields",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/c9/41/170da48729c0d13a28c6890b17be5dc5c208d4be6d5c28ef41202a462bd2/pcomfortcloud-0.1.2.tar.gz",
"platform": null,
"description": "# python-panasonic-comfort-cloud\nA python module for reading and changing status of panasonic climate devices through Panasonic Comfort Cloud app api\n\n## Command line usage\n\n```\nusage: pcomfortcloud.py [-h] [-t TOKEN] username password {list,get,set} ...\n\nRead or change status of Panasonic Climate devices\n\npositional arguments:\n username Username for Panasonic Comfort Cloud\n password Password for Panasonic Comfort Cloud\n {list,get,set,dump} commands\n list Get a list of all devices\n get Get status of a device\n set Set status of a device\n dump Dump raw data of a device\n history Dump history of a device\n\noptional arguments:\n -h, --help show this help message and exit\n -t TOKEN, --token TOKEN\n File to store token in\n -s [BOOL], --skipVerify [BOOL]\n Skip Ssl verification\n -r [BOOL], --raw [BOOL]\n Raw dump of response\n```\n\n```\nusage: pcomfortcloud.py username password get [-h] device\n\npositional arguments:\n device device number\n\noptional arguments:\n -h, --help show this help message and exit\n```\n\n```\nusage: pcomfortcloud.py username password set [-h]\n [-p, --power {On,Off}]\n [-t, --temperature TEMPERATURE]\n [-f, --fanspeed {Auto,Low,LowMid,Mid,HighMid,High}]\n [-m, --mode {Auto,Cool,Dry,Heat,Fan}]\n [-e, --eco {Auto,Quiet,Powerful}]\n [-y, --airswingvertical {Auto,Down,DownMid,Mid,UpMid,Up}]\n [-x, --airswinghorizontal {Auto,Left,LeftMid,Mid,RightMid,Right}]\n device\n\npositional arguments:\n device Device number\n\noptional arguments:\n -h, --help\n show this help message and exit\n -p, --power {On,Off}\n Power mode\n -t, --temperature TEMPERATURE\n Temperature in decimal format\n -f, --fanspeed {Auto,Low,LowMid,Mid,HighMid,High}\n Fan speed\n -m, --mode {Auto,Cool,Dry,Heat,Fan}\n Operation mode\n -e, --eco {Auto,Quiet,Powerful}\n Eco mode\n -y, --airswingvertical {Auto,Down,DownMid,Mid,UpMid,Up}\n Vertical position of the air swing\n -x, --airswinghorizontal {Auto,Left,LeftMid,Mid,RightMid,Right}\n Horizontal position of the air swing\n```\n\n```\nusage: pcomfortcloud username password dump [-h] device\n\npositional arguments:\n device Device number 1-x\n\noptional arguments:\n -h, --help show this help message and exit\n```\n\n```\nusage: pcomfortcloud username password history [-h] device mode date\n\npositional arguments:\n device Device number 1-x\n mode mode (Day, Week, Month, Year)\n date date of day like 20190807\n\noptional arguments:\n -h, --help show this help message and exit\n```\n\n## Module usage\n\n\n```python\nimport pcomfortcloud\n\n\nsession = pcomfortcloud.Session('user@example.com', 'mypassword')\nsession.login()\n\nclient = pcomfortcloud.ApiClient(session)\n\ndevices = client.get_devices()\n\nprint(devices)\n\nprint(client.get_device(devices[0]['id']))\n\nclient.set_device(devices[0]['id'],\n power = pcomfortcloud.constants.Power.On,\n temperature = 22.0)\n```\n\n## PyPi package\ncan be found at https://pypi.org/project/pcomfortcloud/\n\n### How to publish package;\n- `python .\\setup.py sdist bdist_wheel`\n- `python -m twine upload dist/*`\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Read and change status of Panasonic Comfort Cloud devices",
"version": "0.1.2",
"project_urls": {
"Homepage": "http://github.com/lostfields/python-panasonic-comfort-cloud"
},
"split_keywords": [
"home",
"automation",
"panasonic",
"climate"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8e0c5ed8392dc34cb2e97b841ebaaa8c42f5206d89af907bc6349ca131eff8b0",
"md5": "fa0a688ea6bf7fe7006f9246ff937c86",
"sha256": "887a71353f89f289e578e1c04a2fca2b4bae35c1d73ef0aa46f7099a2cf5a2bf"
},
"downloads": -1,
"filename": "pcomfortcloud-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fa0a688ea6bf7fe7006f9246ff937c86",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 13829,
"upload_time": "2024-11-09T12:15:23",
"upload_time_iso_8601": "2024-11-09T12:15:23.256462Z",
"url": "https://files.pythonhosted.org/packages/8e/0c/5ed8392dc34cb2e97b841ebaaa8c42f5206d89af907bc6349ca131eff8b0/pcomfortcloud-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c941170da48729c0d13a28c6890b17be5dc5c208d4be6d5c28ef41202a462bd2",
"md5": "6a7c6cbaa4671d9a868c6e09a8b647d3",
"sha256": "8649373e9a5abed6d504ed3a4305d992d1d016ee57d28fcdca5dfeb12b66d439"
},
"downloads": -1,
"filename": "pcomfortcloud-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "6a7c6cbaa4671d9a868c6e09a8b647d3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 12461,
"upload_time": "2024-11-09T12:15:24",
"upload_time_iso_8601": "2024-11-09T12:15:24.773092Z",
"url": "https://files.pythonhosted.org/packages/c9/41/170da48729c0d13a28c6890b17be5dc5c208d4be6d5c28ef41202a462bd2/pcomfortcloud-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-09 12:15:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lostfields",
"github_project": "python-panasonic-comfort-cloud",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": []
},
{
"name": "urllib3",
"specs": []
},
{
"name": "bs4",
"specs": []
}
],
"lcname": "pcomfortcloud"
}