Nefit Easy™
Moderator: leecollings
- kraades
- Posts: 36
- Joined: Wednesday 24 June 2015 9:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ thermostat support
Update
Expirimental Nefit-Easy via HTTP web server application from Robert
https://github.com/domoticz/domoticz/co ... 101beb2579
PHP version should work as well: (Dutch)
http://gathering.tweakers.net/forum/lis ... 6#45597916
Expirimental Nefit-Easy via HTTP web server application from Robert
https://github.com/domoticz/domoticz/co ... 101beb2579
PHP version should work as well: (Dutch)
http://gathering.tweakers.net/forum/lis ... 6#45597916
-
- Posts: 23
- Joined: Sunday 10 January 2016 20:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit Easy™
Thanks to Pepijn i have a setup that is working, the only thing is that i receive an error, and node-red stops...
My readout when i start node-red:
There is one thing that seems faulty i think: the line "17 Jan 13:38:36 - [error] [nefit-easy-config:e4e7ec4a.1b181] Nefit initialization : XMPP authentication failure"
it also seems that two instances are started:
The config with the nefit-easy-config:bd2a3479.8b63d starts ok.
The error i receive is
My readout when i start node-red:
Code: Select all
Welcome to Node-RED
===================
17 Jan 13:37:57 - [info] Node-RED version: v0.12.5
17 Jan 13:37:57 - [info] Node.js version: v4.1.1
17 Jan 13:37:57 - [info] Loading palette nodes
17 Jan 13:38:26 - [info] Settings file : /home/pi/.node-red/settings.js
17 Jan 13:38:26 - [info] User directory : /home/pi/.node-red
17 Jan 13:38:26 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
17 Jan 13:38:26 - [info] Server now running at http://127.0.0.1:1880/
17 Jan 13:38:27 - [info] Starting flows
17 Jan 13:38:28 - [info] [nefit-easy-config:e4e7ec4a.1b181] Starting Nefit Easy Node for Node-RED.
17 Jan 13:38:28 - [info] [nefit-easy-config:bd2a3479.8b63d] Starting Nefit Easy Node for Node-RED.
17 Jan 13:38:28 - [info] [inject:2b511792.d4aee8] repeat = 30000
17 Jan 13:38:32 - [info] [inject:fa03cb5c.05fc38] repeat = 60000
17 Jan 13:38:33 - [info] [inject:94c17a10.6b3e88] repeat = 60000
17 Jan 13:38:33 - [info] [inject:f09fc0c5.0f604] repeat = 60000
17 Jan 13:38:34 - [info] Started flows
17 Jan 13:38:34 - [info] [mqtt-broker:a934b708.56cb48] Connected to broker: mqtt://127.0.0.1:1883
17 Jan 13:38:36 - [error] [nefit-easy-config:e4e7ec4a.1b181] Nefit initialization : XMPP authentication failure
17 Jan 13:38:36 - [info] [nefit-easy-config:bd2a3479.8b63d] Nefit Easy abcdefghij connected to Bosch backend.
17 Jan 13:38:36 - [info] [nefit-easy-config:bd2a3479.8b63d] Nefit Easy software firmware version: 02.17.00
17 Jan 13:38:58 - [info] [nefit-easy-config:bd2a3479.8b63d] Nefit command status (param null value null)
17 Jan 13:39:00 - [info] [debug:f15b3222.0ea4d]
it also seems that two instances are started:
Code: Select all
17 Jan 13:38:28 - [info] [nefit-easy-config:e4e7ec4a.1b181] Starting Nefit Easy Node for Node-RED.
17 Jan 13:38:28 - [info] [nefit-easy-config:bd2a3479.8b63d] Starting Nefit Easy Node for Node-RED.
The error i receive is
Code: Select all
17 Jan 13:36:29 - [red] Uncaught Exception:
17 Jan 13:36:29 - Error: Uncaught, unspecified "error" event. (XMPP authentication failure)
at Client.emit (events.js:144:17)
at Client._handleAuthState (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/node-xmpp-client/lib/Client.js:298:10)
at Client._handleStanza (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/node-xmpp-client/lib/Client.js:234:12)
at Client.onStanza (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/node-xmpp-client/lib/Client.js:222:8)
at emitOne (events.js:77:13)
at Connection.emit (events.js:169:7)
at Connection.onStanza (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/node-xmpp-core/lib/Connection.js:369:10)
at StreamParser.<anonymous> (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/node-xmpp-core/lib/Connection.js:226:10)
at emitOne (events.js:77:13)
at StreamParser.emit (events.js:169:7)
at SaxLtx.<anonymous> (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/node-xmpp-core/lib/StreamParser.js:58:14)
at emitOne (events.js:77:13)
at SaxLtx.emit (events.js:169:7)
at SaxLtx._handleTagOpening (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/ltx/lib/parsers/ltx.js:35:12)
at SaxLtx.write (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/ltx/lib/parsers/ltx.js:95:18)
at StreamParser.write (/usr/local/lib/node_modules/node-red-contrib-nefit-easy/node_modules/node-xmpp-core/lib/StreamParser.js:123:17)
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™
The XMPP errors occur when your Easy details (serial, access key, password) are incorrect. Maybe multiple easy configs are created
-
- Posts: 23
- Joined: Sunday 10 January 2016 20:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit Easy™
i found how to remove it. Seems a bit hidden....
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Nefit Easy™
I decided to install nodejs and the easy-server on a RPi I have running with Kodi. I finally got it working that way, but there are 2 things I don't understand:
- When I close my Macbook, the receiving of data on the Synology (where I have Domoticz running) stops. Strange, because it should query the Rpi without my Macbook, right?
- I have 6 devices, but I see in one of the screenshot in this topic that there should also be a "Nefit | Aanvoertemperatuur" ?
I'm using the latest Domoticz with Nefit Easy support (hardware). Anyone?
Edit:
I just installed nodejs and the easy-server on my Synology and that seems to work now too. Let's hope it doesn't stop receiving data when I close my Macbook.....
Oh, the steps I took:
- Make a folder where you want the stuff to be installed. I chose /volume1/Easy and gave it 777 permissions.
- cd ../volume1/Easy
- wget https://nodejs.org/dist/v5.3.0/node-v5. ... v7l.tar.gz
- tar -xvf node-v5.3.0-linux-armv7l.tar.gz
- cp -R * /usr/local/
- export PATH=/volume1/Easy/node-v5.3.0-linux-armv7l/bin:$PATH
- node -v
Result:
v5.3.0
- cd bin
- npm i nefit-easy-http-server -g
- easy-server --serial=myserial --password=mypassword --access-key=myaccesskey --host=192.168.0.124 --port=3001
HTTP server listening on http://192.168.0.124:3001
I used another port to be sure, but you can leave that behind and then it will use port 3000 by default. The IP address can be 127.0.0.1 when Domoticz is running on the same device as the easy-server, but I chose to use the IP address.
Going to close the Macbook for a while to see if it keeps working.
- When I close my Macbook, the receiving of data on the Synology (where I have Domoticz running) stops. Strange, because it should query the Rpi without my Macbook, right?
- I have 6 devices, but I see in one of the screenshot in this topic that there should also be a "Nefit | Aanvoertemperatuur" ?
I'm using the latest Domoticz with Nefit Easy support (hardware). Anyone?
Edit:
I just installed nodejs and the easy-server on my Synology and that seems to work now too. Let's hope it doesn't stop receiving data when I close my Macbook.....
Oh, the steps I took:
- Make a folder where you want the stuff to be installed. I chose /volume1/Easy and gave it 777 permissions.
- cd ../volume1/Easy
- wget https://nodejs.org/dist/v5.3.0/node-v5. ... v7l.tar.gz
- tar -xvf node-v5.3.0-linux-armv7l.tar.gz
- cp -R * /usr/local/
- export PATH=/volume1/Easy/node-v5.3.0-linux-armv7l/bin:$PATH
- node -v
Result:
v5.3.0
- cd bin
- npm i nefit-easy-http-server -g
- easy-server --serial=myserial --password=mypassword --access-key=myaccesskey --host=192.168.0.124 --port=3001
HTTP server listening on http://192.168.0.124:3001
I used another port to be sure, but you can leave that behind and then it will use port 3000 by default. The IP address can be 127.0.0.1 when Domoticz is running on the same device as the easy-server, but I chose to use the IP address.
Going to close the Macbook for a while to see if it keeps working.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™
The easy server and experimental easy hardware does not display the same information as the Node RED versionmvveelen wrote:I decided to install nodejs and the easy-server on a RPi I have running with Kodi. I finally got it working that way, but there are 2 things I don't understand:
- When I close my Macbook, the receiving of data on the Synology (where I have Domoticz running) stops. Strange, because it should query the Rpi without my Macbook, right?
- I have 6 devices, but I see in one of the screenshot in this topic that there should also be a "Nefit | Aanvoertemperatuur" ?
I'm using the latest Domoticz with Nefit Easy support (hardware). Anyone?
Edit:
I just installed nodejs and the easy-server on my Synology and that seems to work now too. Let's hope it doesn't stop receiving data when I close my Macbook.....
Oh, the steps I took:
- Make a folder where you want the stuff to be installed. I chose /volume1/Easy and gave it 777 permissions.
- cd ../volume1/Easy
- wget https://nodejs.org/dist/v5.3.0/node-v5. ... v7l.tar.gz
- tar -xvf node-v5.3.0-linux-armv7l.tar.gz
- cp -R * /usr/local/
- export PATH=/volume1/Easy/node-v5.3.0-linux-armv7l/bin:$PATH
- node -v
Result:
v5.3.0
- cd bin
- npm i nefit-easy-http-server -g
- easy-server --serial=myserial --password=mypassword --access-key=myaccesskey --host=192.168.0.124 --port=3001
HTTP server listening on http://192.168.0.124:3001
I used another port to be sure, but you can leave that behind and then it will use port 3000 by default. The IP address can be 127.0.0.1 when Domoticz is running on the same device as the easy-server, but I chose to use the IP address.
Going to close the Macbook for a while to see if it keeps working.
You also need to run the easy-server in the background. That's why it's closing when you close your ssh session
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Nefit Easy™
Fair enough, but how do I run it in the background....?pepijn wrote:
The easy server and experimental easy hardware does not display the same information as the Node RED version
You also need to run the easy-server in the background. That's why it's closing when you close your ssh session
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 79
- Joined: Tuesday 02 December 2014 22:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Nefit Easy™
Hi Pepijn, I've followed the Nefit easy topic for some time now but i didn't have time to finish the installation. But my compliments because it's working very good!! Thanx a lot!
Do you think it's possible to get more data from the easy into domoticz? Like gas usage, outside temp ect. ( I have an external temp sensor).
Maybe something for the future ?
Anyhow thnx for the hard work!
Do you think it's possible to get more data from the easy into domoticz? Like gas usage, outside temp ect. ( I have an external temp sensor).
Maybe something for the future ?
Anyhow thnx for the hard work!
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™
Yes I know, the outside temp is already there does it work with the external sensor? I will try to add gas usage but I need to find out how it's stored. Other suggestions on what to add are welcome.
-
- Posts: 79
- Joined: Tuesday 02 December 2014 22:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Nefit Easy™
The "openhaardfunctie" would be nice as well.
Yes I have an external sensor.pepijn wrote:Yes I know, the outside temp is already there does it work with the external sensor?.
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™
Do you want to set this function? You can read already, you just need to modify your flow the nefit status node show 'fp active' and 'fireplace mode'geezerrr wrote:The "openhaardfunctie" would be nice as well
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Nefit Easy™
The "Aanvoer temperature" (without the need of Node-RED) would be nice.
For me the question remains: how can I run the server in the background on the Synology / RPi .... ?
For me the question remains: how can I run the server in the background on the Synology / RPi .... ?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™
nohup ./server &mvveelen wrote: For me the question remains: how can I run the server in the background on the Synology / RPi .... ?
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Nefit Easy™
Tried that:
nohup easy-server --serial=234324 --password=password --access-key=74YnEhHHewdSaT9ae --host=192.168.0.124 --port=3001 &
But as soon as I close the Terminal window, the receiving of data stops.....
nohup easy-server --serial=234324 --password=password --access-key=74YnEhHHewdSaT9ae --host=192.168.0.124 --port=3001 &
But as soon as I close the Terminal window, the receiving of data stops.....
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Re: Nefit Easy™
I followed the start post of this topic to install nodejs and the files from github
to test i entered
node example/current-status.js
the text bellow is what i get, anybody a suggestion what's wrong?
buffer.js:139
throw new TypeError('must start with number, buffer, array or string');
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:139:11)
at new Buffer (buffer.js:58:10)
at generateKey (/home/pi/nefit-easy-client/lib/encryption.js:13:26)
at new Encryption (/home/pi/nefit-easy-client/lib/encryption.js:21:13)
at Encryption (/home/pi/nefit-easy-client/lib/encryption.js:19:46)
at new NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:37:21)
at NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:22:51)
at Object.<anonymous> (/home/pi/nefit-easy-client/example/current-status.js:5:16)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:980:3
to test i entered
node example/current-status.js
the text bellow is what i get, anybody a suggestion what's wrong?
buffer.js:139
throw new TypeError('must start with number, buffer, array or string');
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:139:11)
at new Buffer (buffer.js:58:10)
at generateKey (/home/pi/nefit-easy-client/lib/encryption.js:13:26)
at new Encryption (/home/pi/nefit-easy-client/lib/encryption.js:21:13)
at Encryption (/home/pi/nefit-easy-client/lib/encryption.js:19:46)
at new NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:37:21)
at NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:22:51)
at Object.<anonymous> (/home/pi/nefit-easy-client/example/current-status.js:5:16)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:980:3
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™
You did not enter your serial, accesskey and password correctly. Also please note that the Nefit easy files mentioned in the first post are outdated. You need to use Nefit-easy-cli as a replacement
Re: Nefit Easy™
still won't work
installed nefit-easy-cli
then:
export NEFIT_SERIAL_NUMBER= "xxx xxx xxx"
export NEFIT_ACCESS_KEY="xxxx xxxx xxxx xxxx"
export NEFIT_PASSWORD= "xxxxx"
also tried the serial number and acces code without the spaces
installed nefit-easy-cli
then:
export NEFIT_SERIAL_NUMBER= "xxx xxx xxx"
export NEFIT_ACCESS_KEY="xxxx xxxx xxxx xxxx"
export NEFIT_PASSWORD= "xxxxx"
also tried the serial number and acces code without the spaces
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Nefit Easy™
You could try adding them as command line parameters. You must enter them without spaces Please provide the error
Re: Nefit Easy™
pi@raspberrypi ~/nefit-easy-client $ node example/current-status.js
buffer.js:139
throw new TypeError('must start with number, buffer, array or string');
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:139:11)
at new Buffer (buffer.js:58:10)
at generateKey (/home/pi/nefit-easy-client/lib/encryption.js:13:26)
at new Encryption (/home/pi/nefit-easy-client/lib/encryption.js:21:13)
at Encryption (/home/pi/nefit-easy-client/lib/encryption.js:19:46)
at new NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:37:21)
at NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:22:51)
at Object.<anonymous> (/home/pi/nefit-easy-client/example/current-status.js:5:16)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:980:3
buffer.js:139
throw new TypeError('must start with number, buffer, array or string');
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:139:11)
at new Buffer (buffer.js:58:10)
at generateKey (/home/pi/nefit-easy-client/lib/encryption.js:13:26)
at new Encryption (/home/pi/nefit-easy-client/lib/encryption.js:21:13)
at Encryption (/home/pi/nefit-easy-client/lib/encryption.js:19:46)
at new NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:37:21)
at NefitEasyClient (/home/pi/nefit-easy-client/lib/index.js:22:51)
at Object.<anonymous> (/home/pi/nefit-easy-client/example/current-status.js:5:16)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:980:3
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™
Could you just try the easy commandline utility like 'easy status'
Who is online
Users browsing this forum: Google [Bot] and 0 guests