Page 11 of 37
Re: Nefit Easy™ thermostat support
Posted: Saturday 16 January 2016 20:45
by kraades
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
Re: Nefit Easy™
Posted: Sunday 17 January 2016 13:44
by jakkes72
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:
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]
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:
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 config with the nefit-easy-config:bd2a3479.8b63d starts ok.
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)
Re: Nefit Easy™
Posted: Sunday 17 January 2016 13:49
by pepijn
The XMPP errors occur when your Easy details (serial, access key, password) are incorrect. Maybe multiple easy configs are created
Re: Nefit Easy™
Posted: Sunday 17 January 2016 13:59
by jakkes72
i found how to remove it. Seems a bit hidden....
Re: Nefit Easy™
Posted: Sunday 17 January 2016 14:46
by mvveelen
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.
Re: Nefit Easy™
Posted: Sunday 17 January 2016 15:28
by pepijn
mvveelen 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.
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
Re: Nefit Easy™
Posted: Sunday 17 January 2016 15:31
by mvveelen
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
Fair enough, but how do I run it in the background....?
Nefit Easy™
Posted: Sunday 17 January 2016 15:34
by geezerrr
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!
Re: Nefit Easy™
Posted: Sunday 17 January 2016 16:13
by pepijn
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.
Nefit Easy™
Posted: Sunday 17 January 2016 16:16
by geezerrr
The "openhaardfunctie" would be nice as well.
pepijn wrote:Yes I know, the outside temp is already there does it work with the external sensor?.
Yes I have an external sensor.
Re: Nefit Easy™
Posted: Sunday 17 January 2016 16:21
by pepijn
geezerrr wrote:The "openhaardfunctie" would be nice as well
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'
Re: Nefit Easy™
Posted: Sunday 17 January 2016 16:22
by mvveelen
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 .... ?
Re: Nefit Easy™
Posted: Sunday 17 January 2016 16:23
by pepijn
mvveelen wrote:
For me the question remains: how can I run the server in the background on the Synology / RPi .... ?
nohup ./server &
Re: Nefit Easy™
Posted: Sunday 17 January 2016 16:34
by mvveelen
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.....
Re: Nefit Easy™
Posted: Sunday 17 January 2016 17:29
by marten
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
Re: Nefit Easy™
Posted: Sunday 17 January 2016 17:36
by pepijn
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™
Posted: Sunday 17 January 2016 18:42
by marten
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
Nefit Easy™
Posted: Sunday 17 January 2016 18:54
by pepijn
You could try adding them as command line parameters. You must enter them without spaces Please provide the error
Re: Nefit Easy™
Posted: Sunday 17 January 2016 19:00
by marten
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
Re: Nefit Easy™
Posted: Sunday 17 January 2016 19:55
by pepijn
Could you just try the easy commandline utility like 'easy status'