Nefit Easy™

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

Moderator: leecollings

jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Nefit Easy™

Post 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.
User avatar
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™

Post 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 ??
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Nefit Easy™

Post by gizmocuz »

Maybe the command is not send correctly from domoticz ? Maybe someone can debug this part? (with code debugging)
Quality outlives Quantity!
User avatar
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™

Post 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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Nefit Easy™

Post 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 ?
Quality outlives Quantity!
User avatar
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™

Post 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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
geezerrr
Posts: 79
Joined: Tuesday 02 December 2014 22:16
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Nefit Easy™

Post 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.
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Nefit Easy™

Post 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
Kochmeister
Posts: 17
Joined: Wednesday 24 February 2016 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Nefit Easy™

Post 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
nefit_ww.png (53.12 KiB) Viewed 3437 times
TheCrazyFox
Posts: 3
Joined: Saturday 22 October 2016 15:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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
SweetPants

Re: Nefit Easy™

Post 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
TheCrazyFox
Posts: 3
Joined: Saturday 22 October 2016 15:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy™

Post by TheCrazyFox »

Thank you, I will try it
TheCrazyFox
Posts: 3
Joined: Saturday 22 October 2016 15:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy™

Post 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
SweetPants

Re: Nefit Easy™

Post 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
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post 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...
juppetup
Posts: 14
Joined: Monday 14 March 2016 21:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Groningen
Contact:

Re: Nefit Easy™

Post 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
User avatar
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™

Post 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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post 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
User avatar
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™

Post 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?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
User avatar
Dutchsea
Posts: 116
Joined: Tuesday 08 December 2015 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version: v2023.2
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post 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!
Raspberry PI 3B on USB drive, Debian version: 12 (bookworm), Domoticz 2023.2
Aeon Z-Wave G5 stick, RFXCOM, Sonof Zigbee 3.0 Dongle plus E, Nefit Easy, Fritzbox, Buienradar, Sonos
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest