Daikin homehub integration
Is your feature request related to a problem? Please describe. Daikin has developed a “homehub” to make a modbus integration with their heat pumps (for instance the daikin altherma 3).
Describe the solution you'd like Integration with modbus is a more reliable and advanced way to integrate instead of the SG contacts. This way you can modulate the consumed power and get information back from the device. The modbus protocol and prameters are well described by Daikin and other solutions like Loxone are already capable.
Describe alternatives you've considered Using SG relay contacts
Additional context
If you have the register description you can build a tempalte. Note this is nothing the core team will be working on.
Das Modbus IF/die Register sind im folgenden Installationshandbuch im Kapitel 9 beschrieben:
https://www.daikin.de/content/dam/document-library/Installer-reference-guide/heat/accessories/ekrhh/EKRHH_Installer%20reference%20guide_4PDE744838-1D_German.pdf
EKRHH_Installer reference guide_4PEN744838-1D_English.pdf
Correct. I think the way it should be done is using the SG indicator (register 56) and setting the power limit (register 57). I think the rest of the parameters should be left as-is. The home owner should use the Daikin user interface to set the rest of the parameters (f.i. permission to use the heater element, room buffering y/n, comfort temp limit).
And for return back to evcc it would be useful to have the actual room temp (50), boiler temp (43), and the power usage (51). And the errors for logging (22).
Edit: added the English version of the document, chapter 9 is the scenario that is relevant in this matter.
Looking at the existing templates I think we need a new kind of combination between setting the maximum available solar power (like Kermi) and the SG ready template (like Stiebel Eltron). I'm not familiar with the Go programming language, maybe some community member can think with us on this?
The Daikin home hub also has a Modbus address to lookup the 3-way valve setting (register 37). With that we should be able to decide automatically if we show the boiler temperature or the room temperature (in case the unit is performing room buffering).
In the case of Stiebel Eltron, a different mapping and channel setting is used for activating the smart grid mode: multiple channels must be set. In case of Daikin, only channel 56 is needed. 0 = normal, 1 = forced off (might be useful for dimming § 14a EnWG), 2 = Recommended on (this is what we need for our PV), 3 = Forced on.
@tbiest we can add this as optional enhancement to the SG Ready charger. Before I'd start working on this I'd like to see there's a working SG ready implementation for this WP though. The power recommendation is optional, so we can do this afterwards. To you want to try a template?
Hello @andig agreed, let's first set up the basic template and validate it against a real Daikin homehub. Below is the idea I have so far, based on existing templates and the Daikin manual. You indicate that the power limitation is optional. I included it in the idea below, I'm not sure it is supported already?
`template: daikin-homehub products:
- brand: Daikin description: generic: Daikin-HomeHub (SG Ready) group: heating
params:
- name: modbus choice: ["tcpip"]
- name: tempsource
type: choice
choice: ["warmwater", "buffer"]
description:
de: "Temperaturquelle"
en: "Temperature source"
render: |
type: sgready
getmode:
source: map
values:
0: 2 # Normal
1: 1 # Forced off
2: 3 # SG recommended on
3: 3 # SG forced on
get:
source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 55
type: input
encoding: int16
setmode:
source: switch
switch:
- case: 2 # normal
set:
- source: const value: 0 set: source: modbus {{- include "modbus" . | indent 10 }} register: address: 55 type: writeholding encoding: int16
- case: 3 # boost
set:
- source: const value: 2 set: source: modbus {{- include "modbus" . | indent 10 }} register: address: 55 type: writeholding encoding: int16
- case: 1 # dimm
set:
- source: const
value: 1
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 55
type: writeholding
encoding: int16
{{- if .tempsource }}
temp:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: {{ if eq .tempsource "warmwater" -}} 42 {{ else }} 49 {{- end }}
type: input
encoding: int16
scale: 0.1
{{- end }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 50
type: input
encoding: int16
scale: 0.1
setmaxpower:
timeout: 30s
set:
source: modbus {{- include "modbus" . | indent 4 }} register: address: 56 # PV surplus power type: writeholding decode: int16 scale: 10.0 `
- source: const
value: 1
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 55
type: writeholding
encoding: int16
{{- if .tempsource }}
temp:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: {{ if eq .tempsource "warmwater" -}} 42 {{ else }} 49 {{- end }}
type: input
encoding: int16
scale: 0.1
{{- end }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 50
type: input
encoding: int16
scale: 0.1
setmaxpower:
timeout: 30s
set:
- case: 2 # normal
set:
Can you please open a PR and make sure to test the tempalte?
@andig yes I will do that. It will take some time before I have time available but you will see the PR after testing.
See pull request #21209
It was tested using Modbus server pro on local LAN since my HomeHub is not installed yet. It is tested against mockup data based on the Daikin documentation.
Next step would be to be able to set the max power based on PV.
And maybe to disable the slider for the temperature setting (it is not useful). Instead, we could show the user the target comfort room temperature (daikon will try to buffer to this temperature) and/or the target hot water temperature. In the current configuration screen the user can choose the temperature source. I think the Daikin home hub can set that dynamically using the appropriate modbus register. The heat pump decides what source it will heat (roombuffer or hot water).
My Home Hub should be operational in a couple of hours. If you want to test something, just let me know. I have a multi spilit system with 5 indoor units.
Hi @Raudi1 that would be awesome. I don't know if you are able to setup the template in a test environment at your site? Otherwise, maybe we can do some custom tests in your evcc.yaml. F.i. test the connection and see if we can get the consumed power by configuring the device as a modbus power meter?
It's all installed and I can control it with the custom Home Assistant integration. If you want me to test something, I can do it for you next week. I only have Windows or the homeassistant OS server.
Hi @Raudi1
In the attachment you will find the additions for your evcc.yaml. I extracted the code snippets from the draft template to test.
You need to replace the ip-address with your own instead of the 192.168.2.11 address that my mockup server uses. Also, I assume your unit ID is 1 and you use the 502 port (otherwise replace this also).
You need to add the home hub to the loadpoints and to the chargers section.
If all is well, it will show up nicely and display the power and temperature of the room. I'm curious if it works and if the scaling of the measurements are correct.
See https://github.com/evcc-io/evcc/blob/master/CONTRIBUTING.md#device-templates for testing templates.
#21298 merged pull request
I took a look at the merged template. In its current state it doesn't make any sense for my case. I only have air conditioning units and no boiler (use case 4 in the Daikin manual). So there's no water temperature for me etc. and I would need to use different registers. What is possible in my case is to limit the power draw directly via holding register 1002. So it would be possible to set that value to the pv surplus value.
Yes the power limit would be great, also for my Smart Grid case. In the discussions I read that this feature will be added for the SG Ready templates in the future. Register 57 will be the one used for power limit during Smart Grid. That will differ from your case.
The template would need different registers depending on use cases, or at least a disclaimer about it being limited to a certain use case.
Yes I agree. By the way, are you sure that you have the article "EKRHH" from Daikin? The modbus registers on that device are harmonized between the supported devices (Altherma3 H HT, 3 H MT, 3 R, 3 R MT and 3 M). For Airco units, you probably use another hub type then? It would be good to let evcc users know what units are compatible and how you can see what hardware is installed in your home/business.
Yes, I have the same device. My use case is even mentioned in the same manual you linked above. The Home Assistant integration also has a checkbox for air to air systems and just gives me the ability to set the SG mode and to limit the power. So everything as it should be according to the manual. There it also only lists two registers for my use case as you can see below:
The manual also states for use case 3:
In this mode the Daikin HomeHub is used to control the Daikin Altherma heat pump from a home automation or home energy management (HEM) system through a local interface.
And for use case 4
This use case provides Smart Grid (SG) and Demand Control functionality for air-to- air heat pumps. This makes it possible for energy utilities to communicate with air- to-air heat pumps.
I only have the home hub because of §14a compliance in Germany. But I'm thinking about removing it, since I can control the AC units directly.