Nefit Easy™

Others (MiLight, Hue, Toon etc...)
jurgen
Posts: 33
Joined: Friday 02 October 2015 19:09
Target OS: NAS (Synology & others)
Domoticz version: stable
Contact:

Re: Nefit Easy™

Post by jurgen » Saturday 21 January 2017 17:56

Hi all,

I have Nefit easy running for a while but I recieve also a lot of errors. Sometimes the recieved data is invalid and sometimes there is a timeout.
I don't know how to fix it, are there other people who are facing this issue?

2017-01-21 12:34:32.527 Error: NefitEasy: Invalid data received! (Gas)
2017-01-21 13:00:33.028 Error: NefitEasy: Invalid data received! (FT)
2017-01-21 14:19:32.570 Error: NefitEasy: Request Timeout !

SweetPants
Posts: 2064
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.9651
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by SweetPants » Saturday 21 January 2017 19:00

Please search the forum first, this has been reported many times. Occasionally you will have errors because the backend (Bosch in germany) has issues or they have maintenance (mostly during the night). I als notice that if you use the App and the Domoticz Nefit server at the same time, the chance of getting errors is much bigger.
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 (source)

spikehome
Posts: 20
Joined: Friday 04 March 2016 16:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post by spikehome » Thursday 26 January 2017 12:51

i have the problem that the nefiteasy software is not started after reboot my pi
Installed everything yesterday evening on a new microsd (old one broke)
Used the following instructions: https://www.domoticz.com/wiki/NefitEasy
Everything works.
But after a reboot i have to run pm2 "start /home/pi/nefiteasyhttpserver.sh"
and then it is ok again.
Also did the command "pm2 save"
Why is it nog start after a reboot
On the old pi i did the same and worked after a reboot.

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 26 January 2017 19:14

I still only have the @reboot line in my crontab, which still works ok. For now for me ko reason to start using pm.

User avatar
felix63
Posts: 121
Joined: Monday 07 December 2015 10:30
Target OS: Raspberry Pi
Domoticz version: 3.8275
Location: Gouda
Contact:

Re: Nefit Easy™

Post by felix63 » Friday 27 January 2017 1:05

spikehome wrote:i have the problem that the nefiteasy software is not started after reboot my pi
Installed everything yesterday evening on a new microsd (old one broke)
Used the following instructions: https://www.domoticz.com/wiki/NefitEasy
Everything works.
But after a reboot i have to run pm2 "start /home/pi/nefiteasyhttpserver.sh"
and then it is ok again.
Also did the command "pm2 save"
Why is it nog start after a reboot
On the old pi i did the same and worked after a reboot.
have the same problem. Used to work fine. Maybe a new bug in pm2?

User avatar
felix63
Posts: 121
Joined: Monday 07 December 2015 10:30
Target OS: Raspberry Pi
Domoticz version: 3.8275
Location: Gouda
Contact:

Re: Nefit Easy™

Post by felix63 » Friday 27 January 2017 1:19

Think I found it. From http://pm2.keymetrics.io/docs/usage/startup/

To get the automatically-configured startup script for your machine you need to type this command:

Code: Select all

# Detect available init system, generate configuration and enable startup system
$ pm2 startup
This gives a line of code. After running this code and rebooting pm2 does restart.

spikehome
Posts: 20
Joined: Friday 04 March 2016 16:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post by spikehome » Friday 27 January 2017 12:16

felix63 wrote:Think I found it. From http://pm2.keymetrics.io/docs/usage/startup/

To get the automatically-configured startup script for your machine you need to type this command:

Code: Select all

# Detect available init system, generate configuration and enable startup system
$ pm2 startup
This gives a line of code. After running this code and rebooting pm2 does restart.
But when u follow the instuctions at the page https://www.domoticz.com/wiki/NefitEasy
In the beginning u already run the command " pm2 startup"

eurydice
Posts: 6
Joined: Thursday 03 November 2016 10:46
Target OS: Windows
Domoticz version: 3.5877
Location: Netherlands
Contact:

Re: Nefit Easy™

Post by eurydice » Monday 30 January 2017 17:23

Anyone has the issue that Domoticz sees the pressure at 25.5bar? I was told this probably should be a null code, but that it was hard coded in domoticz?

User avatar
gizmocuz
Posts: 8602
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Nefit Easy™

Post by gizmocuz » Monday 30 January 2017 17:27

Domoticz is reading the pressure value via:

Code: Select all

bool CNefitEasy::GetPressure()
And is just using the value:

Code: Select all

	float pressure = root["value"].asFloat();
	SendPressureSensor(1, 1, -1, pressure, "Pressure");
If you are sure that 25.5 is a NULL value, and should be ignored, we could change this.

You do not have pressure ?
Quality outlives Quantity!

eurydice
Posts: 6
Joined: Thursday 03 November 2016 10:46
Target OS: Windows
Domoticz version: 3.5877
Location: Netherlands
Contact:

Re: Nefit Easy™

Post by eurydice » Monday 30 January 2017 17:32

I don't have the knowledge how it is reading the values. But I do know that 25.5bar constant is not my pressure. How can I check if the value is retrieved via the nefit server app?

spikehome
Posts: 20
Joined: Friday 04 March 2016 16:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post by spikehome » Tuesday 31 January 2017 10:01

spikehome wrote:i have the problem that the nefiteasy software is not started after reboot my pi
Installed everything yesterday evening on a new microsd (old one broke)
Used the following instructions: https://www.domoticz.com/wiki/NefitEasy
Everything works.
But after a reboot i have to run pm2 "start /home/pi/nefiteasyhttpserver.sh"
and then it is ok again.
Also did the command "pm2 save"
Why is it nog start after a reboot
On the old pi i did the same and worked after a reboot.
Still no solutions for this?
felix63 wrote:Think I found it. From http://pm2.keymetrics.io/docs/usage/startup/

To get the automatically-configured startup script for your machine you need to type this command:

Code: Select all

# Detect available init system, generate configuration and enable startup system
$ pm2 startup
This gives a line of code. After running this code and rebooting pm2 does restart.
did not work :(

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 » Tuesday 31 January 2017 10:09

Why not use the @reboot option in crontab? Works for me.

spikehome
Posts: 20
Joined: Friday 04 March 2016 16:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post by spikehome » Tuesday 31 January 2017 10:16

jannl wrote:Why not use the @reboot option in crontab? Works for me.
do not understand what u mean?
if i add @reboot at the crontab the raspberry reboots?

This is in my crontab at the moment:
# m h dom mon dow command
47 0 * * * /home/pi/domoticz/scripts/mindergas.bash
0 3 * * * /home/pi/domoticz/scripts/backup-domoticz-db.bash
5 3 1 * * /home/pi/domoticz/scripts/backup-domoticz-all.bash

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 » Tuesday 31 January 2017 10:34

I start the easy server at reboot via crontab, never used pm2 so far.

See: viewtopic.php?t=9653&start=260

Edit: hm, not sure if I use exactly the same lines. I have to check.

spikehome
Posts: 20
Joined: Friday 04 March 2016 16:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post by spikehome » Tuesday 31 January 2017 12:02

jannl wrote:I start the easy server at reboot via crontab, never used pm2 so far.

See: viewtopic.php?t=9653&start=260

Edit: hm, not sure if I use exactly the same lines. I have to check.
Ah u mean the line:
@reboot /usr/local/bin/easy-server --serial=xxx --access-key=yyy --password=zzz >/tmp/cron.log 2>/tmp/cron.err

see that the easy-server is at location /usr/bin/easy-server

wat is de line in your crontab?

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 » Tuesday 31 January 2017 13:50

I have to check, I am not at home right now. Not sure if I can check tonight.....

spikehome
Posts: 20
Joined: Friday 04 March 2016 16:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post by spikehome » Tuesday 31 January 2017 14:00

jannl wrote:I have to check, I am not at home right now. Not sure if I can check tonight.....
tnx in advance 8-)

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 » Tuesday 31 January 2017 18:28

My crontab line is:

Code: Select all

@reboot /home/pi/domoticz/scripts/nefit.sh > /dev/null 2>&1
The contents of the nefit.sh script:

Code: Select all

#!/bin/bash
NEFIT_SERIAL_NUMBER=123456
NEFIT_ACCESS_KEY=mycode
NEFIT_PASSWORD=mypassword
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

easy-server --serial=$NEFIT_SERIAL_NUMBER --access-key=$NEFIT_ACCESS_KEY --password=$NEFIT_PASSWORD 2>&1

Take care of the path setting in the script. A script run by crontab never has any path settings. Not sure btw if the games thingie is needed.....

ivovangastel
Posts: 6
Joined: Tuesday 31 January 2017 19:05
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Netherlands
Contact:

Re: Nefit Easy™

Post by ivovangastel » Tuesday 31 January 2017 19:56

Hi all,
is there a manual "installing nefit easy http server" on a synology NAS for dummies?
I have a DS214+ (DSM 6.0.2) with Domoticz V3.5877 and Node.JS V4 installed. I use it to control my blinds and a wallplug via RFXCOM.
now i would like to add control to my Nefit Easy.

I tried to add the server via the hardware menu in Domoticz. but no new devices appear. I see the following in the log:
2017-01-31 18:18:58.290 Error: Webserver: File '/bridge/ecus/rrc/uiStatus': No such file or directory (2)
2017-01-31 18:18:58.352 Error: NefitEasy: Invalid data received (main)!
2017-01-31 18:18:58.353 Error: Webserver: File '/bridge/system/appliance/systemPressure': No such file or directory (2)
2017-01-31 18:18:58.413 Error: NefitEasy: Invalid data received! (Press)

I logged in my NAS via SSH and tried to install the server with the command: npm i nefit-easy-http-server -g
but I get the following:
npm ERR! Linux 3.2.40
npm ERR! argv "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/bin/npm" "i" "nefit-easy-http-server" "-g"
npm ERR! node v4.4.2
npm ERR! npm v2.15.0
npm ERR! path /var/services/homes
npm ERR! code EEXIST
npm ERR! errno -17
npm ERR! syscall mkdir

npm ERR! EEXIST: file already exists, mkdir '/var/services/homes'
File exists: /var/services/homes
Move it away, and try again.
npm ERR! Linux 3.2.40
npm ERR! argv "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/bin/npm" "i" "nefit-easy-http-server" "-g"
npm ERR! node v4.4.2
npm ERR! npm v2.15.0
npm ERR! path npm-debug.log.2825733194
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.2825733194'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, open 'npm-debug.log.2825733194']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.2825733194' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log

So now I am a bit lost. where do I start?

User avatar
jumbotroll
Posts: 621
Joined: Tuesday 13 January 2015 15:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Nefit Easy™

Post by jumbotroll » Tuesday 31 January 2017 20:26

@ivovangastel
You have to type sudo
sudo npm i nefit-easy-http-server -g
and type password.
Regards
Jumbotroll
http://www.jadahl.com

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests