[App][Pro] Panasonic Comfort Cloud Alternative

Same problem as NickM. Created a separate account, was not logged into any app on the iPhone/iPad, and entered credentials in PCC Alternative App Version 1.1.2 on the Homey Pro.

Logging in with the credentials to the original app on the iPhone/iPad works without any problems.

2024-03-19T15:16:11.116Z [log] [MyApp] MyApp has been initialized
2024-03-19T15:16:11.324Z [log] [ManagerDrivers] [Driver:aircon] Driver has been initialized
2024-03-19T15:16:27.403Z [log] [ManagerDrivers] [Driver:aircon] onPairListDevices
2024-03-19T15:16:27.407Z [log] [ManagerDrivers] [Driver:aircon] initializing client (1.19.0)
2024-03-19T15:16:27.416Z [log] [ManagerDrivers] [Driver:aircon] missing token
2024-03-19T15:16:27.420Z [log] [ManagerDrivers] [Driver:aircon] authenticating ****************
2024-03-19T15:16:28.676Z [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-19T15:16:28.684Z [err] [ManagerDrivers] [Driver:aircon] bad credentials

I’m not shore if I did something with my password, but not I get an error:

2024-03-20T09:26:13.525Z [log] [MyApp] MyApp has been initialized
2024-03-20T09:26:13.738Z [log] [ManagerDrivers] [Driver:aircon] Driver has been initialized
2024-03-20T09:26:13.796Z [log] [ManagerDrivers] [Driver:aircon] initializing client (1.19.0)
2024-03-20T09:26:13.801Z [log] [ManagerDrivers] [Driver:aircon] missing token
2024-03-20T09:26:13.805Z [log] [ManagerDrivers] [Driver:aircon] authenticating paros[at]live[dot]se
2024-03-20T09:26:14.420Z [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-20T09:26:14.429Z [err] [ManagerDrivers] [Driver:aircon] bad credentials
2024-03-20T09:26:14.431Z [err] [ManagerDrivers] [Driver:aircon] [Device:c1c21751-7ddb-4be5-b774-712dd28807d1] getDevice failed: Error: Authentication failed, edit credentials in app settings.
at MyDriver.getClient (/app/drivers/aircon/driver.js:48:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MyDriver.invokeClient (/app/drivers/aircon/driver.js:54:26)
at async MyDevice.fetchFromService (/app/drivers/aircon/device.js:32:22)
at async MyDevice.fetchAndRestartTimer (/app/drivers/aircon/device.js:58:9)
at async MyDevice.onInit (/app/drivers/aircon/device.js:126:13)
at async MyDevice._onInit (/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:148:7)
2024-03-20T09:26:14.452Z [log] [ManagerDrivers] [Driver:aircon] [Device:c1c21751-7ddb-4be5-b774-712dd28807d1] Device ‘CS-HZ25XKE+4891756419’ has been initialized
2024-03-20T09:26:35.483Z [log] [ManagerDrivers] [Driver:aircon] settings.unset
2024-03-20T09:26:35.485Z [log] [ManagerDrivers] [Driver:aircon] resetClient
2024-03-20T09:26:35.488Z [log] [ManagerDrivers] [Driver:aircon] initializing client (1.19.0)
2024-03-20T09:26:35.494Z [log] [ManagerDrivers] [Driver:aircon] missing token
2024-03-20T09:26:35.497Z [log] [ManagerDrivers] [Driver:aircon] authenticating paros[at]live[dot]se
2024-03-20T09:26:35.844Z [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
}

I get the same error from another integration to Panasonic cloud (Tibber)

I am not able to connect getting invalid_Client. after logging in Homey Community store installer with my homey account. What am I doing wrong?

Can @Robert_Schmidt or someone confirm if the integration is broken (due to changes from Panasonic)?

Confirmed. There no easy fix.

The PCC client package used by the app could theoretically support 2FA, but it’d likely be less convenient than before. (E.g. having to provide a fresh 2FA code every time the access token needs renewal.)

Panasonic could backtrack, and reenable accounts without 2FA. They’ll probably only consider this if they lose business otherwise.

The HCS is not operational - but this is not the forum to discuss this.

I asked Homey about the Panasonic comfort cloud app and they replied that they will probably remove it because it has not been working for a while.

2 Likes

Any idea where to ask about this?

Look here.

It seems a renamed “HCS” (now “Homey Community Space”) has been rolled out - I have not tested this yet.

Questions about HCS should go to that topic, or directly to their Discord.

will this change be available in your alternative app? How are the chances?

If the client package gets a workaround or fix, I’ll be happy to make use of it. Not much more I can say, really…

It looks like we might have found a workaround, but need the upstream client package to apply the fix before we can say for certain: Bump app version to fix auth failure by nickmurison · Pull Request #15 · marc2016/panasonic-comfort-cloud-client · GitHub

1 Like

Found a fix, sent you a PR :slight_smile:

3 Likes

It’s merged, and has been independently confirmed to be working!

I was a bit quick to assume the nature of the problem.

Thanks again for you contribution, @NickM!

1 Like

I upgraded to v1.1.3 (from 1.1.2) and am able to control the airpumps (=controlling temp/speed via device card works), but when I create flows, some of the action cards (=eg set fan speed) are on the app, not on each device. Is this by design, a bug, limitation in the API or something I’ve done wrong? I have 4 devices, in two different houses, and was hoping to eg control fan speed independent, on each device. Turn on/off and set temp is on each device, as expected.

I installed the updated version yesterday and it worked. Mistake again today

2024-03-25T05:58:16.991Z [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-25T05:58:17.026Z [err] [ManagerDrivers] [Driver:aircon] bad credentials
2024-03-25T05:58:17.059Z [err] [ManagerDrivers] [Driver:aircon] [Device:92d36efb-5755-4d4e-add5-8503377e092f] getDevice failed: Error: Authentication failed, edit credentials in app settings.
at MyDriver.getClient (/app/drivers/aircon/driver.js:48:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MyDriver.invokeClient (/app/drivers/aircon/driver.js:54:26)
at async MyDevice.fetchFromService (/app/drivers/aircon/device.js:32:22)
at async MyDevice.fetchAndRestartTimer (/app/drivers/aircon/device.js:58:9)
unhandledRejection:
Error: Authentication failed, edit credentials in app settings.
at MyDriver.getClient (/app/drivers/aircon/driver.js:48:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MyDriver.invokeClient (/app/drivers/aircon/driver.js:54:26)
at async MyDevice.fetchFromService (/app/drivers/aircon/device.js:32:22)
at async MyDevice.fetchAndRestartTimer (/app/drivers/aircon/device.js:58:9)

App restarted and Credentials reentered

2024-03-25T06:23:09.050Z [log] [MyApp] MyApp has been initialized
2024-03-25T06:23:09.262Z [log] [ManagerDrivers] [Driver:aircon] Driver has been initialized
2024-03-25T06:23:09.337Z [log] [ManagerDrivers] [Driver:aircon] initializing client (1.20.0)
2024-03-25T06:23:09.347Z [log] [ManagerDrivers] [Driver:aircon] missing token
2024-03-25T06:23:09.349Z [log] [ManagerDrivers] [Driver:aircon] authenticating ****************
2024-03-25T06:23:10.235Z [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-25T06:23:10.246Z [err] [ManagerDrivers] [Driver:aircon] bad credentials
2024-03-25T06:23:10.248Z [err] [ManagerDrivers] [Driver:aircon] [Device:92d36efb-5755-4d4e-add5-8503377e092f] getDevice failed: Error: Authentication failed, edit credentials in app settings.
at MyDriver.getClient (/app/drivers/aircon/driver.js:48:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MyDriver.invokeClient (/app/drivers/aircon/driver.js:54:26)
at async MyDevice.fetchFromService (/app/drivers/aircon/device.js:32:22)
at async MyDevice.fetchAndRestartTimer (/app/drivers/aircon/device.js:58:9)
at async MyDevice.onInit (/app/drivers/aircon/device.js:126:13)
at async MyDevice._onInit (/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:148:7)
2024-03-25T06:23:10.267Z [log] [ManagerDrivers] [Driver:aircon] [Device:92d36efb-5755-4d4e-add5-8503377e092f] Device ‘********’ has been initialized

Does anyone else have the same problem?

I can try, how do I install the new version?

Homey support say that the old outdated app will be removed and a new app can be published in the official app store. Can this version be used?

I removed the old version and then installed the new version.

It also worked for a day.