Python script for read/write data between the cozytouch server and domoticz on rpi.
Cozytouch 5.37 and following versions only for domoticz version 2023.1 or newer
This script support these classes :
AtlanticPassAPCZoneControlMainComponent or AtlanticPassAPCHeatPumpMainComponent (new) = Central element PAC :
AtlanticPassAPCZoneControlZoneComponent or AtlanticPassAPCHeatingAndCoolingZoneComponent (new) = PAC zone :
- - Atlantic Alféa / Excelia Ai
AtlanticDomesticHotWaterProductionV3IOComponent = thermodynamic heating device :
- - Thermor AéroMax 4
AtlanticElectricalHeaterWithAdjustableTemperatureSetpointIOComponent = radiator
AtlanticDomesticHotWaterProductionIOComponent = Heating device
PodMiniComponent or PodV3Component = Bridge Cozytouch
- Set in the script the IP adress and port of Domoticz.
- Set in your username and password of your cozytouch account.
- Please ensure in Domoticz/parameters that no authentification is needing in the same network (ex. 192.168.0.*).
- You must install this library (sudo pip install requests shelves)
- You must insert a new line in your crontab to run the script cyclically like every 1,2 or 5 minutes...
sudo nano /etc/crontab -e
*/1 * * * * python /home/'user'/domoticz/scripts/cozytouch.py
And save.
Script :
- At first execution it create a virtual material "dummy" nammed "cozytouch_vx", and create the virtual devices (logged in domoticz events)
- Then the script reads or writes the datas between the server cozytouch and domoticz.