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
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_wheelpython -m twine upload dist/*
Metadata
Release files for pcomfortcloud 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pcomfortcloud-0.1.2.tar.gz | 12.5 kB | Without provenance | Details for pcomfortcloud-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pcomfortcloud-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pcomfortcloud-0.1.2-py3-none-any.whl |
Total release size: 26.3 kB
Release files / pcomfortcloud-0.1.2.tar.gz
| Download URL | pcomfortcloud-0.1.2.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8649373e9a5abed6d504ed3a4305d992d1d016ee57d28fcdca5dfeb12b66d439
|
|
BLAKE2b-256 checksum How to use checksums |
c941170da48729c0d13a28c6890b17be5dc5c208d4be6d5c28ef41202a462bd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / pcomfortcloud-0.1.2-py3-none-any.whl
| Download URL | pcomfortcloud-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
887a71353f89f289e578e1c04a2fca2b4bae35c1d73ef0aa46f7099a2cf5a2bf
|
|
BLAKE2b-256 checksum How to use checksums |
8e0c5ed8392dc34cb2e97b841ebaaa8c42f5206d89af907bc6349ca131eff8b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for pcomfortcloud 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.