# \[App\]\[Pro\] Panasonic Comfort Cloud Alternative (CLI Install only)

**URL:** <https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906>\
**Category:** Apps\
**Created:** [February 1, 2023, 8:42pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906 "2023-02-01T20:42:17Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Robert\_Schmidt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_schmidt/32/53755_2.png) [@Robert\_Schmidt](https://community.homey.app/u/Robert_Schmidt)\
**Post date:** [June 19, 2023, 11:00am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/43 "2023-06-19T11:00:07Z")

</div>

Thanks, @NickM! I’ve accepted the PR, bumped version to 1.1, and asked for HCS to update.  
However, note that HCS is still not working. For the time being, using the SDK is the only way to get this app installed.

---

<div class="post-metadata">

**Author:** ![Robert\_Schmidt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_schmidt/32/53755_2.png) [@Robert\_Schmidt](https://community.homey.app/u/Robert_Schmidt)\
**Post date:** [June 19, 2023, 11:04am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/44 "2023-06-19T11:04:53Z")

</div>

@Martijn_C, I’ve not seen a similar issue.  
So you’re saying the flow actually seems to works OK, but the error appears?  
If you disable any Device Capabilities cards, does it still happen?  
Can you share the flow?

@Arnold_vd_Linden, can you be more specific about what triggers the error you’re seeing?  
(Are you turing the units on manually, via the Panasonic app, or the Homey app?)  
I’ve turned my unit on/off both manually and via Homey flow several times this weekend, without issue.

---

<div class="post-metadata">

**Author:** ![Martijn\_C](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_c/32/39993_2.png) [@Martijn\_C](https://community.homey.app/u/Martijn_C)\
**Post date:** [June 19, 2023, 11:09am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/45 "2023-06-19T11:09:06Z")

</div>

Hi @Robert_Schmidt ,

Yes, the error occurs in any flow, with any card. Doesn’t matter if the card is from Device Capabilities or your app. It always works, but also always returns this error. So also just testing the card “turn on AC” gives the error. My flow is very simple. If time is 20.30 and temperature is higher than 23 degrees, then set AC to 17 degrees and turn on AC.

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [June 19, 2023, 11:38am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/46 "2023-06-19T11:38:48Z")

</div>

> [@Robert\_Schmidt](#):
>
> can you be more specific about what triggers the error you’re seeing?  
> (Are you turing the units on manually, via the Panasonic app, or the Homey app?)  
> I’ve turned my unit on/off both manually and via Homey flow several times this weekend, without issue.

When I change the airco setting with the remote controll. For example to Eco Mode and Flow Direction UD. And turn it off with the remote controll.  
The next day turning the airco on manually via the Homey app I get these errors.  
It is not when changing settings settings in the Homey app.

It looks like the error is only occured when settings are made outside the Homey app. Is the airco turned off with the Homey app it will turn on without errors the next time.

by the way.  
Most times I get an Air Swing LR error and my units don’t have this option.

---

<div class="post-metadata">

**Author:** ![Basov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/basov/32/79096_2.png) [@Basov](https://community.homey.app/u/Basov)\
**Post date:** [June 20, 2023, 9:45pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/47 "2023-06-20T21:45:23Z")

</div>

@Robert_Schmidt Thanks for making an alternative app, the ‘official’ one isn’t working for me on Homey Pro 2023. I hope to be able to try yours soon.

I understand the [old Homey Community Store](https://store.homey.community/) is no longer supported and doesn’t work anymore, and as a consequence I can’t install your version of the app. A change in ownership is now in progress and the [new Homey Community Space](https://homeycommunity.space/) is in development. When that’s done I should be able to try it again, correct?

Here’s an [Article about the old/new HCS](https://community.homey.app/t/homey-community-app-store/29865/361).

---

<div class="post-metadata">

**Author:** ![Leon\_Rouwendaal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leon_rouwendaal/32/18129_2.png) [@Leon\_Rouwendaal](https://community.homey.app/u/Leon_Rouwendaal)\
**Post date:** [June 29, 2023, 4:15pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/48 "2023-06-29T16:15:00Z")

</div>

tried to install the app with my macbook pro.

1. I installed node.js 18.16.1 LTS

2. open terminal

3. run npm install -g homey

4. run homey login and authorized my login  
MBPvanLeon227:~ MrICW$ homey login  
✓ Logging in…  
**To log in with your Athom Account, please visit** **[Athom CLI | Log-in](https://cli.athom.com?port=49881&clientId=64691b4358xxxxxxxxxxxxxxxxxc)**  
? **Paste the code:** 3\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*_**6  
✓ You are now logged in as Leon Rl \<i@**_.nl\>

5. downloaded the zip file from [GitHub - ugumba/homey-panasonic-comfort-cloud-alt](https://github.com/ugumba/homey-panasonic-comfort-cloud-alt) and extracted the file in a map in the downloads folder and run homey app install  
MBPvanLeon227:homey-panasonic-comfort-cloud-alt-master MrICW$ homey app install  
? **Choose an active Homey:** Homey Pro van Leon  
You have selected `Homey Pro van Leon` as your active Homey.  
✓ Pre-processing app…  
Added FlowCard `change-air-swing-leftright` for type `actions`  
Added FlowCard `change-air-swing-updown` for type `actions`  
Added FlowCard `change-eco-mode` for type `actions`  
Added FlowCard `change-fan-speed` for type `actions`  
Added FlowCard `change-operation-mode` for type `actions`  
Added Driver `aircon`  
Added Capability `air_swing_lr`  
Added Capability `air_swing_ud`  
Added Capability `eco_mode`  
Added Capability `fan_auto_mode`  
Added Capability `fan_speed`  
Added Capability `nanoe_mode`  
Added Capability `operation_mode`  
Command failed: npm ls --parseable --all --only=prod  
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.  
npm ERR! code ELSPROBLEMS  
npm ERR! missing: panasonic-comfort-cloud-client@1.2.0, required by net.schmidt-cisternas.pcc-alt@1.0.5  
npm ERR! A complete log of this run can be found in:  
npm ERR! /Users/MrICW/.npm/\_logs/2023-06-29T15\_30\_09\_863Z-debug-0.log  
This error may be fixed by running `npm install` in your app.

Have no idea what the problem could be is the panasonic comfort cloud client a mandatory part of the installation???

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 29, 2023, 4:21pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/49 "2023-06-29T16:21:55Z")

</div>

You need to run `npm install` before `homey app install`.

---

<div class="post-metadata">

**Author:** ![Leon\_Rouwendaal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leon_rouwendaal/32/18129_2.png) [@Leon\_Rouwendaal](https://community.homey.app/u/Leon_Rouwendaal)\
**Post date:** [June 29, 2023, 7:07pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/50 "2023-06-29T19:07:12Z")

</div>

I ran the npm install command and npm install -g homey and after a reboot of the laptop the homey app install installed properly the panasonic cloud alternative app:  
✓ Typescript detected. Compiling…  
✓ Typescript compilation successful  
✓ Validating app…  
✓ App validated successfully against level `debug`  
✓ Packing Homey App…  
— App archive size: 3.04 MB, 1170 files  
✓ Installing Homey App on `Homey Pro van Leon` ([https://192-168-1-3.homey.homeylocal.com](https://192-168-1-3.homey.homeylocal.com))…  
✓ Homey App `net.schmidt-cisternas.pcc-alt` successfully installed

but when I open the panasonic app en try to authenticate with my secondary username and password (only use is the homey app), I see in the log the next notification and cannot add any of my airco devices.

2023-06-29T18:54:10.603Z [log] [MyApp] MyApp has been initialized  
2023-06-29T18:54:10.828Z [err] [ManagerDrivers] Error Initializing Driver aircon: Error: Cannot find module ‘/node\_modules/follow-redirects/node\_modules/debug/src/index.js’. Please verify that the package.json has a valid “main” entry  
at tryPackage (node:internal/modules/cjs/loader:353:19)  
at Function.Module.\_findPath (node:internal/modules/cjs/loader:566:18)  
at Function.Module.\_resolveFilename (node:internal/modules/cjs/loader:919:27)  
at Function.Module.\_load (node:internal/modules/cjs/loader:778:27)  
at Module.require (node:internal/modules/cjs/loader:1005:19)  
at Module.require (/opt/homey-client/system/manager/ManagerApps/AppProcess/node\_modules/@athombv/homey-apps-sdk-v3/index.js:1:183)  
at require (node:internal/modules/cjs/helpers:102:18)  
at Object. (/node\_modules/follow-redirects/index.js:6:13)  
at Module.\_compile (node:internal/modules/cjs/loader:1103:14)  
at Object.Module.\_extensions…js (node:internal/modules/cjs/loader:1157:10) {  
code: ‘MODULE\_NOT\_FOUND’,  
path: ‘/node\_modules/follow-redirects/node\_modules/debug/package.json’,  
requestPath: ‘debug’  
}

---

<div class="post-metadata">

**Author:** ![Martijn\_C](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_c/32/39993_2.png) [@Martijn\_C](https://community.homey.app/u/Martijn_C)\
**Post date:** [July 10, 2023, 10:33am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/52 "2023-07-10T10:33:03Z")

</div>

Hi @Robert_Schmidt

Any clue about the errors? None of the cards run without error (although the action is executed).

---

<div class="post-metadata">

**Author:** ![Leon\_Rouwendaal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leon_rouwendaal/32/18129_2.png) [@Leon\_Rouwendaal](https://community.homey.app/u/Leon_Rouwendaal)\
**Post date:** [July 17, 2023, 9:19am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/53 "2023-07-17T09:19:07Z")

</div>

The Panasonic comfort cloud alternative app works now. Instead of installing the app through node.js on my MacBook Pro I installed node.js on a windows machine and installed the app and this goes without errors and the app is working now.

---

<div class="post-metadata">

**Author:** ![robjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robjo/32/81016_2.png) [@robjo](https://community.homey.app/u/robjo)\
**Post date:** [July 27, 2023, 9:54pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/54 "2023-07-27T21:54:37Z")

</div>

@Robert_Schmidt nicely done. Works perfectly. It really was a super simple install with NodeJS, if you understand the basic jist of it. Took me less than 2 minutes to get it all up and running!

---

<div class="post-metadata">

**Author:** ![Robert\_Schmidt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_schmidt/32/53755_2.png) [@Robert\_Schmidt](https://community.homey.app/u/Robert_Schmidt)\
**Post date:** [July 27, 2023, 10:50pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/55 "2023-07-27T22:50:59Z")

</div>

Sorry (also to the rest of you guys) for not checking in for a long while.

Still no idea for your errors, I’m afraid, @Martijn_C. I tried switching my Homey from English to Norwegian, in case the error was triggered by non-English - but no luck. A long shot, but could I ask you to switch temporarily to English, and send me the English error message?

Is the error always referring to air\_swing\_lr? My own unit doesn’t have this feature, so it appears to be silently ignored. Maybe the web service behaves differently for other models…

---

<div class="post-metadata">

**Author:** ![Robert\_Schmidt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_schmidt/32/53755_2.png) [@Robert\_Schmidt](https://community.homey.app/u/Robert_Schmidt)\
**Post date:** [August 24, 2023, 6:13pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/56 "2023-08-24T18:13:45Z")

</div>

A little heads-up: I noticed today that my pump was not responding to Homey, and the app log was full of 401 HTTP errors. Restarting the app didn’t help.

I first tried to use my Homey credentials in the official Android PCC app. It prompted me to accept an updated T&C. Restarting the PCC-alt app still resulted in a 401 error.

Next, I clicked “Authenticate”, to force a new login and a fresh token. Seems to work fine from then on.

Not sure which of these were required - but maybe this helps someone else.

---

<div class="post-metadata">

**Author:** ![robjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robjo/32/81016_2.png) [@robjo](https://community.homey.app/u/robjo)\
**Post date:** [August 28, 2023, 7:34pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/57 "2023-08-28T19:34:50Z")

</div>

I noticed this as well. However I still keep getting a lot of this:

```auto
2023-08-28T15:34:48.457Z [log] [ManagerDrivers] [Driver:aircon] [Device:20033682-c7e0-4c79-af5d-df9dcbaab2c7] setCapabilityValue(onoff, false)
2023-08-28T15:34:48.525Z [log] [ManagerDrivers] [Driver:aircon] [Device:20033682-c7e0-4c79-af5d-df9dcbaab2c7] setCapabilityValue(measure_temperature, -255)
2023-08-28T15:34:48.588Z [log] [ManagerDrivers] [Driver:aircon] [Device:20033682-c7e0-4c79-af5d-df9dcbaab2c7] setCapabilityValue(target_temperature, -255)
2023-08-28T15:34:48.650Z [log] [ManagerDrivers] [Driver:aircon] [Device:20033682-c7e0-4c79-af5d-df9dcbaab2c7] setCapabilityValue(operation_mode, undefined)
unhandledRejection:
Error: Invalid capability (homey:app:net.schmidt-cisternas.pcc-alt:operation_mode) value type. Expected: string. Got: undefined
    at Remote Process
    at HomeyClient.emit (/node_modules/@athombv/homey-apps-sdk-v3/lib/HomeyClient.js:44:23)
    at Object.emit (/node_modules/@athombv/homey-apps-sdk-v3/manager/drivers.js:78:54)
    at Object.emit (/node_modules/@athombv/homey-apps-sdk-v3/lib/Driver.js:126:50)
    at /node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:570:27
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at MyDevice.setCapabilityValue (/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:562:23)
    at MyDevice.setCap (/app/drivers/aircon/device.js:26:20)
    at MyDevice.fetchFromService (/app/drivers/aircon/device.js:47:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

```

as well as this:

```auto
unhandledRejection:
ServiceError: Request failed with status code 502
    at new ServiceError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/model/ServiceError.js:20:28)
    at ComfortCloudClient.handleError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:183:15)
    at ComfortCloudClient.<anonymous> (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:170: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)
2023-08-28T07:51:43.918Z [err] [ManagerDrivers] [Driver:aircon] [Device:20033682-c7e0-4c79-af5d-df9dcbaab2c7] getDevice failed: ServiceError: Request failed with status code 502
    at new ServiceError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/model/ServiceError.js:20:28)
    at ComfortCloudClient.handleError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:183:15)
    at ComfortCloudClient.<anonymous> (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:170: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: 502
}

```

---

<div class="post-metadata">

**Author:** ![Scott\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scott_m/32/56594_2.png) [@Scott\_M](https://community.homey.app/u/Scott_M)\
**Post date:** [September 5, 2023, 11:05am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/58 "2023-09-05T11:05:29Z")

</div>

Thanks Robert, your tip to ‘Authenticate’ and restarting the app after this helped me out with the 401 error too.

---

<div class="post-metadata">

**Author:** ![NickM](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nickm/32/79147_2.png) [@NickM](https://community.homey.app/u/NickM)\
**Post date:** [September 14, 2023, 11:19am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/59 "2023-09-14T11:19:38Z")

</div>

It looks like Panasonic Comfort Cloud went down for server maintenance overnight, and now the app isn’t able to authenticate. I’ve triple-checked credentials, tried alternate credentials, tried using the official iOS app (works fine), and a variety of combinations of restarting and re-authenticating, without luck.

In this case it looks like the error I’m getting is HTTP 400, which makes me think Panasonic have changed the underlying API. Anyone else seeing the same issue?

```auto
2023-09-14T11:17:02.088Z [err] [ManagerDrivers] [Driver:aircon] login failed: ServiceError: Request failed with status code 400
    at new ServiceError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/model/ServiceError.js:20:28)
    at ComfortCloudClient.handleError (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:183:15)
    at ComfortCloudClient.<anonymous> (/app/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:105: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: 400
}

```

---

<div class="post-metadata">

**Author:** ![Anton91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anton91/32/79236_2.png) [@Anton91](https://community.homey.app/u/Anton91)\
**Post date:** [September 14, 2023, 1:29pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/60 "2023-09-14T13:29:15Z")

</div>

I have the same issue as you have.

---

<div class="post-metadata">

**Author:** ![JefH](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JefH](https://community.homey.app/u/JefH)\
**Post date:** [September 14, 2023, 3:37pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/61 "2023-09-14T15:37:06Z")

</div>

Yep, same issue as NickM.

---

<div class="post-metadata">

**Author:** ![NickM](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nickm/32/79147_2.png) [@NickM](https://community.homey.app/u/NickM)\
**Post date:** [September 14, 2023, 4:24pm UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/62 "2023-09-14T16:24:26Z")

</div>

I did some digging and it looks like the underlying library can’t log in after whatever Panasonic did. I’ve raised an issue in their repo: [Login fails with HTTP 400 after server updates · Issue #13 · marc2016/panasonic-comfort-cloud-client · GitHub](https://github.com/marc2016/panasonic-comfort-cloud-client/issues/13)

---

<div class="post-metadata">

**Author:** ![NickM](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nickm/32/79147_2.png) [@NickM](https://community.homey.app/u/NickM)\
**Post date:** [September 16, 2023, 8:59am UTC](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906/63 "2023-09-16T08:59:38Z")

</div>

The underlying library appears to have been fixed, so I’ve put in a pull request to update the app.

I see Panasonic are planning another round of server maintenance on the 26th. Hopefully they don’t plan to break the API again…

[Previous page](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906.md?page=2)

[Next page](https://community.homey.app/t/app-pro-panasonic-comfort-cloud-alternative-cli-install-only/75906.md?page=4)
