[App][Pro] Panasonic Comfort Cloud Alternative

I removed the app and installed the everything again.

I used the credentials that I was using before (when the app worked):

Then I tried to add a new device:

Resulting in the following error:
2024-03-26T07:54:41.410Z [log] [MyApp] MyApp has been initialized
2024-03-26T07:54:41.619Z [log] [ManagerDrivers] [Driver:aircon] Driver has been initialized
2024-03-26T07:55:18.582Z [log] [ManagerDrivers] [Driver:aircon] settings.unset
2024-03-26T07:55:18.585Z [log] [ManagerDrivers] [Driver:aircon] resetClient
2024-03-26T07:58:42.707Z [log] [ManagerDrivers] [Driver:aircon] settings.unset
2024-03-26T07:58:42.709Z [log] [ManagerDrivers] [Driver:aircon] resetClient
2024-03-26T07:59:53.002Z [log] [ManagerDrivers] [Driver:aircon] settings.unset
2024-03-26T07:59:53.003Z [log] [ManagerDrivers] [Driver:aircon] resetClient
2024-03-26T08:00:33.174Z [log] [ManagerDrivers] [Driver:aircon] onPairListDevices
2024-03-26T08:00:33.176Z [log] [ManagerDrivers] [Driver:aircon] initializing client (1.20.0)
2024-03-26T08:00:33.183Z [log] [ManagerDrivers] [Driver:aircon] missing token
2024-03-26T08:00:33.185Z [log] [ManagerDrivers] [Driver:aircon] authenticating paros[at]live[dot]se
2024-03-26T08:00:34.320Z [err] [ManagerDrivers] [Driver:aircon] login failed: ServiceError: Request failed with status code 401
at new ServiceError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/model/ServiceError.js:23:28)
at ComfortCloudClient.handleError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:184:15)
at ComfortCloudClient. (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:106:30)
at step (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:33:23)
at Object.throw (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:14:53)
at rejected (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
_code: undefined,
_httpCode: 401
}
2024-03-26T08:00:34.336Z [err] [ManagerDrivers] [Driver:aircon] bad credentials

hey Guys,

im running V1.1.2 and keep having the Authentication failed, edit credentials alarm…

i tried re-entering the credentials, restart the app, restart the homey… but nothing worked.

anyone have an idea?

i run the homey pro.

I have version 1.1.3 and get the errors described above.

I submitted an update that @Robert_Schmidt merged yesterday. Version 1.1.4 should fix the authentication issue you’re seeing @Jenny_S @Par_Ostberg @niels_busser :crossed_fingers:

4 Likes

This is because when I contributed the flow cards I followed Homey’s developer guide, but didn’t realise there was a difference between “driver” flow cards and “device” flow cards. The latter requires a slightly different approach that I’m not able to fully test as I only have the one device.

If I have time over the coming weeks I’ll see if I can add Device cards. Or if someone feels up for getting their hands dirty (and has access to a setup with multiple devices on one account) then I bet @Robert_Schmidt would appreciate the contribution :slight_smile:

2 Likes

It’s working, many thanks!

It’s working, thanks a lot!

The official app will be removed. Is it possible to publish this app in Homey store instead?

Is it possible to get a “Always keep on” parameter for the app… so easy to turn it off by accident just clicking on the icon

just a stupid question maybe, but will the app be updated automatically in my homey when a new version is released?

Hi.

Is anyopne having trouble installing this app. Im getting errors when installing from CLI, Nodejs.
npm error missing: panasonic-comfort-cloud-client@1.2.5, required by net.schmidt-cisternas.pcc-alt@1.1.2. + many others…

I have tried on 2 win11 Pc’s but same error. Maybe some version conflicts. I just downloaded the newest version of NodeJs.

Help will be recieved with many thanks.

I have done the required changes to get per-device action cards. Tested in my env with 4 devices. Works like a charm with all the existing actions. I have not deprecated the wrongly added “driver” action flow cards, but that should be done since they don’t work properly (possibly except if you have only one device).

But; I don’t have permission in the GitHub repo to push my branch. I assume @Robert_Schmidt has to grant me push (or something simliar) permissions if I am to contribute my code.

1 Like

No. When installed with Homey CLI, you’ll need to update manually by downloading+building+installing the new version.

1 Like

Nice!

You contribute by forking my repository, then push your changes to your fork, then submit a pull request from your fork to my repo. This is nice and clean.

1 Like

That sounds doable - I’ll add it on GitHub issues.

I’m on 1.1.4 and now I get “authentication failed” now. Not changed anything. Anyone else got this problem?

It would technically be possible, but I’m personally not interested in the burden of passing Athom’s quality screening.

If someone would like to assume the responsibility, they’re welcome to.

Yes, I do - that’s why I’ve popped into the forum😅.
I’ve not figured out the reason yet.

Fork done, code builds but testing currently blocked by the authentication issue.

This snippet is enough to reproduce the problem (also posted on the client library issue):

import { ComfortCloudClient } from 'panasonic-comfort-cloud-client'
let client = new ComfortCloudClient("1.20.1");
await client.login("your username", "your password");

I’ve tried with both my “real” and the “for Homey” Panasonic user (which both work with the Android app), versions “1.20.0”, “1.20.1” and “1.20.2” (though neither the Android nor iPhone apps have had any updates since March).

The response is 403 (“forbidden”) in all cases. It’s as if Panasonic are able to detect and block requests not from the official apps.