Nefit Easy™

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Holland wrote:Thanks Rostyk,

Btw I have created 6 sessions concurrent sessions and now I'm getting these;

-1-2016 01:06:5585298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:06:5785298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:13502a77ba.9da608msg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:13e193b188.2daddmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:1385298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:17502a77ba.9da608msg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:2585298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:2785298a82.9f76fmsg : errorError: REQUEST_TIMEOUT

I have removed the new sessions I created, hopefully the connection comes back up.
What's the version of node-red-contrib-nefit-easy you are using?
As mentioned in a previous post there was an issue with the new timeout settings in te library.

Please post the results from:

Code: Select all

sudo npm -g list | grep nefit
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

pepijn wrote:What's the version of node-red-contrib-nefit-easy you are using?
As mentioned in a previous post there was an issue with the new timeout settings in te library.

Please post the results from:

Code: Select all

sudo npm -g list | grep nefit
I checked mine and it looks like I'm using the right versions. But I also get a number of errors, do I need to worry?
Spoiler: show
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/ansi
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/block-stream
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/char-spinner
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/child-process-close
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/chmodr
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-git
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/lru-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/minimatch
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/readable-stream
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi
npm ERR! missing: semver@4, required by [email protected]
npm ERR! missing: graceful-fs@^3.0.4, required by [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode
Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Doler wrote:
pepijn wrote:What's the version of node-red-contrib-nefit-easy you are using?
As mentioned in a previous post there was an issue with the new timeout settings in te library.

Please post the results from:

Code: Select all

sudo npm -g list | grep nefit
I checked mine and it looks like I'm using the right versions. But I also get a number of errors, do I need to worry?
Spoiler: show
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/ansi
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/block-stream
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/char-spinner
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/child-process-close
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/chmodr
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-git
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/lru-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/minimatch
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/readable-stream
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi
npm ERR! missing: semver@4, required by [email protected]
npm ERR! missing: graceful-fs@^3.0.4, required by [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode
Thanks, Mark
The versions are a little messed up (and the errors are not ok), try this and post the results:

Code: Select all

sudo npm -g  un node-red-contrib-nefit-easy
sudo rm -rf /usr/local/lib/node_modules/node-red-contrib-nefit-easy
sudo npm -g --unsafe-perm i node-red-contrib-nefit-easy
sudo service nodered restart
sudo npm -g list | grep nefit
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

pepijn wrote:
Doler wrote:
pepijn wrote:What's the version of node-red-contrib-nefit-easy you are using?
As mentioned in a previous post there was an issue with the new timeout settings in te library.

Please post the results from:

Code: Select all

sudo npm -g list | grep nefit
I checked mine and it looks like I'm using the right versions. But I also get a number of errors, do I need to worry?
Spoiler: show
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/ansi
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/block-stream
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/char-spinner
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/child-process-close
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/chmodr
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-git
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/lru-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/minimatch
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/readable-stream
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi
npm ERR! missing: semver@4, required by [email protected]
npm ERR! missing: graceful-fs@^3.0.4, required by [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode
Thanks, Mark
The versions are a little messed up (and the errors are not ok), try this and post the results:

Code: Select all

sudo npm -g  un node-red-contrib-nefit-easy
sudo rm -rf /usr/local/lib/node_modules/node-red-contrib-nefit-easy
sudo npm -g --unsafe-perm i node-red-contrib-nefit-easy
sudo service nodered restart
sudo npm -g list | grep nefit
These are the results:
Spoiler: show
pi@raspberrypi ~ $ sudo npm -g list | grep nefit
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/ansi
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/block-stream
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/char-spinner
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/child-process-close
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/chmodr
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-git
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/lru-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/minimatch
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/readable-stream
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi
npm ERR! missing: semver@4, required by [email protected]
npm ERR! missing: graceful-fs@^3.0.4, required by [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode
I see that nefit-easy-commands is now the same in both depency chains, errors did remain (possibly result of other install problems e.g. node-RED?).

Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by mvveelen »

I've managed to get the old Easy script to work on my Synology NAS, I don't know if I can get the new scripts to work too including node-RED (don't really understand what this node-RED does exactly, but it looks interesting). How do you add this Easy in Domoticz so I can see the temperature and such? Do I have to wait until the Nefit Easy hardware is added in Domoticz or is there a workaround I can use? If someone can give me some pointers, I might be able to go further ;)
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Doler wrote: These are the results:
Spoiler: show
pi@raspberrypi ~ $ sudo npm -g list | grep nefit
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/ansi
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/block-stream
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/char-spinner
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/child-process-close
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/chmodr
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-git
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/lru-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/minimatch
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/readable-stream
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi
npm ERR! missing: semver@4, required by [email protected]
npm ERR! missing: graceful-fs@^3.0.4, required by [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode
I see that nefit-easy-commands is now the same in both depency chains, errors did remain (possibly result of other install problems e.g. node-RED?).

Thanks, Mark
Hmmm ... i think this is a result of the separate installation of nefit-easy-cli. You could try to run npm -g prune to get rid of the errors. But is your node red flow working again?
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

mvveelen wrote:I've managed to get the old Easy script to work on my Synology NAS, I don't know if I can get the new scripts to work too including node-RED (don't really understand what this node-RED does exactly, but it looks interesting). How do you add this Easy in Domoticz so I can see the temperature and such? Do I have to wait until the Nefit Easy hardware is added in Domoticz or is there a workaround I can use? If someone can give me some pointers, I might be able to go further ;)
Personal i don't think the Easy will not be supported nativly, the whole library had t be ported to C++.

So:
You need someting to convert the output of the nefit-easy-client/cli to Domoticz. This can be done by some scripts that will send the data to Domoticz using HTTP/JSON.
A other option is to use node red.
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

pepijn wrote:Hmmm ... i think this is a result of the separate installation of nefit-easy-cli. You could try to run npm -g prune to get rid of the errors. But is your node red flow working again?
I ran sudo npm -g prune with the following result:
Spoiler: show
sudo npm -g prune
npm ERR! Linux 4.1.13-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "prune"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! path /usr/local/lib/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
sudo npm -g list | grep nefit is giving the same result as before so this didn't help. And yes, node-RED and the script is still running but with REQUEST_TIMEOUT errors from time to time.

Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Doler wrote:
pepijn wrote:Hmmm ... i think this is a result of the separate installation of nefit-easy-cli. You could try to run npm -g prune to get rid of the errors. But is your node red flow working again?
I ran sudo npm -g prune with the following result:
Spoiler: show
sudo npm -g prune
npm ERR! Linux 4.1.13-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "prune"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! path /usr/local/lib/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
sudo npm -g list | grep nefit is giving the same result as before so this didn't help. And yes, node-RED and the script is still running but with REQUEST_TIMEOUT errors from time to time.

Thanks, Mark
The request timeout messages are new in the library so you did not notice them in early releases. So that's no issue for now, just something to improve
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Holland »

This is the result of running; sudo npm -g list | grep nefit


pi@raspberrypi ~ $ sudo npm -g list | grep nefit
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/ansi
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/block-stream
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/char-spinner
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/chmodr
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-git
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/lru-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/readable-stream
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/init-package-json/node_modules/validate-npm-package-license
npm ERR! missing: graceful-fs@^3.0.4, required by [email protected]
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/bluebird
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/get-stdin
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/rimraf/node_modules/glob


btw: I'm back in business, so it's likely that there is a relation between the number of concurrent connections

9-1-2016 01:26:38db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 9, "nvalue": 0, "svalue": "[ 0A ] system waiting (boiler cannot transfer heat to central heating)" }, "_msgid": "e3ad2ec.f1c52d" }
9-1-2016 01:26:57db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "fabbf644.054408" }
9-1-2016 01:27:27db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "b65735fc.49a8c8" }
9-1-2016 01:27:38db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 9, "nvalue": 0, "svalue": "[ 0L ] system starting" }, "_msgid": "e49c7e06.1b638" }
9-1-2016 01:27:48db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 9, "nvalue": 0, "svalue": "[ -H ] central heating active" }, "_msgid": "77f29ec8.880d6" }
9-1-2016 01:27:57db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "e99c2ee2.1663d" }
9-1-2016 01:28:27db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "107a7df1.ef8582" }
9-1-2016 01:28:57db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "961eb9da.69e148" }
9-1-2016 01:29:17db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 8, "nvalue": 0, "svalue": "1" }, "_msgid": "26b1de3f.d94e22" }
9-1-2016 01:29:27db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "50b49add.af4b64" }
9-1-2016 01:29:47e193b188.2daddmsg : errorError: REQUEST_TIMEOUT
9-1-2016 01:29:57db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "ab01060f.54fef8" }
9-1-2016 01:30:27db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "fa41425f.05bec" }
9-1-2016 01:30:57db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "311c8368.cee37c" }
9-1-2016 01:31:27db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "7ffeeed8.80011" }
9-1-2016 01:31:57db0d3c2c.6a1868domoticz/in : msg : Object{ "topic": "domoticz/in", "payload": { "idx": 1, "nvalue": 0, "svalue": "19.9" }, "_msgid": "e780ffd5.187f" }
User avatar
kraades
Posts: 36
Joined: Wednesday 24 June 2015 9:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by kraades »

pepijn wrote: Personal i don't think the Easy will not be supported nativly, the whole library had t be ported to C++.
If you look at the core code it should not be that difficult (no disrespect, Robert did the hard part) for someone who knows there way around Domoticz.
There is the encryption and the client (connect, send, get, put etc.) and that should be the core of the integration.
https://github.com/robertklep/nefit-eas ... master/lib
User avatar
kraades
Posts: 36
Joined: Wednesday 24 June 2015 9:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Nefit Easy™ thermostat support

Post by kraades »

Update

There is now a separate package for the library that can be found at https://github.com/robertklep/nefit-easy-core.
Encryption algoritm and client at https://github.com/robertklep/nefit-eas ... master/lib.

Functions encrypt()/decrypt() and the structure of the jabber id, to, from etc. is where the magic happens and for the xmpp client you could use for example gloox http://camaya.net/gloox/.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

kraades wrote:
pepijn wrote: Personal i don't think the Easy will not be supported nativly, the whole library had t be ported to C++.
If you look at the core code it should not be that difficult (no disrespect, Robert did the hard part) for someone who knows there way around Domoticz.
There is the encryption and the client (connect, send, get, put etc.) and that should be the core of the integration.
https://github.com/robertklep/nefit-eas ... master/lib
I would say, go ahead :)
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

Has anyone seen this behaviour (log of setpoint since last night)?
chart.jpg
chart.jpg (92.38 KiB) Viewed 2933 times
It looks like Domoticz and Nefit are 'fighting' to set the setpoint. Result is that I'm getting cold now, I'm stopping node-RED to let Nefit do the right job. Can anyone explain?
Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
User avatar
kraades
Posts: 36
Joined: Wednesday 24 June 2015 9:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by kraades »

pepijn wrote:I would say, go ahead :)
Unfortunately I am not a C++ programmer but encrypt()/decrypt() and the structure of the jabber id, to, from etc. is where the magic happens and for the xmpp client you could use for example gloox http://camaya.net/gloox/.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Doler wrote:Has anyone seen this behaviour (log of setpoint since last night)?
chart.jpg
It looks like Domoticz and Nefit are 'fighting' to set the setpoint. Result is that I'm getting cold now, I'm stopping node-RED to let Nefit do the right job. Can anyone explain?
Thanks, Mark
Strange, this is how it should look like
Image

Can you send me your node-red logs?
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

Sent to you via PM
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Holland »

Pepijn,

How would you advice me to update Robert's library? Now I only have the following, which is incomplete and outdated

pi@raspberrypi ~ $ sudo npm -g list | grep nefit
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]


Should I first remove the old nefit-easy-client install, and then separately install in separate directories, the core, commands and cli libraries?

Thanks for you advice
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ Client/Node for Node-RED

Post by pepijn »

NEW VERSION v1.1.0 of the Node is available

Code: Select all

sudo npm -g update  node-red-contrib-nefit-easy
  • Changed: the communication, only a single connection will be made and reused by all nodes.
  • Implemented: Timeout setting to the Easy configuration node
  • Changed: Flow-temperature output
  • Some bugfixes
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ Client/Node for Node-RED

Post by Doler »

pepijn wrote:NEW VERSION v1.1.0 of the Node is available

Code: Select all

sudo npm -g update  node-red-contrib-nefit-easy
  • Changed: the communication, only a single connection will be made and reused by all nodes.
  • Implemented: Timeout setting to the Easy configuration node
  • Changed: Flow-temperature output
  • Some bugfixes
Thanks for the new version. The update didn't work for me; checked the version with:

Code: Select all

sudo npm -g list | grep nefit
So I did:

Code: Select all

sudo npm un -g node-red-contrib-nefit-easy
sudo npm i -g node-red-contrib-nefit-easy
sudo service nodered restart
after which the version was ok. I'll start testing and keep you posted.
Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests