sdamasoc / domoticz_panasonic_CZ-TACG1

A Python plugin for Domoticz to communicate with Panasonic Cloud Confort throught CZ-TACG1 WiFi adapter
MIT License
8 stars 1 forks source link
cz-tacg1 domoticz panasonic panasonic-comfort-cloud

CodeQL

Domoticz python plugin for Panasonic Comfort Cloud devices

A Python plugin for Domoticz to communicate with Panasonic Comfort Cloud API. It was designed for CZ-TACG1 WiFi adapter but should work with other Panasonic Cloud Comfort devices such as Aquarea devices.

Getting started

If you don't have git:

sudo apt-get update
sudo apt-get install git

Goto to the plugins directory of your domoticz installation folder and clone this repository:

cd domoticz/plugins
git clone https://github.com/sdamasoc/domoticz_panasonic_CZ-TACG1.git domoticz_panasonic_CZ-TACG1

So in this case the directory structure should now be: domoticz/plugins/domoticz_panasonic_CZ-TACG1/plugin.py

Next, you need to restart Domoticz so that it will find the plugin:

 sudo systemctl restart domoticz.service

or

sudo service domoticz.sh restart

From here the plugin should be able to be set-up from the Domoticz interface. Go to the hardware page and look in the dropdown, you should find "Panasonic Airco (CZ-TACG1)"

Then, fill your email, password and click on "Add"

If you run Linux and the plugin does not show up in the hardware list, you may have to make the plugin.py file executable. Go to the directory and execute the command:

 chmod +x domoticz_panasonic_CZ-TACG1/plugin.py

https://www.domoticz.com/wiki/Using_Python_plugins

Requirements

(instructions copied from codyc1515: https://github.com/codyc1515/homebridge-panasonic-air-conditioner/)

Aquarea support inspired by: https://github.com/Hernas/homebridge-panasonic-heat-pump

Compatibility

This script was tested with:

To test this plugin outside Domoticz

  1. In plugin.py uncomment line: from Domoticz import Parameters, Devices
  2. Rename .Domoticz.py to Domoticz.py
  3. Put your credentials in Domoticz.py
  4. Run testPlugin.py: python testPlugin.py