Read and change status of Panasonic Comfort Cloud devices
Project description
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_wheel
python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pcomfortcloud-0.1.0.tar.gz
(12.2 kB
view details)
Built Distribution
File details
Details for the file pcomfortcloud-0.1.0.tar.gz
.
File metadata
- Download URL: pcomfortcloud-0.1.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dedc47032e7825c45483d6fec2b8e98c579a540b860bc4d912594b789c29cd4 |
|
MD5 | 2dc8119340ea24220452c2de40646190 |
|
BLAKE2b-256 | 9d95c56a85cffaf6ac40283ca9ecffc467b4c5c38b670dac4ebe3d0eabe9a0c5 |
File details
Details for the file pcomfortcloud-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pcomfortcloud-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c095e90d2e90695904eda7c204b6e0f7f5d33b7f86c5db8616f10711e2069e |
|
MD5 | c03327cb1efe396d6351b10044c96d20 |
|
BLAKE2b-256 | 020c2e035799839261b0bd3e400884b662d1ae906b57ecc68f1f2a653f6fb1a7 |