Page 25 of 37

Re: Nefit Easy™

Posted: Sunday 05 June 2016 9:50
by jannl
Exactly, that is exactly what is stated in the conditions of Bosch. (As that it is forbidden to reverse engineer [WINKING FACE])

Nefit Easy™

Posted: Thursday 16 June 2016 23:14
by geezerrr
Finally I managed to get the easy server running the way I want, struggled with the crortab which wasn't working as it should. Now using pm2, And can confirm it works even after reboot. Thanks everyone!
Now I was trying to use the boiler status to trigger a virtual switch using block
Unfortunately I'm not able to use the sValue,
Anyone having another way to use the sValue of the boiler status?Image

Re: Nefit Easy™

Posted: Wednesday 13 July 2016 14:52
by Dutchsea
Hi, I really appreciatean updated post on how to install the Nefit Easy for Domoticz. The info is now so fragmenten and often outdated that its hard for novice user to make a start. Especially as the instruction in the initial post is not working anymore.

Also can someone explain me the pro's and con's between the 2 options: http server and php.

Many thanks.

Re: Nefit Easy™

Posted: Thursday 21 July 2016 8:23
by SweetPants
After working for several months in a row without any problems, last two nights (20/7 04:35 and 21/7 02:35), the backend stopped working (timeouts). Also Nefit app stopped working. After reset (off/on) Nefit Easy Connect adapter everything works again. Looking at the time this might be maintenance on the sever side!!!!

edit: today (22/07) 00:35 it happend again, watch the time difference (2 hours) between every day.

Re: Nefit Easy™

Posted: Sunday 07 August 2016 10:06
by noway666
Dutchsea wrote:Hi, I really appreciatean updated post on how to install the Nefit Easy for Domoticz. The info is now so fragmenten and often outdated that its hard for novice user to make a start. Especially as the instruction in the initial post is not working anymore.
I second this. As a relative newbie regarding linux I would very much like to see a comprehensive guide to make the Easy visible in domoticz. Can anyone guide us through? (I don't want to mess up my domoticz setup with wrong commands :) )

Re: Nefit Easy™

Posted: Monday 15 August 2016 11:35
by knights
Hmm... My Domoticz will stop working after some while if I enable the Nefit Easy Server. If I dont use this my Domoticz works just fine.

Anybody has some suggestions where to start with troubleshooting?
Already have the latest beta and updates/upgrades.

My RASPI is still functional when Domoticz is offline.

Re: Nefit Easy™

Posted: Tuesday 30 August 2016 15:01
by jurgen
Dear all,

Today I have installed domoticz with easy-http server on my synology. I could not find a complete tutorial so i decided to document and share the steps that I did to get this working. I hope that you can use it.

Tutorial
Nefit easy on synology with DSM 6.0.2

Install node.js v4.2.6-0158 using package center from publisher Synology.inc

Install nefit easy http server on synology nas using ssh
npm i nefit-easy-http-server -g

Run the nefit easy http server as test
easy-server --serial=serialnumber --access-key=enteryourkey --password=enteryourpassword

Check if you can reach the http server using the following command:
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus

Go to domoticz which is running on my synology server
Add new hardware
Nefit easy http server over lan interface

name: nefit-easy
Remote address: 127.0.0.1
poort: 3000


Go to Devices and check if there are nefit devices available and add the devices to the dashboard! :D

if there are no devices available check the logging in domoticz and verify with curl if the easy http server is running.


Create Startup script called easy-server.sh and place it in the directory /usr/local/etc/rc.d/
Reboot the nas and check that the process is running.
ps -aux | grep easy-http

@thanks to mvveelen

I edit the scriptname directory because of the change in DSM 6.0.2

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          nefit easy http server
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: nefit-easy-http-server
# Description:       This daemon will start the nefit-easy-http-server for use by Domoticz
### END INIT INFO
 
# Do NOT "set -e"
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Nefit Easy HTTP Server"
NAME=easy-server
USERNAME=root
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/usr/local/etc/rc.d/$NAME
NEFIT_SERIAL_NUMBER=enterserial
NEFIT_ACCESS_KEY=enterkey
NEFIT_PASSWORD=enterpassword
NEFIT_HOST=127.0.0.1
NEFIT_PORT=3000
 
 
DAEMON=/usr/local/bin/$NAME
 
DAEMON_ARGS="$DAEMON_ARGS --serial=$NEFIT_SERIAL_NUMBER"
DAEMON_ARGS="$DAEMON_ARGS --access-key=$NEFIT_ACCESS_KEY"
DAEMON_ARGS="$DAEMON_ARGS --password=$NEFIT_PASSWORD"
DAEMON_ARGS="$DAEMON_ARGS --host=$NEFIT_HOST"
DAEMON_ARGS="$DAEMON_ARGS --port=$NEFIT_PORT"
 
 
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
 
#
# Function that starts the daemon/service
#
do_start()
{
    nohup $DAEMON $DAEMON_ARGS &
  echo `ps w | grep ${DAEMON} | grep -v -E 'grep' | awk '{print $1}' > $PIDFILE`
 
 
 
}
 
 
 
wait_for_status ()
{
    counter=$2
    while [ ${counter} -gt 0 ]; do
        do_status
        [ $? -eq $1 ] && return
        let counter=counter-1
        sleep 1
    done
    return 1
}
 
 
 
 
 
#
# Function that stops the daemon/service
#
 
do_stop()
 
{
    # Kill the application
    kill `cat ${PIDFILE}`
    wait_for_status 1 20 || kill -9 `cat ${PIDFILE}`
    rm -f ${PIDFILE}
}
 
 
 
do_status ()
{
    if [ -f ${PIDFILE} ] && kill -0 `cat ${PIDFILE}` > /dev/null 2>&1; then
        return
    fi
    rm -f ${PIDFILE}
    return 1
}
 
 
 
 
 
case "$1" in
  start)
        do_start
        ;;
  stop)
        do_stop
        ;;
  restart)
        do_stop
        do_start
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
        exit 3
        ;;
esac
 
:

Re: Nefit Easy™

Posted: Tuesday 30 August 2016 15:06
by gizmocuz
Maybe it's a nice idea to create a wiki page about this ?

I see there is already a wiki:

http://www.domoticz.com/wiki/NefitEasy

But maybe add a section for the Synology ?

Re: Nefit Easy™

Posted: Tuesday 30 August 2016 15:39
by jurgen
That would be a great idea!

Re: Nefit Easy™

Posted: Tuesday 30 August 2016 18:54
by mvveelen
jurgen wrote:Dear all,

Today I have installed domoticz with easy-http server on my synology. I could not find a complete tutorial so i decided to document and share the steps that I did to get this working. I hope that you can use it.

Tutorial
Nefit easy on synology with DSM 6.0.2

Install node.js v4.2.6-0158 using package center from publisher Synology.inc

Install nefit easy http server on synology nas using ssh
npm i nefit-easy-http-server -g

Run the nefit easy http server as test
easy-server --serial=serialnumber --access-key=enteryourkey --password=enteryourpassword

Check if you can reach the http server using the following command:
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus

Go to domoticz which is running on my synology server
Add new hardware
Nefit easy http server over lan interface

name: nefit-easy
Remote address: 127.0.0.1
poort: 3000


Go to Devices and check if there are nefit devices available and add the devices to the dashboard! :D

if there are no devices available check the logging in domoticz and verify with curl if the easy http server is running.


Create Startup script called easy-server.sh and place it in the directory /usr/local/etc/rc.d/
Reboot the nas and check that the process is running.
ps -aux | grep easy-http

@thanks to mvveelen

I edit the scriptname directory because of the change in DSM 6.0.2

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          nefit easy http server
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: nefit-easy-http-server
# Description:       This daemon will start the nefit-easy-http-server for use by Domoticz
### END INIT INFO
 
# Do NOT "set -e"
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Nefit Easy HTTP Server"
NAME=easy-server
USERNAME=root
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/usr/local/etc/rc.d/$NAME
NEFIT_SERIAL_NUMBER=enterserial
NEFIT_ACCESS_KEY=enterkey
NEFIT_PASSWORD=enterpassword
NEFIT_HOST=127.0.0.1
NEFIT_PORT=3000
 
 
DAEMON=/usr/local/bin/$NAME
 
DAEMON_ARGS="$DAEMON_ARGS --serial=$NEFIT_SERIAL_NUMBER"
DAEMON_ARGS="$DAEMON_ARGS --access-key=$NEFIT_ACCESS_KEY"
DAEMON_ARGS="$DAEMON_ARGS --password=$NEFIT_PASSWORD"
DAEMON_ARGS="$DAEMON_ARGS --host=$NEFIT_HOST"
DAEMON_ARGS="$DAEMON_ARGS --port=$NEFIT_PORT"
 
 
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
 
#
# Function that starts the daemon/service
#
do_start()
{
    nohup $DAEMON $DAEMON_ARGS &
  echo `ps w | grep ${DAEMON} | grep -v -E 'grep' | awk '{print $1}' > $PIDFILE`
 
 
 
}
 
 
 
wait_for_status ()
{
    counter=$2
    while [ ${counter} -gt 0 ]; do
        do_status
        [ $? -eq $1 ] && return
        let counter=counter-1
        sleep 1
    done
    return 1
}
 
 
 
 
 
#
# Function that stops the daemon/service
#
 
do_stop()
 
{
    # Kill the application
    kill `cat ${PIDFILE}`
    wait_for_status 1 20 || kill -9 `cat ${PIDFILE}`
    rm -f ${PIDFILE}
}
 
 
 
do_status ()
{
    if [ -f ${PIDFILE} ] && kill -0 `cat ${PIDFILE}` > /dev/null 2>&1; then
        return
    fi
    rm -f ${PIDFILE}
    return 1
}
 
 
 
 
 
case "$1" in
  start)
        do_start
        ;;
  stop)
        do_stop
        ;;
  restart)
        do_stop
        do_start
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
        exit 3
        ;;
esac
 
:
Great work on documenting it for DSM6 on the Synology. I'm still running DSM5, but maybe....someday,... :D

Are you going to add a wiki-page ?

Re: Nefit Easy™

Posted: Thursday 01 September 2016 11:09
by preetyjess01
Hello,
Amazing and very informative. I try this in my Raspberry Pi robot kits project. This is very helpful for me. Thanks.

Re: Nefit Easy™

Posted: Tuesday 06 September 2016 19:24
by Kochmeister
Hi,

I could not find this using the search, but is it possible to switch on and off warm water as well?

That would be great!
nefit.png
nefit.png (81.23 KiB) Viewed 3780 times

Re: Nefit Easy™

Posted: Tuesday 06 September 2016 19:38
by mvveelen
Hmmm, curious too.

Re: Nefit Easy™

Posted: Wednesday 07 September 2016 20:01
by cvdb
jurgen wrote:Dear all,

Today I have installed domoticz with easy-http server on my synology. I could not find a complete tutorial so i decided to document and share the steps that I did to get this working. I hope that you can use it.

Tutorial
Nefit easy on synology with DSM 6.0.2

Install node.js v4.2.6-0158 using package center from publisher Synology.inc

Install nefit easy http server on synology nas using ssh
npm i nefit-easy-http-server -g

Run the nefit easy http server as test
easy-server --serial=serialnumber --access-key=enteryourkey --password=enteryourpassword

Check if you can reach the http server using the following command:
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus

Go to domoticz which is running on my synology server
Add new hardware
Nefit easy http server over lan interface

name: nefit-easy
Remote address: 127.0.0.1
poort: 3000


Go to Devices and check if there are nefit devices available and add the devices to the dashboard! :D

if there are no devices available check the logging in domoticz and verify with curl if the easy http server is running.


Create Startup script called easy-server.sh and place it in the directory /usr/local/etc/rc.d/
Reboot the nas and check that the process is running.
ps -aux | grep easy-http

@thanks to mvveelen

I edit the scriptname directory because of the change in DSM 6.0.2

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          nefit easy http server
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: nefit-easy-http-server
# Description:       This daemon will start the nefit-easy-http-server for use by Domoticz
### END INIT INFO
 
# Do NOT "set -e"
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Nefit Easy HTTP Server"
NAME=easy-server
USERNAME=root
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/usr/local/etc/rc.d/$NAME
NEFIT_SERIAL_NUMBER=enterserial
NEFIT_ACCESS_KEY=enterkey
NEFIT_PASSWORD=enterpassword
NEFIT_HOST=127.0.0.1
NEFIT_PORT=3000
 
 
DAEMON=/usr/local/bin/$NAME
 
DAEMON_ARGS="$DAEMON_ARGS --serial=$NEFIT_SERIAL_NUMBER"
DAEMON_ARGS="$DAEMON_ARGS --access-key=$NEFIT_ACCESS_KEY"
DAEMON_ARGS="$DAEMON_ARGS --password=$NEFIT_PASSWORD"
DAEMON_ARGS="$DAEMON_ARGS --host=$NEFIT_HOST"
DAEMON_ARGS="$DAEMON_ARGS --port=$NEFIT_PORT"
 
 
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
 
#
# Function that starts the daemon/service
#
do_start()
{
    nohup $DAEMON $DAEMON_ARGS &
  echo `ps w | grep ${DAEMON} | grep -v -E 'grep' | awk '{print $1}' > $PIDFILE`
 
 
 
}
 
 
 
wait_for_status ()
{
    counter=$2
    while [ ${counter} -gt 0 ]; do
        do_status
        [ $? -eq $1 ] && return
        let counter=counter-1
        sleep 1
    done
    return 1
}
 
 
 
 
 
#
# Function that stops the daemon/service
#
 
do_stop()
 
{
    # Kill the application
    kill `cat ${PIDFILE}`
    wait_for_status 1 20 || kill -9 `cat ${PIDFILE}`
    rm -f ${PIDFILE}
}
 
 
 
do_status ()
{
    if [ -f ${PIDFILE} ] && kill -0 `cat ${PIDFILE}` > /dev/null 2>&1; then
        return
    fi
    rm -f ${PIDFILE}
    return 1
}
 
 
 
 
 
case "$1" in
  start)
        do_start
        ;;
  stop)
        do_stop
        ;;
  restart)
        do_stop
        do_start
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
        exit 3
        ;;
esac
 
:

Hello all,
Just installed Domoticz on my Synology, and got it working with some switches :)
Now i really would like to connect to my Nefit easy as well, but after a few evenings trying, its not that easy for me... because i am not so familiar with this code.

i am glad some people are, and thanks for puting it on this forum, and i hope they can help me in the right direction.

my configuration:
Synology DS412+ DSM 6.0.2-8451
installed node.js v4.2.6-0158

I am trying to follow the steps from the tutoral, but got lost..

I am connecting to Synology with PuTTY SSH
I changed the npm install directory to ~/.npm-global ( because it generated some errors on permissions.. )
https://docs.npmjs.com/getting-started/ ... ermissions

and when i do:

Code: Select all

admin@DiskStation:~$ easy-server
-sh: easy-server: command not found
admin@DiskStation:~$

admin@DiskStation:~$ curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus
curl: (7) Failed to connect to 127.0.0.1 port 3000: Connection refused
admin@DiskStation:~$
 
Its not starting the easy server...

So please help me with where i go wrong

Re: Nefit Easy™

Posted: Wednesday 07 September 2016 21:04
by BartdaMan
Yes! Today our new Nefit Trendline has been installed, with Easy thermostat.
For installation of the easy server onto RasPi the Wiki is not 100% right, but with the help of the above posts (thank you all!) and good old friend Mr. Google, I just succeeded to get it all running in Domoticz.

I really like my new home automation hobby!

Re: Nefit Easy™

Posted: Saturday 10 September 2016 22:38
by jurgen
cvdb wrote:
jurgen wrote:Dear all,

Today I have installed domoticz with easy-http server on my synology. I could not find a complete tutorial so i decided to document and share the steps that I did to get this working. I hope that you can use it.

Tutorial
Nefit easy on synology with DSM 6.0.2

Install node.js v4.2.6-0158 using package center from publisher Synology.inc

Install nefit easy http server on synology nas using ssh
npm i nefit-easy-http-server -g

Run the nefit easy http server as test
easy-server --serial=serialnumber --access-key=enteryourkey --password=enteryourpassword

Check if you can reach the http server using the following command:
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus

Go to domoticz which is running on my synology server
Add new hardware
Nefit easy http server over lan interface

name: nefit-easy
Remote address: 127.0.0.1
poort: 3000


Go to Devices and check if there are nefit devices available and add the devices to the dashboard! :D

if there are no devices available check the logging in domoticz and verify with curl if the easy http server is running.


Create Startup script called easy-server.sh and place it in the directory /usr/local/etc/rc.d/
Reboot the nas and check that the process is running.
ps -aux | grep easy-http

@thanks to mvveelen

I edit the scriptname directory because of the change in DSM 6.0.2

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          nefit easy http server
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: nefit-easy-http-server
# Description:       This daemon will start the nefit-easy-http-server for use by Domoticz
### END INIT INFO
 
# Do NOT "set -e"
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Nefit Easy HTTP Server"
NAME=easy-server
USERNAME=root
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/usr/local/etc/rc.d/$NAME
NEFIT_SERIAL_NUMBER=enterserial
NEFIT_ACCESS_KEY=enterkey
NEFIT_PASSWORD=enterpassword
NEFIT_HOST=127.0.0.1
NEFIT_PORT=3000
 
 
DAEMON=/usr/local/bin/$NAME
 
DAEMON_ARGS="$DAEMON_ARGS --serial=$NEFIT_SERIAL_NUMBER"
DAEMON_ARGS="$DAEMON_ARGS --access-key=$NEFIT_ACCESS_KEY"
DAEMON_ARGS="$DAEMON_ARGS --password=$NEFIT_PASSWORD"
DAEMON_ARGS="$DAEMON_ARGS --host=$NEFIT_HOST"
DAEMON_ARGS="$DAEMON_ARGS --port=$NEFIT_PORT"
 
 
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
 
#
# Function that starts the daemon/service
#
do_start()
{
    nohup $DAEMON $DAEMON_ARGS &
  echo `ps w | grep ${DAEMON} | grep -v -E 'grep' | awk '{print $1}' > $PIDFILE`
 
 
 
}
 
 
 
wait_for_status ()
{
    counter=$2
    while [ ${counter} -gt 0 ]; do
        do_status
        [ $? -eq $1 ] && return
        let counter=counter-1
        sleep 1
    done
    return 1
}
 
 
 
 
 
#
# Function that stops the daemon/service
#
 
do_stop()
 
{
    # Kill the application
    kill `cat ${PIDFILE}`
    wait_for_status 1 20 || kill -9 `cat ${PIDFILE}`
    rm -f ${PIDFILE}
}
 
 
 
do_status ()
{
    if [ -f ${PIDFILE} ] && kill -0 `cat ${PIDFILE}` > /dev/null 2>&1; then
        return
    fi
    rm -f ${PIDFILE}
    return 1
}
 
 
 
 
 
case "$1" in
  start)
        do_start
        ;;
  stop)
        do_stop
        ;;
  restart)
        do_stop
        do_start
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
        exit 3
        ;;
esac
 
:

Hello all,
Just installed Domoticz on my Synology, and got it working with some switches :)
Now i really would like to connect to my Nefit easy as well, but after a few evenings trying, its not that easy for me... because i am not so familiar with this code.

i am glad some people are, and thanks for puting it on this forum, and i hope they can help me in the right direction.

my configuration:
Synology DS412+ DSM 6.0.2-8451
installed node.js v4.2.6-0158

I am trying to follow the steps from the tutoral, but got lost..

I am connecting to Synology with PuTTY SSH
I changed the npm install directory to ~/.npm-global ( because it generated some errors on permissions.. )
https://docs.npmjs.com/getting-started/ ... ermissions

and when i do:

Code: Select all

admin@DiskStation:~$ easy-server
-sh: easy-server: command not found
admin@DiskStation:~$

admin@DiskStation:~$ curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus
curl: (7) Failed to connect to 127.0.0.1 port 3000: Connection refused
admin@DiskStation:~$
 
Its not starting the easy server...

So please help me with where i go wrong

Hi cvdb,

Before installing the nefit easy server using nmp, i think that you need to use the command "sudo -i" this will give you root permission.
after that try the commands again.

Greetz!

Re: Nefit Easy™

Posted: Tuesday 13 September 2016 11:15
by cvdb
Thanks Jurgen, will try that soon.

Re: Nefit Easy™

Posted: Wednesday 14 September 2016 19:36
by cvdb
Hi Jurgen,

the sudo -i did it, i have it running, and can see the new devices in domoticz :) many thanks.

I have a second question about:
Create Startup script called easy-server.sh and place it in the directory /usr/local/etc/rc.d/
Reboot the nas and check that the process is running.
ps -aux | grep easy-http
I placed an easy-server.sh file (with my serial #, access key and passwd) in the /usr/local/etc/rc.d directory, and rebooted the nas, but the process is not running.. any idea ?

Kind regards
CvdB

Re: Nefit Easy™

Posted: Thursday 15 September 2016 18:25
by cvdb
I did a chmod 755 of the easy-server.sh file, rebooted the nas, and now its running :)

Many thanks to you all

Re: Nefit Easy™

Posted: Tuesday 27 September 2016 11:56
by felix63
Hi,

Trying to find an answer to a simple question. Went through the wiki/forum but couldn't find a clear answer.

If I connect a Nefit Easy to Domoticz what functionality do I get?

Can anyone give me some insights?

Cheers,
Lex