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.
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
This plugin requires python v3.8 (or greater)
It uses python requests and simplejson modules to send and receive json content to panasonic cloud. If you don't have them execute pip3 install requests
and pip3 install simplejson
as root to install.
You need a panasonic id associated with your devices to be able to use this plugin:
(instructions copied from codyc1515: https://github.com/codyc1515/homebridge-panasonic-air-conditioner/)
Aquarea support inspired by: https://github.com/Hernas/homebridge-panasonic-heat-pump
This script was tested with:
from Domoticz import Parameters, Devices
python testPlugin.py