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

Data retrieved, no devices created in Domoticz #13

Closed E2V-Erik closed 5 months ago

E2V-Erik commented 6 months ago

Hi,

I installed this yesterday and I can see in the logging that the connection to panasonic cloud works. I get back to 4 devices we have in the cloud, see attached logging: get_devices log.txt

After this log, I only get this additional message in log: 2024-01-12 10:08:39.219 Status: CW20_Airco: Initialized version 2.0.0, author 'sdamasoc'

I don't see any devices created in Domoticz.

Also the setup button in the hardware TAB, for the plugin, is empty when clicked upon. image

image

sdamasoc commented 6 months ago

I saw yesterday that panasonic has published a new version of the application. At this moment it is still working for my device but maybe they have made some changes on the API.

Can you provide me more logs from domoticz?

E2V-Erik commented 6 months ago

Hi, is there a way to get that from CLI? The log in domoticz is very small, so the info I just saw is already wrapped

sdamasoc commented 6 months ago

I have Domoticz on an Ubuntu distribution, the log file is in /tmp/domoticz.txt

You can check your configuration, in /etc/init.d/domoticz.sh you will find the path to the log in the daemon parameter -log

E2V-Erik commented 6 months ago

HI,

I found this message in the logging: DEVICE TYPE 3IS NOT SUPPORTED YET

E2V-Erik commented 6 months ago

OK. I modified the phyton script line 103 checking for device type into this: elif(deviceType != "3"):

Now I have the devices created, 8 for each AC. image

I am only surprised about the TYPE for MODE, as that should be the one setting it to cool, heat, dry

Will further investigate.

Interested to understand why type 3 was excluded?

E2V-Erik commented 6 months ago

I am sorry. When looking in the Switch tab, I do see that Mode indeed has a dropdown to set it. Sorry. Should have checked. image

sdamasoc commented 6 months ago

I'm working on the full support of type 3 devices. You can give a try with the branch 2.0.0 which is quite stable now. If everything works for you I can merge the changes on the master branch.

paninoalsugo commented 5 months ago

Hi all, I have same problem with device type 4, changing elif block code all seems to work correctly.

sdamasoc commented 5 months ago

I have a device type 1, once some had issues and he had a device type 2 so I decided to just support type 1 as I had no idea of the api for a type 2. Now with the help of @Marcel81 I implemented the code for device type 2 and 3, it was on a branch but I just merged it on the master.

@paninoalsugo If you have a type 4 and the modified code works it should be solved with this new version

paninoalsugo commented 5 months ago

Yes, I can confirm, type 4 works well

sdamasoc commented 5 months ago

code merged, issue closed