Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by FireWizard »

Hi

I can confirm, that you can safely upgrade to (at least) the latest stable release 2.0.0, released 29-08-2020.

There are a few things, that you should be aware of.

As I started with version 1.9.6b0, I switched back in the "Update Firmware" to the "Stable release" and pressed the "Download" button.
The hardware from @bbqkees is based on ESP8266, but you get the suggestion to download EMS-ESP-esp32.bin.

So look out, that you download the correct version.
See: https://github.com/proddy/EMS-ESP/releases

Download the file EMS-ESP-esp8266.bin and browse to the download location. Select the file EMS-ESP-esp8266.bin and press "Update".
You should see, that the file is uploaded and the connection to the device will be closed.

In the README.md file is written:
EMS-ESP will attempt to automatically migrate the 1.9 settings.
This did not work for me. I hoped that the settings would have been converted, that I could refresh the browser and that I would be able to log in into the new interface. Perhaps I was too impatient, but when I refreshed the browser after approx. 2 minutes, I was not able to log in.
It turn out that a new network has been created, called ems-esp. So the device was in "access point mode". With a laptop or tablet you can easy connect to this network.

You have to follow the guidelines as described under: Setting EMS-ESP up for the first time
at: https://github.com/proddy/EMS-ESP

Following steps has to be taken:

1. Connect to the network "ems-esp", with the password "ems-esp-neo" (without " ").
2. Browse with you browser to http://ems-esp and log in with username/password as admin/admin.

Now you can configure your original network settings.

Having done that, restart your device and wait until it is connected to your local LAN.
Now your are able to log in with e.g. a desktop computer to the IP address, previously configured and finish the configuration.
So, it is important to note down your configuration settings, as it turned out that it has not been converted. So you have to configure your device again.

Important is, and it is written on several places, that the topic published has been changed to ems-esp instead of home/ems-esp
Breaking change: The MQTT base has been removed in version 2. The hostname is only used as prefixed to the topic, e.g. ems-esp/status.
Screenshot_ems-esp.png
Screenshot_ems-esp.png (7.29 KiB) Viewed 2280 times

It turned out that if the topic in Domoticz equals ems-esp, it is not functioning. Be aware to use ems-esp/ (with trailing forward slash).

Another thing to remember is, that, if you use this topic elsewhere, e.g. In Node Red, in order to control your thermostat with Google Assistant, you have to change it also there.

With these steps, I have been able to update to version 2.0.0 (stable release). I don't think for the moment there is a need to return to the beta channel and to update to the latest beta.

Regards
Last edited by FireWizard on Friday 04 September 2020 11:30, edited 5 times in total.
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by bbqkees »

Please wait a bit longer before updating to V2 via the web interface. Apparently it does not work for everyone.
Updating by installing the bin file via Platform I/O or ESPTool does work of course.
Check the following page for the latest information: https://bbqkees-electronics.nl/wiki/gat ... to-v2.html
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by bbqkees »

So I ran a number of tests last night and its mostly safe to update the Gateway to V2.0 via the web interface.
I have tested it with the Wemos powered via USB and when its on the Gateway board in bus powered mode.
It also worked fine on the Wemos D1 Mini V2 clone chip which was used on the very first Gateways.

Just make sure you do not upload the wrong bin file!
Settings currently do not migrate from 1.9.5 to V2 so you are going to start fresh.

Just follow the instructions in the wiki: https://bbqkees-electronics.nl/wiki/gat ... to-v2.html
(You might have to refresh the page to show the updates of 4 September.)

If you brick the Wemos then you can still update via the simple NodeMCU flashtool and if that fails via ESPTool or Platform I/O.
If you do not know how to do it, you can also order a drop-in replacement Wemos preloaded with V2 firmware from the webshop.

If you have questions send me an email via the contact form in the webshop: https://bbqkees-electronics.nl/contact/
PM's here might not be answered fast.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by bbqkees »

Most issues with updating the firmware from 1.9.5 to 2.0 are ironed out.

I just released the 1.2 version of the Domoticz plugin which is compatible with the new 2.1 EMS-ESP firmware.
So if you already installed the plugin before, run

Code: Select all

git pull
in the ems-esp-domoticz-plugin directory to sync all changes.

I decided not to specifically support firmware 1.9.5 in the plugin, so please update the firmware to 2.1.

If you are missing parameters or you encounter problems just open an issue on the repository.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
niki_lauda
Posts: 117
Joined: Saturday 31 August 2013 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Eindhoven (NL)
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by niki_lauda »

FireWizard wrote: Tuesday 01 September 2020 19:59
Breaking change: The MQTT base has been removed in version 2. The hostname is only used as prefixed to the topic, e.g. ems-esp/status.

Screenshot_ems-esp.png


It turned out that if the topic in Domoticz equals ems-esp, it is not functioning. Be aware to use ems-esp/ (with trailing forward slash).
Where can I change this?
I'm using EMS-ESP v2.1.0.. Its working. Broker is alive and kicking out messages but domoticz not picking up the messages.

ems-esp/boiler_data {"heatingActive":"off","tapwaterActive":"off","selFlowTemp":35,"selBurnPow":58,"curBurnPow":0,"pumpMod":70,"curFlowTemp":31.1,"retTemp":30.5,"switchTemp":0,"sysPress":2.2,"boilTemp":31.2,"burnGas":"off","flameCurr":0,"heatPump":"on","fanWork":"off","ignWork":"off","heatingActivated":"on","heatingTemp":35,"pumpModMax":84,"pumpModMin":70,"pumpDelay":6,"burnMinPeriod":10,"burnMinPower":0,"burnMaxPower":73,"boilHystOn":-6,"boilHystOff":6,"UBAuptime":4925402,"burnStarts":128679,"burnWorkMin":990537,"heatWorkMin":968440,"serviceCode":"0Y","serviceCodeNumber":204}
ems-esp/boiler_data_ww {"wWComfort":"Eco","wWSelTemp":50,"wWSetTemp":50,"wWDisinfectionTemp":70,"wWType":"buffer","wWChargeType":"3-way valve","wWCircPump":"on","wWCircPumpMode":"2x3min","wWCirc":"off","wWCurTemp":31.5,"wWCurFlow":0,"wwStorageTemp1":31.5,"wWActivated":"on","wWOneTime":"off","wWDisinfecting":"off","wWCharging":"off","wWRecharging":"off","wWTempOK":"on","wWActive":"off","wWHeat":"off","wWStarts":23150,"wWWorkM":22097}
ems-esp/thermostat_data {"time":"11:24:10 08/11/2020","errorcode":"(0)","hc1":{"seltemp":20.5,"currtemp":20.6,"mode":"manual"}}
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by FireWizard »

Hi @niki_lauda,

If you go to the Setup > Hardware, Select your EMS-ESP plugin of BBQKees.

At the bottom you will find the "Topic base".

See screenshot below.

Screenshot_EMS-ESP1.png
Screenshot_EMS-ESP1.png (216.07 KiB) Viewed 2098 times
Regards
Last edited by FireWizard on Sunday 08 November 2020 18:14, edited 1 time in total.
niki_lauda
Posts: 117
Joined: Saturday 31 August 2013 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Eindhoven (NL)
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by niki_lauda »

thx.
akamming
Posts: 359
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit / Buderus data/control via Arduino / ESP8266 to Domoticz (directly without OpenTherm module or Easy)

Post by akamming »

My old boiler (cv ketel) is starting to fail, so i have to replace with another one. But since i also am automating a lot of stuff it would be nice if i can change stuff using domoticz as well. E.g. in a scene which i want to activate when i use my wood stove i do not just want the lighting to be changed, but also to have the CV control change from room based to climate based ("weersafhankelijke regeling") heating.

I am thinking of getting a Nefit boiler (trendline II aquapower) with Easycontrol as thermostate, which both use the EMS protocol. In the nefit app this setting can easlily be changed, but is this use case also possible using the solution made by bbkees?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest