Closed RadianM closed 6 months ago
I cannot say if this is working on this old Version. Have you configured the Daikin Controller Cloud Node? You have to configure the credentials within it. Also check the Logs from the startup of the Node red if there are any errors.
Thanks, yes I configured the same login details (email/password) that get me into the Daikin Onecta app so they're valid. If it helps, there's a bit more info in the startup log:
Welcome to Node-RED
===================
15 Dec 17:16:52 - [info] Node-RED version: v1.2.9
15 Dec 17:16:52 - [info] Node.js version: v12.22.12
15 Dec 17:16:52 - [info] Linux 5.10.17-v7+ arm LE
15 Dec 17:16:53 - [info] Loading palette nodes
15 Dec 17:16:54 - [warn] [node-red-contrib-uibuilder] Node module cannot be loaded on this version. Requires: >=3
15 Dec 17:16:56 - [info] Dashboard version 2.28.2 started at /ui
15 Dec 17:16:57 - [warn] ------------------------------------------------------
15 Dec 17:16:57 - [warn] [node-red-contrib-daikin-cloud/Daikin-Cloud-Controller] Error: Cannot find module 'node:events'
Require stack:
- /home/pi/.node-red/node_modules/@esm2cjs/got/build/cjs/as-promise/index.js
- /home/pi/.node-red/node_modules/@esm2cjs/got/build/cjs/create.js
- /home/pi/.node-red/node_modules/@esm2cjs/got/build/cjs/index.js
- /home/pi/.node-red/node_modules/daikin-controller-cloud/index.js
- /home/pi/.node-red/node_modules/node-red-contrib-daikin-cloud/daikin_brp069c4.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/index.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/index.js
- /usr/lib/node_modules/node-red/lib/red.js
- /usr/lib/node_modules/node-red/red.js
15 Dec 17:16:57 - [warn] ------------------------------------------------------
15 Dec 17:16:57 - [info] Settings file : /home/pi/.node-red/settings.js
15 Dec 17:16:57 - [info] Context store : 'default' [module=memory]
15 Dec 17:16:57 - [info] User directory : /home/pi/.node-red
15 Dec 17:16:57 - [warn] Projects disabled : editorTheme.projects.enabled=false
15 Dec 17:16:57 - [info] Flows file : /home/pi/.node-red/restart
15 Dec 17:16:57 - [info] Creating new flow file
15 Dec 17:16:57 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
15 Dec 17:16:57 - [info] Starting flows
15 Dec 17:16:57 - [info] Started flows
15 Dec 17:16:57 - [error] Unable to listen on http://127.0.0.1:1880/
15 Dec 17:16:57 - [error] Error: port in use
I'm hesitant to upgrade the installation I'm trying this on as it's currently running my household heating. If it looks like version dependence I'll get hold of another raspberry pi and try a fresh build.
15 Dec 17:16:57 - [warn] [node-red-contrib-daikin-cloud/Daikin-Cloud-Controller] Error: Cannot find module 'node:events'
Require stack:
- /home/pi/.node-red/node_modules/@esm2cjs/got/build/cjs/as-promise/index.js
- /home/pi/.node-red/node_modules/@esm2cjs/got/build/cjs/create.js
- /home/pi/.node-red/node_modules/@esm2cjs/got/build/cjs/index.js
- /home/pi/.node-red/node_modules/daikin-controller-cloud/index.js
- /home/pi/.node-red/node_modules/node-red-contrib-daikin-cloud/daikin_brp069c4.js
It looks like the nodejs Version is the reason here. You need to Upgrade it.
Having just installed node-red-contrib_BRP069C4 through the palette manager, setting up a simple flow to inject "get" in the msg.topic, when deployed I get the error:
The node-red log has:
No versions are mentioned in Dependencies - but my version of node is v12.22.12 which is a bit out of date, as is node-red v1.2.9 Could this be the problem?