Skip to main content

Read and change status of Panasonic Comfort Cloud devices

Project description

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

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]
                                             [-s, --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
  -s, --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

Module usage

import pcomfortcloud

session = pcomfortcloud.Session('user@example.com', 'mypassword')
session.login()

devices = session.get_devices()

print(devices)

print(session.get_device(devices[0].id))

session.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


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.0.12.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

pcomfortcloud-0.0.12-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pcomfortcloud-0.0.12.tar.gz.

File metadata

  • Download URL: pcomfortcloud-0.0.12.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pcomfortcloud-0.0.12.tar.gz
Algorithm Hash digest
SHA256 f33ff2efb0593171894d5ca4f7745d6c856590401d583a5bafc205aca238d7d7
MD5 2935de8991e6c8aaec5fc22339e11ca9
BLAKE2b-256 e966894dc1ef25333dcfec19daa2ee56bf68acb283ea0e86109e0607294a970a

See more details on using hashes here.

File details

Details for the file pcomfortcloud-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: pcomfortcloud-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pcomfortcloud-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 430c10574ed7fe525c22fb2dd5e393eeb846f0a1adc42700744c8de271a0d564
MD5 7b855c15f86663caaa5be178f8ba3e4c
BLAKE2b-256 feb06dd6230735a5e5d689df613954beb5150ba22908cbe41050ac0ca982581a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page