Nefit Easy™

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

Moderator: leecollings

Post Reply
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

rostyk wrote:Works good.
Robert today implementing some code changes regarding set temperature (to be able to work with clock mode as well) and introduce a server mode whcih also look reasonable because now for every command you use authentication every cycle which is not so good from server (bosch) side.
We should work like iOs/Android app: open connection -> authenticate > execute commands -> execute next command ... repeat.
I've seen Robert's update :) i will try to incorporate this in a new version of the node. As you can see i use a configuration node for the Easy settings (serial, accessKey etc) this also gives the possibility to use connection pooling.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

rostyk wrote:i know it still not finished but i missing get and put commands in node.
For example i want to read /heatingCircuits/hc1/actualSupplyTemperature
its not possible to do up to now from node-red interface
I did not add Low level GET and PUT operations, my intention is to add these values human readable into the dropdown list.
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

pepijn wrote:
TESTERS NEEDED

I published the first version of the Node to github.
You can install it using:

Code: Select all

sudo npm install pepijng/node-red-contrib-nefit-easy -g
Thanks for all your efforts, being able to see my Nefit Easy in Domoticz makes me happy :D

Installed the new node with success, had to reboot to make it appear in node-red.

Used your sample flow for testing: after configuring the nefit easy nodes and Domoticz idx-numbers it started to work. Had one error 'lost server connection' but that was solved with a restart. Didn't see that since.
One thing that doesn't work is the update of the set-point. I cannot change it from Domoticz, changes applied using the android app came in very slowly (should take max 30 seconds, right?). I had the same problem with your previous solution using the scripts (others mentioned the problem too). When I change the setpoint running the script nefit-set from the command line things work fine! There must be something that I missed?

Appreciate your help.

Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Doler wrote:
pepijn wrote:
TESTERS NEEDED

I published the first version of the Node to github.
You can install it using:

Code: Select all

sudo npm install pepijng/node-red-contrib-nefit-easy -g
Thanks for all your efforts, being able to see my Nefit Easy in Domoticz makes me happy :D

Installed the new node with success, had to reboot to make it appear in node-red.

Used your sample flow for testing: after configuring the nefit easy nodes and Domoticz idx-numbers it started to work. Had one error 'lost server connection' but that was solved with a restart. Didn't see that since.
One thing that doesn't work is the update of the set-point. I cannot change it from Domoticz, changes applied using the android app came in very slowly (should take max 30 seconds, right?). I had the same problem with your previous solution using the scripts (others mentioned the problem too). When I change the setpoint running the script nefit-set from the command line things work fine! There must be something that I missed?

Appreciate your help.

Thanks, Mark
Can set your thermostat to manual before changing the temperature from Domoticz? (this is a known issue)
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

pepijn wrote:
Can set your thermostat to manual before changing the temperature from Domoticz? #this is a known issue#
I tried that #and did before# but to no avail. As said running the script nefit-set or the command easy set temperature "$*" from the command line does work.
When I set the setpoint in Domoticz I see a '#Virtual# Thermostat #Nefit | Setpoint#' in the log but nothing happens.

Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

New version:
  • Using nefit-easy-client as dependency
  • Fixed set temperature when program is active
install

Code: Select all

sudo npm remove -g node-red-contrib-nefit-easy
sudo npm install -g pepijng/node-red-contrib-nefit-easy
sudo service nodered restart
rostyk
Posts: 9
Joined: Monday 04 January 2016 16:58
Target OS: Windows
Domoticz version: 2.4028
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by rostyk »

pepijn wrote:
rostyk wrote:i know it still not finished but i missing get and put commands in node.
For example i want to read /heatingCircuits/hc1/actualSupplyTemperature
its not possible to do up to now from node-red interface
I did not add Low level GET and PUT operations, my intention is to add these values human readable into the dropdown list.
ok. then i added this feature by configuring some backend script ;)
Image
http://rostyk.net/test/node_Red_easy.jpg
yes i forgot rbe filter in a node flowtemp when making screenshot :roll:
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

rostyk wrote:
pepijn wrote:
rostyk wrote:i know it still not finished but i missing get and put commands in node.
For example i want to read /heatingCircuits/hc1/actualSupplyTemperature
its not possible to do up to now from node-red interface
I did not add Low level GET and PUT operations, my intention is to add these values human readable into the dropdown list.
ok. then i added this feature by configuring some backend script ;)
Image
http://rostyk.net/test/node_Red_easy.jpg
yes i forgot rbe filter in a node flowtemp when making screenshot :roll:
You modified Robert's library file, it's better to solve it within the Nefit-easy.js file. I just removed the library from my code and added a dependency.
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

pepijn wrote:New version:
  • Using nefit-easy-client as dependency
  • Fixed set temperature when program is active
install

Code: Select all

sudo npm remove -g node-red-contrib-nefit-easy
sudo npm install -g pepijng/node-red-contrib-nefit-easy
sudo service nodered restart
Updated without a hassle but it doesn't help my case. See if I (being a noob) understand things correct:
MQTT is listening to device updates in Domoticz. When the Setpoint is changed, MQTT and Domoticz communicate using json and when ok, execute action. My guess is that there is something going wrong in communication: I see the log message in Domoticz but see nothing in the debug window in Node-RED. Did I miss some pre-requisites or configuration details?

Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Doler wrote:
pepijn wrote:New version:
  • Using nefit-easy-client as dependency
  • Fixed set temperature when program is active
install

Code: Select all

sudo npm remove -g node-red-contrib-nefit-easy
sudo npm install -g pepijng/node-red-contrib-nefit-easy
sudo service nodered restart
Updated without a hassle but it doesn't help my case. See if I (being a noob) understand things correct:
MQTT is listening to device updates in Domoticz. When the Setpoint is changed, MQTT and Domoticz communicate using json and when ok, execute action. My guess is that there is something going wrong in communication: I see the log message in Domoticz but see nothing in the debug window in Node-RED. Did I miss some pre-requisites or configuration details?

Thanks, Mark
Can you check the device id in filter checkpoint idx
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

pepijn wrote:
Doler wrote:
pepijn wrote:New version:
  • Using nefit-easy-client as dependency
  • Fixed set temperature when program is active
install

Code: Select all

sudo npm remove -g node-red-contrib-nefit-easy
sudo npm install -g pepijng/node-red-contrib-nefit-easy
sudo service nodered restart
Updated without a hassle but it doesn't help my case. See if I (being a noob) understand things correct:
MQTT is listening to device updates in Domoticz. When the Setpoint is changed, MQTT and Domoticz communicate using json and when ok, execute action. My guess is that there is something going wrong in communication: I see the log message in Domoticz but see nothing in the debug window in Node-RED. Did I miss some pre-requisites or configuration details?

Thanks, Mark
Can you check the device id in filter checkpoint idx
That's the thing I overlooked. It works now, thanks a lot.

Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
renebiemans
Posts: 6
Joined: Tuesday 08 December 2015 22:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by renebiemans »

Hi I've tried to get the client working but I can't get it working on a clean install of domoticz(with the SD card for Raspberry PI). I tried on RPI1 and PRI2. When I look in node-red I can't see the nefit easy part. Are there some parts that has to be installed before installing the client?

During the installation the installer gives an warning about engine wanted node :>=4.0 current node: 0.12.1 npm 2.5.1 I tried to install a newer version of node.js but not maybe not with succes.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

renebiemans wrote:Hi I've tried to get the client working but I can't get it working on a clean install of domoticz(with the SD card for Raspberry PI). I tried on RPI1 and PRI2. When I look in node-red I can't see the nefit easy part. Are there some parts that has to be installed before installing the client?

During the installation the installer gives an warning about engine wanted node :>=4.0 current node: 0.12.1 npm 2.5.1 I tried to install a newer version of node.js but not maybe not with succes.
Did you restart node-red after installing the nefit-easy node?
rostyk
Posts: 9
Joined: Monday 04 January 2016 16:58
Target OS: Windows
Domoticz version: 2.4028
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by rostyk »

@pepijn
i got once per hour a error with crash of node-red:

Code: Select all

Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TLSWrap.onread (net.js:544:26)
looks like connection are closed (dropped by nefit easy) after a 40-50 minutes.

i will report after clean reinstall (probably caused by mine changes in a code)
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

pepijn wrote:
renebiemans wrote:Hi I've tried to get the client working but I can't get it working on a clean install of domoticz(with the SD card for Raspberry PI). I tried on RPI1 and PRI2. When I look in node-red I can't see the nefit easy part. Are there some parts that has to be installed before installing the client?

During the installation the installer gives an warning about engine wanted node :>=4.0 current node: 0.12.1 npm 2.5.1 I tried to install a newer version of node.js but not maybe not with succes.
Did you restart node-red after installing the nefit-easy node?
You need to upgrade NodeJS to > 4.0.0 , the instructions are on the beginning of this post.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

rostyk wrote:
pepijn wrote:
rostyk wrote:i know it still not finished but i missing get and put commands in node.
For example i want to read /heatingCircuits/hc1/actualSupplyTemperature
its not possible to do up to now from node-red interface
I did not add Low level GET and PUT operations, my intention is to add these values human readable into the dropdown list.
ok. then i added this feature by configuring some backend script ;)
Image
http://rostyk.net/test/node_Red_easy.jpg
yes i forgot rbe filter in a node flowtemp when making screenshot :roll:
New version available, it includes the flow temperature
Doler
Posts: 142
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by Doler »

rostyk wrote:@pepijn
i got once per hour a error with crash of node-red:

Code: Select all

Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TLSWrap.onread (net.js:544:26)
looks like connection are closed (dropped by nefit easy) after a 40-50 minutes.

i will report after clean reinstall (probably caused by mine changes in a code)
I have the same problem, 7 minutes after a restart of red-node

Code: Select all

6 Jan 17:26:26 - [red] Uncaught Exception:
6 Jan 17:26:26 - Error: read ECONNRESET
    at exports._errnoException (util.js:855:11)
    at TLSWrap.onread (net.js:544:26)
Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
renebiemans
Posts: 6
Joined: Tuesday 08 December 2015 22:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by renebiemans »

Re: Nefit Easy™ client library (How to install on the Pi)

Postby pepijn » Wednesday 06 January 2016 16:57




renebiemans wrote:
Hi I've tried to get the client working but I can't get it working on a clean install of domoticz(with the SD card for Raspberry PI). I tried on RPI1 and PRI2. When I look in node-red I can't see the nefit easy part. Are there some parts that has to be installed before installing the client?

During the installation the installer gives an warning about engine wanted node :>=4.0 current node: 0.12.1 npm 2.5.1 I tried to install a newer version of node.js but not maybe not with succes.

Did you restart node-red after installing the nefit-easy node?
Yes I tried that. I think the problem is in deed with the update of node. I have tried to update to 5.3.0 but I get an error when I want to copy to package with the command: sudo cp -R * /usr/local/

I get the following error: cp: cannot create regular file '/usr/local/bin/node': text file busy. I allready tried to reboot remove the files but I can't get premission. I also tried a complete clean installation(sd image).
dorenberg
Posts: 110
Joined: Monday 22 June 2015 20:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10982
Location: Veghel, The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by dorenberg »

renebiemans wrote:
Re: Nefit Easy™ client library (How to install on the Pi)

Postby pepijn » Wednesday 06 January 2016 16:57




renebiemans wrote:
Hi I've tried to get the client working but I can't get it working on a clean install of domoticz(with the SD card for Raspberry PI). I tried on RPI1 and PRI2. When I look in node-red I can't see the nefit easy part. Are there some parts that has to be installed before installing the client?

During the installation the installer gives an warning about engine wanted node :>=4.0 current node: 0.12.1 npm 2.5.1 I tried to install a newer version of node.js but not maybe not with succes.

Did you restart node-red after installing the nefit-easy node?
Yes I tried that. I think the problem is in deed with the update of node. I have tried to update to 5.3.0 but I get an error when I want to copy to package with the command: sudo cp -R * /usr/local/

I get the following error: cp: cannot create regular file '/usr/local/bin/node': text file busy. I allready tried to reboot remove the files but I can't get premission. I also tried a complete clean installation(sd image).
you have to stop node-red first before you can issue that command.

sudo ps -ef | grep node
sudo /etc/init.d/nodered stop
node -v
(VERSIE 0.10.4 OID ZOU ER MOETEN STAAN)
wget https://nodejs.org/dist/v5.3.0/node-v5. ... v7l.tar.gz
tar -xvf node-v5.3.0-linux-armv7l.tar.gz
cd node-v5.3.0-linux-armv7l
sudo cp -R * /usr/local/
node -v
(VERSIE 5.3.0 ZOU ER MOETEN STAAN)
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Nefit Easy™ client library (How to install on the Pi)

Post by pepijn »

Doler wrote:
rostyk wrote:@pepijn
i got once per hour a error with crash of node-red:

Code: Select all

Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TLSWrap.onread (net.js:544:26)
looks like connection are closed (dropped by nefit easy) after a 40-50 minutes.

i will report after clean reinstall (probably caused by mine changes in a code)
I have the same problem, 7 minutes after a restart of red-node

Code: Select all

6 Jan 17:26:26 - [red] Uncaught Exception:
6 Jan 17:26:26 - Error: read ECONNRESET
    at exports._errnoException (util.js:855:11)
    at TLSWrap.onread (net.js:544:26)
Mark
It seems to be a bug in the Nefit Easy library.
https://github.com/robertklep/nefit-easy-core/issues/2
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest