Nefit Easy™

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

Moderator: leecollings

jurgen
Posts: 30
Joined: Friday 02 October 2015 19:09
Target OS: NAS (Synology & others)
Domoticz version: stable
Contact:

Re: Nefit Easy™

Post 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 !
SweetPants

Re: Nefit Easy™

Post 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.
spikehome
Posts: 24
Joined: Friday 04 March 2016 15:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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.
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Nefit Easy™

Post 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.
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Nefit Easy™

Post 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?
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Nefit Easy™

Post 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.
spikehome
Posts: 24
Joined: Friday 04 March 2016 15:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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"
eurydice
Posts: 7
Joined: Thursday 03 November 2016 9:46
Target OS: Windows
Domoticz version: 3.5877
Location: Netherlands
Contact:

Re: Nefit Easy™

Post 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?
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Nefit Easy™

Post by gizmocuz »

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: 7
Joined: Thursday 03 November 2016 9:46
Target OS: Windows
Domoticz version: 3.5877
Location: Netherlands
Contact:

Re: Nefit Easy™

Post 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?
spikehome
Posts: 24
Joined: Friday 04 March 2016 15:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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 :(
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Nefit Easy™

Post by jannl »

Why not use the @reboot option in crontab? Works for me.
spikehome
Posts: 24
Joined: Friday 04 March 2016 15:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Nefit Easy™

Post 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.
spikehome
Posts: 24
Joined: Friday 04 March 2016 15:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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?
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Nefit Easy™

Post by jannl »

I have to check, I am not at home right now. Not sure if I can check tonight.....
spikehome
Posts: 24
Joined: Friday 04 March 2016 15:13
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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 8-)
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Nefit Easy™

Post 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.....
ivovangastel
Posts: 8
Joined: Tuesday 31 January 2017 18:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Netherlands
Contact:

Re: Nefit Easy™

Post 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?
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Nefit Easy™

Post by jumbotroll »

@ivovangastel
You have to type sudo
sudo npm i nefit-easy-http-server -g
and type password.
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests