Page 30 of 37
Re: Nefit Easy™
Posted: Saturday 21 January 2017 16:56
by jurgen
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 !
Re: Nefit Easy™
Posted: Saturday 21 January 2017 18:00
by SweetPants
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.
Re: Nefit Easy™
Posted: Thursday 26 January 2017 11:51
by spikehome
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.
Re: Nefit Easy™
Posted: Thursday 26 January 2017 18:14
by jannl
I still only have the @reboot line in my crontab, which still works ok. For now for me ko reason to start using pm.
Re: Nefit Easy™
Posted: Friday 27 January 2017 0:05
by felix63
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?
Re: Nefit Easy™
Posted: Friday 27 January 2017 0:19
by felix63
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.
Re: Nefit Easy™
Posted: Friday 27 January 2017 11:16
by spikehome
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"
Re: Nefit Easy™
Posted: Monday 30 January 2017 16:23
by eurydice
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?
Re: Nefit Easy™
Posted: Monday 30 January 2017 16:27
by gizmocuz
Domoticz is reading the pressure value via:
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 ?
Re: Nefit Easy™
Posted: Monday 30 January 2017 16:32
by eurydice
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?
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 9:01
by spikehome
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
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 9:09
by jannl
Why not use the @reboot option in crontab? Works for me.
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 9:16
by spikehome
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
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 9:34
by jannl
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.
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 11:02
by spikehome
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?
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 12:50
by jannl
I have to check, I am not at home right now. Not sure if I can check tonight.....
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 13:00
by spikehome
jannl wrote:I have to check, I am not at home right now. Not sure if I can check tonight.....
tnx in advance
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 17:28
by jannl
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.....
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 18:56
by ivovangastel
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?
Re: Nefit Easy™
Posted: Tuesday 31 January 2017 19:26
by jumbotroll
@ivovangastel
You have to type sudo
sudo npm i nefit-easy-http-server -g
and type password.