Page 28 of 37
Re: Nefit Easy™
Posted: Tuesday 18 October 2016 8:58
by jannl
Since a month or so I also use overlayfs on my pi2, which makes it possible to pull th powerplug of the pi without that much risk.
Re: Nefit Easy™
Posted: Thursday 20 October 2016 11:03
by mvveelen
Ok,
I went ahead and deleted Domoticz from my Synology to start from scratch and see what is wrong with the Hot Water switch: why it keeps turning back on when I switch it off in Domoticz.
I installed Domoticz and added only the easy-server (using the IP address of the Synology and port 3001, that is the port I have the easy-server running on). No scripts, no events, just the default installation of Domoticz. The devices appear, the readings are OK.
So I added the on/off switch for the Hot Water and switched it off.......nothing happening in the Nefit Easy app on my phone. AND...after a few seconds....the switch turns back on.
So:
- nothing wrong with the Domoticz installation
- nothing wrong with the Domoticz DB
- nothing wrong with the LUA / Python scripts
- nothing wrong with the events
- nothing wrong with the easy-server (readings are OK), I also updated the easy-server to v2.2.0
So....what can be wrong here ??
Re: Nefit Easy™
Posted: Thursday 20 October 2016 11:43
by gizmocuz
Maybe the command is not send correctly from domoticz ? Maybe someone can debug this part? (with code debugging)
Re: Nefit Easy™
Posted: Thursday 20 October 2016 12:16
by mvveelen
If I knew how to do that myself, I would.
Some more info:
When I turn off the Clock program in the Nefit Easy app and switch off the Hot Water in Domoticz, it stays OFF in Domotic. It doesn't, however, switch off in the Nefit Easy app. Even when I wait a few minutes and restart the app, the How Water isn't switched.
So this is weird:
1. When the clock program is ON (I use the clock program 90% of the time), the switch from Domoticz is returned to ON when I switch it OFF.
2. When the clock program is OFF, the switch from Domoticz stays the way you switched it.
In both instances, the Nefit Easy app didn't switch the Hot Water.
Re: Nefit Easy™
Posted: Thursday 20 October 2016 12:25
by gizmocuz
I was not replying to you specifically...
Yep , as said, maybe domoticz sends the wrong command to the Nefit, so it does not switch
I can not test the switch.. when i disable the clock (clicking the hand icon (iOS), ), i do not see an option to turn off the hot water.
Clicking a second time on the hand... does not reveal the option to turn of the hot water.
Is this boiler specific ?
Re: Nefit Easy™
Posted: Thursday 20 October 2016 12:44
by mvveelen
I know, but maybe I could be of any help by testing / debugging. It seems I'm the only one with this problem? I'm using a Nefit boiler by the way.
Hmmm, I wouldn't know. In both cases when I click twice, I see the the option to turn ON or turn OFF the hot water.
Re: Nefit Easy™
Posted: Thursday 20 October 2016 15:23
by geezerrr
mvveelen wrote:I know, but maybe I could be of any help by testing / debugging. It seems I'm the only one with this problem? I'm using a Nefit boiler by the way.
Hmmm, I wouldn't know. In both cases when I click twice, I see the the option to turn ON or turn OFF the hot water.
Think this function only works if the shower timer works with the native Nefit/Bosche app.
turning off the hot water from a boiler is not possible. You can only switch of the refill of the boiler with hot water. Therefore you need an other switch. (Think not implanted yet).
I'm using a TopLine AquaPower Plus cw6 an see the same behavior.
Re: Nefit Easy™
Posted: Friday 21 October 2016 14:51
by felix63
Hi,
I'm trying to reinstall nefit-easy-http-server but run into problems:
sudo npm i nefit-easy-http-server -g
npm WARN install Couldn't install optional dependency: Error extracting /root/.npm/options/0.0.6/package.tgz archive: ENXIO: no such device or address, open '/root/.npm/options/0.0.6/package.tgz'
Does someone know how I could solve this?
Cheers,
Lex
Re: Nefit Easy™
Posted: Saturday 22 October 2016 9:14
by Kochmeister
Here I can still switch on / off the hot water.
However when using the on/off switch it seems to freeze / timeout once in a while.
My thermostat is always on manual mode, and I let my calander connected LUA do the switching of temperature and hot water.
For this way I think the CLI install is needed.
Code: Select all
os.execute ("easy hot-water-supply on --serial=xxxx--access-key=xxxx--password=xxxx")
If the CLI is not installed you can also swtich the hot water with:
Code: Select all
pi@raspberrypi:~$ easy put /dhwCircuits/dhwA/dhwOperationManualMode '{"value":"off"}' --serial=xxxx--access-key=xxx --password=xxxx
{"status":"ok"}
This is how to retreive current status:
Code: Select all
pi@raspberrypi:~$ easy get /dhwCircuits/dhwA/dhwOperationManualMode --serial=xxxx--access-key=xxxx--password=xxxx
{"id":"/dhwCircuits/dhwA/dhwOperationManualMode","type":"stringValue","recordable":0,"writeable":1,"value":"off"}
The switch off of the button is either a readout fault or something with the button.
I can make a button to switch the hot water, however I can not read the data from the nefit and feed this to a domoticz button.
If I understand correct you need to readout the nefit status with the above or with:
Code: Select all
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus
curl http://127.0.0.1:3000/bridge/dhwCircuits/dhwA/dhwOperationManualMode
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus
{"id":"/ecus/rrc/uiStatus","type":"uiUpdate","recordable":0,"writeable":0,"value":{"CTD":"2016-10-22T09:15:22+01:00 Sa","CTR":"room","UMD":"manual","MMT":"19.0","CPM":"auto","CSP":"38","TOR":"off","TOD":"0","TOT":"19.0","TSP":"19.0","IHT":"19.00","IHS":"ok","DAS":"off","TAS":"off","HMD":"off","ARS":"init","FPA":"off","ESI":"on","BAI":"No","BLE":"false","BBE":"false","BMR":"false","PMR":"false","RS":"off","DHW":"off","HED_EN":"false","HED_DEV":"false","FAH":"false","DOT":"false","HED_DB":""}}
I think Domoticz uses something like this
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus to read the nefit status?
The
DHW:off or on status is the one of interest here!
and this needs to be translated from json to lua into a button in Domoticz!
I am not handy enough for this, but if I can help in any way let me know.
By the way, you need to set warm water as in the picture to be able to switch on/off hot water.
Also in manual mode!!
- nefit_ww.png (53.12 KiB) Viewed 3445 times
Re: Nefit Easy™
Posted: Saturday 22 October 2016 15:44
by TheCrazyFox
Hello everyone,
I have a Raspberry Pi2 and want to check the temperature of my NefitEasy. I installed everything as discribed in the first post but everytime I run the easy programm I get the error "XMPP authentication failure". I run Raspbian Jessie. The command I use is: sudo ./easy -s=XXX -a=XXX -p=XXX status
Thanks, Tim
Re: Nefit Easy™
Posted: Saturday 22 October 2016 15:57
by SweetPants
I don't believe you can run the command like that
What if you set your environment to:
export NEFIT_SERIAL_NUMBER=<serialnumber>
export NEFIT_PASSWORD=<password>
export NEFIT_ACCESS_KEY=<accesskey>
./easy status
Re: Nefit Easy™
Posted: Saturday 22 October 2016 16:10
by TheCrazyFox
Thank you, I will try it
Re: Nefit Easy™
Posted: Saturday 22 October 2016 16:16
by TheCrazyFox
If I do that the programm says that there is no password. I think the variables are not correctly set with this command or they didn't exist. Output:
Error: missing password
Re: Nefit Easy™
Posted: Saturday 22 October 2016 21:05
by SweetPants
The variables are ok, copied them from my working installation.
how do you start the HTTP easy-server?
What happens if you start it manually using:
node /usr/bin/easy-server --host=127.0.0.1 --serial=<serialnumber> --access-key=<access key> --password=<password>
assuming you run it on the same server, and then execute
./easy status
Re: Nefit Easy™
Posted: Saturday 22 October 2016 21:45
by Holland
Thanks jannl. More testing is required apparently.
I did the following installed a new Pi3, version 3.5776 with just on device running, Nefit HTTP server
Will report back soon
Reporting back on the stability issue....
Nefit, and therefore Domoticz, is rock stable on the new install.
So, the problem is not Nefit related. Will have to look for other potential causes...
Re: Nefit Easy™
Posted: Sunday 23 October 2016 11:54
by juppetup
Hi all,
i installed Nefit-easy server: git clone
https://github.com/robertklep/nefit-easy-http-server
When i tested it with: easy-server --serial=12345678 --access-key=Youraccesskey --password=65432AB
it worked: i got devices in Domoticz!
But it only works in the shell: when i close the PuTTY-connection i don't get updates anymore in Domotcz.
So i tried to start the easy-server with PM2 (process manager) so it runs in the background.
I did: touch nefiteasyhttpserver.sh
Then i edited this file and put in:
#!/bin/bash
/usr/bin/easy-server --serial=12345678 --access-key=Youraccesskey --password=65432AB --host=127.0.0.1 >/dev/null
edit the attributes: chmod 755 nefiteasyhttpserver.sh
pm2 start /home/pi/nefiteasyhttpserver.sh
pm2 save
Then everything worked fine. BUT......
after a few days the devices became red in Domoticz and the Nefit-Easy app on my Cellphone could'nd make contact anymore with the Nefit-server!
I had to stop the easy-server job in PM2 wait a few moments and switch it on again! This has happenend now two times.
Anybody the same problems? Do i need to use a different method to run the easy-server in the background?
Hope anaybody can help,
regards,
Joop
Re: Nefit Easy™
Posted: Sunday 23 October 2016 20:30
by mvveelen
Kochmeister wrote:Here I can still switch on / off the hot water.
However when using the on/off switch it seems to freeze / timeout once in a while.
My thermostat is always on manual mode, and I let my calander connected LUA do the switching of temperature and hot water.
For this way I think the CLI install is needed.
Code: Select all
os.execute ("easy hot-water-supply on --serial=xxxx--access-key=xxxx--password=xxxx")
If the CLI is not installed you can also swtich the hot water with:
Code: Select all
pi@raspberrypi:~$ easy put /dhwCircuits/dhwA/dhwOperationManualMode '{"value":"off"}' --serial=xxxx--access-key=xxx --password=xxxx
{"status":"ok"}
This is how to retreive current status:
Code: Select all
pi@raspberrypi:~$ easy get /dhwCircuits/dhwA/dhwOperationManualMode --serial=xxxx--access-key=xxxx--password=xxxx
{"id":"/dhwCircuits/dhwA/dhwOperationManualMode","type":"stringValue","recordable":0,"writeable":1,"value":"off"}
The switch off of the button is either a readout fault or something with the button.
I can make a button to switch the hot water, however I can not read the data from the nefit and feed this to a domoticz button.
If I understand correct you need to readout the nefit status with the above or with:
Code: Select all
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus
curl http://127.0.0.1:3000/bridge/dhwCircuits/dhwA/dhwOperationManualMode
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus
{"id":"/ecus/rrc/uiStatus","type":"uiUpdate","recordable":0,"writeable":0,"value":{"CTD":"2016-10-22T09:15:22+01:00 Sa","CTR":"room","UMD":"manual","MMT":"19.0","CPM":"auto","CSP":"38","TOR":"off","TOD":"0","TOT":"19.0","TSP":"19.0","IHT":"19.00","IHS":"ok","DAS":"off","TAS":"off","HMD":"off","ARS":"init","FPA":"off","ESI":"on","BAI":"No","BLE":"false","BBE":"false","BMR":"false","PMR":"false","RS":"off","DHW":"off","HED_EN":"false","HED_DEV":"false","FAH":"false","DOT":"false","HED_DB":""}}
I think Domoticz uses something like this
curl http://127.0.0.1:3000/bridge/ecus/rrc/uiStatus to read the nefit status?
The
DHW:off or on status is the one of interest here!
and this needs to be translated from json to lua into a button in Domoticz!
I am not handy enough for this, but if I can help in any way let me know.
By the way, you need to set warm water as in the picture to be able to switch on/off hot water.
Also in manual mode!!
nefit_ww.png
I tried it with that setting, but still have the same problem. Also, I don't want it to be manual or a special program. It needs to follow the program and be overridden if we aren't home when we normally should be or so.
Re: Nefit Easy™
Posted: Friday 28 October 2016 23:02
by Holland
Robert published a new version (2.2 to 3.0.0) of the Nefit http server
What's new: Upgraded nefit-easy-commands and implemented command API endpoint
See;
https://github.com/robertklep/nefit-easy-http-server
Re: Nefit Easy™
Posted: Saturday 29 October 2016 10:33
by mvveelen
Just updated the easy-http-server and Domoticz hoping to get the warm water switch to work, but unfortunately it still doesn't work for me.
Any progress on debugging?
Re: Nefit Easy™
Posted: Saturday 29 October 2016 17:37
by Dutchsea
BartdaMan wrote: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!
Hi, can you post what you did differently compared to the Wiki? That should help me, and others, a lot.
Thx!