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
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.
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.
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.
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.