Nefit Easy™

Others (MiLight, Hue, Toon etc...)
Sandberg89a
Posts: 2
Joined: Tuesday 19 December 2017 0:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Nefit Easy™

Post by Sandberg89a » Tuesday 19 December 2017 0:56

Hallo,

Weet jij het e-mailadres van Appesteijn?

Groet
Kasper de Beer

pascalbianca
Posts: 37
Joined: Monday 18 December 2017 19:20
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Susteren
Contact:

Re: Nefit Easy™

Post by pascalbianca » Tuesday 02 January 2018 21:09

Hello everyone,

I just started my server today on my raspberry pi 3 and it works great.
Now i wanted to look if i can get the nefit on my board so i installed the Nefit server and the Nefit Client.
When it was finished with the install i tryed the command.:

Code: Select all

pi@raspberrypi:~/nefit-easy-client $ node example/current-status.js
But then i get the next errors.:

Code: Select all

module.js:328
    throw err;
    ^

Error: Cannot find module 'bluebird'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/pi/nefit-easy-client/example/current-status.js:1:87)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:430:10)
what could be my problem?

[update]
Got so far with updates now i get the next error.:

Code: Select all

pi@raspberrypi:~/nefit-easy-client $ node example/current-status.js
buffer.js:139
    throw new TypeError('must start with number, buffer, array or string');
    ^
    TypeError: must start with number, buffer, array or string
    at fromObject (buffer.js:139:11)
    at new Buffer (buffer.js:58:10)
    at generateKey (/home/pi/nefit-easy-client/lib/encryption.js:11:26)
    at new Encryption (/home/pi/nefit-easy-client/lib/encryption.js:18:24)
    at Encryption (/home/pi/nefit-easy-client/lib/encryption.js:17:46)
    at new NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:37:21)
    at NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:22:51)
    at Object.<anonymous> (/home/pi/nefit-easy-client/example/current-status.js:5:16)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:430:10)
    at startup (node.js:141:18)
    at node.js:980:3
pi@raspberrypi:~/nefit-easy-client $ 

[another update]
Know i got the message.:

Code: Select all

error XMPP authentication failure

pascalbianca
Posts: 37
Joined: Monday 18 December 2017 19:20
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Susteren
Contact:

Re: Nefit Easy™

Post by pascalbianca » Sunday 07 January 2018 16:59

Is hier niemand meer mee bezig of lukt het niemand meer, dat ik dat over het hoofd heb gelezen?
Verder als die error kom ik niet, heb al van alles geprobeerd.

User avatar
mvveelen
Posts: 673
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Nefit Easy™

Post by mvveelen » Sunday 07 January 2018 19:35

pascalbianca wrote:
Sunday 07 January 2018 16:59
Is hier niemand meer mee bezig of lukt het niemand meer, dat ik dat over het hoofd heb gelezen?
Verder als die error kom ik niet, heb al van alles geprobeerd.
English please :)

Not sure, I guess most people have it working and don't recognise the error message or just don't know how to help you. Me neither. I have it running on my Synology NAS, so I don't know how I can help you.
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
jannl
Posts: 955
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Geleen
Contact:

Re: Nefit Easy™

Post by jannl » Sunday 07 January 2018 21:21

Same here. I recently upgraded to a pi3 and stretch and got everything working. I will post my steps here when I am home. May take a week or so. Starting to get busy with carnaval and all.

pascalbianca
Posts: 37
Joined: Monday 18 December 2017 19:20
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Susteren
Contact:

Re: Nefit Easy™

Post by pascalbianca » Monday 08 January 2018 8:21

Hello Jannl,

If that is possible please.
I'm frustrated at this moment, i tryed everthing what i could find on this forum , but for some reason i don't get it to work.

Everyone's help is welcome.

pascalbianca
Posts: 37
Joined: Monday 18 December 2017 19:20
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Susteren
Contact:

Re: Nefit Easy™

Post by pascalbianca » Wednesday 10 January 2018 22:28

I've got it to work but need some help with my next problem.
I made a script as followed.:
the name of my scripted is nefiteasyhttpserver.sh

The text in that file is.:

Code: Select all

#!/bin/bash
/usr/bin/easy-server --serial=xxxxxx --access-key=xxxxxxxxxxxxx --password=xxxxxxx --host=192.168.0.114 >/dev/null
Everything works when i run that code manuel but i want to run that script at bootup just like the domoticz server.

How must i do that?

User avatar
jannl
Posts: 955
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Geleen
Contact:

Re: Nefit Easy™

Post by jannl » Thursday 11 January 2018 16:10

A script that runs at startup via cron, needs to have the environment settings in place, ie path setting.
Allthough cron runs as the same user, the script is started without anny settings.
Add them all to the script.

pascalbianca
Posts: 37
Joined: Monday 18 December 2017 19:20
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Susteren
Contact:

Re: Nefit Easy™

Post by pascalbianca » Thursday 01 February 2018 20:27

jannl wrote:
Thursday 11 January 2018 16:10
A script that runs at startup via cron, needs to have the environment settings in place, ie path setting.
Allthough cron runs as the same user, the script is started without anny settings.
Add them all to the script.
My pi is working fine, but by a friend of my i did the same but the nefit server script does'nt start the file, manual in promp it works.

User avatar
jannl
Posts: 955
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Geleen
Contact:

Re: Nefit Easy™

Post by jannl » Friday 02 February 2018 8:09

Obviously it is not exactly the same. You have to check the script and crontab very carefully. Userrights also could be different.
If it was exactly the same it should work.

jhk
Posts: 5
Joined: Sunday 21 September 2014 14:56
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Nefit Easy™

Post by jhk » Sunday 04 March 2018 13:42

Hi All,
Working Nefit Easy in Domoticz. Thanks for all the work already done.
In Nefit Easy Thermostaat my setpoint steps are in 0,1 degrees (e.g. 18,1 degrees as input.)
In Domoticz the Nefit Setpoint Temp steps are in 0,5 degrees (e.g. 18,5 or 19 or 19,5 etc)

Question: where can I adjust in Domoticz, that the Setpoint Temp steps are also on 0,1 degrees?

SweetPants
Posts: 2181
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9913
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by SweetPants » Sunday 04 March 2018 18:25

jhk wrote:
Sunday 04 March 2018 13:42
Question: where can I adjust in Domoticz, that the Setpoint Temp steps are also on 0,1 degrees?
This is not an adjustable parameter, you can change the source code if you want and create a pull request to get it in.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

jhk
Posts: 5
Joined: Sunday 21 September 2014 14:56
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Nefit Easy™

Post by jhk » Sunday 18 March 2018 14:18

SweetPants wrote:
Sunday 04 March 2018 18:25
jhk wrote:
Sunday 04 March 2018 13:42
Question: where can I adjust in Domoticz, that the Setpoint Temp steps are also on 0,1 degrees?
This is not an adjustable parameter, you can change the source code if you want and create a pull request to get it in.
Understood it's a adjustment in de software. I'am not a programmer, I took a quick look but couldn't find which file or place to change. Wanna take a look. Question: Which file do I have to take a look for changes?

User avatar
mvveelen
Posts: 673
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Nefit Easy™

Post by mvveelen » Friday 04 May 2018 19:15

I've been trying to get the nefit-easy-server running on my RPi3, but no success. Tried to follow the Wiki: nothing. Several tips in this thread: nothing.

I have it running on my Synology NAS, but want to go to the RPi3 IF everything's working, like the nefit-easy-server.

The "easy status" returns me the right info, but when I add the hardware to Domoticz: nothing.

Can someone help me out? Is there something I might have forgotten?

This is what the log tells me:
Error: Cannot find module 'docopt'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/pi/nefit-easy-http-server/lib/cli/index.js:3:14)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
module.js:549
throw err;
^
Did the steps from the WiKi again and now, after a restart:
pi@pidomoticz:~ $ pm2 start /home/pi/nefiteasyhttpserver.sh
[PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
[PM2] PM2 Successfully daemonized
[PM2] Starting /home/pi/nefiteasyhttpserver.sh in fork_mode (1 instance)
[PM2] Done.
┌─────────────────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
├─────────────────────┼────┼──────┼─────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
│ nefiteasyhttpserver │ 0 │ fork │ 626 │ online │ 0 │ 0s │ 0% │ 2.5 MB │ pi │ disabled │
└─────────────────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
Use `pm2 show <id|name>` to get more details about an app
pi@pidomoticz:~ $ easy status
Error: missing password
pi@pidomoticz:~ $ export NEFIT_SERIAL_NUMBER=xxxxxxxxxxx
pi@pidomoticz:~ $ export NEFIT_ACCESS_KEY=xxxxxxxxxxx
pi@pidomoticz:~ $ export NEFIT_PASSWORD=xxxxxxxxxxx
pi@pidomoticz:~ $ export NEFIT_HOST=192.168.0.126
pi@pidomoticz:~ $ export NEFIT_PORT=3000
In Domoticz I use the IP: 192.168.0.126 and port 3000, but still nothing.
pi@pidomoticz:~ $ pm2 show 0
Describing process with id 0 - name nefiteasyhttpserver
┌───────────────────┬────────────────────────────────────────────────────┐
│ status │ online │
│ name │ nefiteasyhttpserver │
│ restarts │ 0 │
│ uptime │ 5m │
│ script path │ /home/pi/nefiteasyhttpserver.sh │
│ script args │ N/A │
│ error log path │ /home/pi/.pm2/logs/nefiteasyhttpserver-error-0.log │
│ out log path │ /home/pi/.pm2/logs/nefiteasyhttpserver-out-0.log │
│ pid path │ /home/pi/.pm2/pids/nefiteasyhttpserver-0.pid │
│ interpreter │ bash │
│ interpreter args │ N/A │
│ script id │ 0 │
│ exec cwd │ /home/pi │
│ exec mode │ fork_mode │
│ node.js version │ N/A │
│ watch & reload │ ✘ │
│ unstable restarts │ 0 │
│ created at │ 2018-05-04T17:38:47.815Z
Contents of my nefiteasyhttpserver.sh (I don't understand "touch nefiteasyhttpserver.sh" though...) :
#!/bin/bash
/usr/bin/easy-server --serial=xxxxxxxxx --access-key=xxxxxxxxx --password=xxxxxxxxx --host=127.0.0.1 >/dev/null
Does this bash script contain enough information ?

And:
pi@pidomoticz:~ $ easy-server --serial=xxxxxxxx --access-key=xxxxxxxx --password=xxxxxxxx
{ Error: listen EADDRINUSE 127.0.0.1:3000
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at Server.setupListenHandle [as _listen2] (net.js:1367:14)
at listenInCluster (net.js:1408:12)
at doListen (net.js:1517:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
code: 'EADDRINUSE',
errno: 'EADDRINUSE',
syscall: 'listen',
address: '127.0.0.1',
port: 3000 }
Edit: finally got it working by starting the server with the right script (@reboot).....pfff
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

JoeneH
Posts: 17
Joined: Saturday 24 February 2018 14:43
Target OS: NAS (Synology & others)
Domoticz version: v3.8153
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH » Tuesday 05 June 2018 14:01

Hi,

I am getting the Error getting http data! message.
Restarting the nefiteasyhttpserver doesn't help. Last readout was 6 days ago.
I am not aware of any software changes in the last week or so on my synology, no restarts, etc.
Running Domoticz V3.8153 (jadahl) on Synology DS114, dsm 6.1.6

What could be the problem and how to find it?

Milifax
Posts: 83
Joined: Friday 23 June 2017 9:27
Target OS: Raspberry Pi
Domoticz version: v3.8094
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by Milifax » Tuesday 05 June 2018 14:02

JoeneH wrote:
Tuesday 05 June 2018 14:01
Hi,

I am getting the Error getting http data! message.
Restarting the nefiteasyhttpserver doesn't help. Last readout was 6 days ago.
I am not aware of any software changes in the last week or so on my synology, no restarts, etc.
Running Domoticz V3.8153 (jadahl) on Synology DS114, dsm 6.1.6

What could be the problem and how to find it?
Search the forum and find:
viewtopic.php?f=34&t=23638&p=182337&hilit=nefit#p182337

SweetPants
Posts: 2181
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9913
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by SweetPants » Tuesday 05 June 2018 15:36

You have to upgrade your easy-server to version 4.0.1 else you will be stuck. Read the previous mentioned post and follow the steps outlined there.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

JoeneH
Posts: 17
Joined: Saturday 24 February 2018 14:43
Target OS: NAS (Synology & others)
Domoticz version: v3.8153
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH » Tuesday 05 June 2018 16:50

Thanks, I have tried upgrading de server, npm, installed node.js v8 (can't remove v4 in synology because some other package depends on it..)
re-installed the server sudo npm i nefit-easy-http-server -g

But all no good.
the pm2 error log is telling me stuff that i don't understand.

Error: Cannot find module '@xmpp/connection'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/lib/index.js:6:25)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/index.js:1:80)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
/volume1/homes/admin/nefiteasyhttpserver.sh: line 2: cd: /var/services/homes/admin
: No such file or directory

Any ideas?

SweetPants
Posts: 2181
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9913
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by SweetPants » Wednesday 06 June 2018 16:23

JoeneH wrote:
Tuesday 05 June 2018 16:50
Thanks, I have tried upgrading de server, npm, installed node.js v8 (can't remove v4 in synology because some other package depends on it..)
re-installed the server sudo npm i nefit-easy-http-server -g

But all no good.
the pm2 error log is telling me stuff that i don't understand.

Error: Cannot find module '@xmpp/connection'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/lib/index.js:6:25)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/index.js:1:80)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
/volume1/homes/admin/nefiteasyhttpserver.sh: line 2: cd: /var/services/homes/admin
: No such file or directory

Any ideas?
What npm version are you using?
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

JoeneH
Posts: 17
Joined: Saturday 24 February 2018 14:43
Target OS: NAS (Synology & others)
Domoticz version: v3.8153
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH » Thursday 07 June 2018 14:14

npm is upgraded to 5.6.0

A reboot of the diskstation did not help.

And some other piece of information. the pm2 show command tells me the neifteasyhttpserver is constantly restarting. Everytime i run the show command, it gives an increased number of restarts and an uptime of just a few seconds.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests