Hi everyone,
I managed to connect my Nibe VVM S320 with F2120-16 pump to my HA. I have to set count and precision on some sensors and have to figure out, how to display pump priority (heating/hot water) and status of ext. heater. Did anyone manage to send some commands to the pump? I am only getting reads.
David
wgumaa
(Waleed)
May 26, 2022, 8:58am
19
Hi David,
I see you were able to get all the values to display. I am having a slight problem with my set up.
I was able to connect and get the value of the outdoor temperature. But I cant do much with it! It shows up in sensors, but I get an exclamation mark next to it -
"This entity (‘sensor.nibe_outdoor_tempertature_bt1’) does not have a unique ID, therefore its settings cannot be managed from the UI. "
My nibe.yaml looks like this:
- name: Nibe
type: tcp
host: 192.168.88.220
port: 502
sensors:
- name: "Nibe - Outdoor Tempertature (BT1)"
device_class: temperature
state_class: measurement
unit_of_measurement: "°C"
data_type: int16
address: 1
count: 1
slave: 1
precision: 1
input_type: input
scale: 0.1
scan_interval: 30
Any help would be appreciated. (Newbie day 6)
Hi
Have a look at my .yaml I hope it helps you. There is more addresses you can use, just copy register from your Nibe pump to the USB.
I have managed to get all the sensor but I don’t have the knowledge to make any input to from HA. I think for the future the best way to connect it is thru MQTT service.
Check this topic: How to connect to Nibe heat pump without the cloud - #8 by yozik04
My nibe.yaml looks like this:
- name: "Nibe"
close_comm_on_error: true
delay: 5
timeout: 5
type: tcp
host: 192.168.0.0
port: 502
sensors:
- name: "Nibe_ZunanjaTemperatura_BT1"
unit_of_measurement: °C
address: 1
count: 1
slave: 1
precision: 1
input_type: input
scale: 0.1
- name: "Nibe_SobnaTemperatura"
unit_of_measurement: °C
address: 26
count: 1
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_SanitarnaVodaZgoraj_BT7"
unit_of_measurement: °C
address: 8
count: 1
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_DvizniVod_BT2"
unit_of_measurement: °C
address: 5
count: 1
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_PovratniVod_BT3"
unit_of_measurement: °C
address: 7
count: 1
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_SanitarnaVodaPolnjenje_BT6"
unit_of_measurement: °C
address: 9
count: 1
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_TipaloPretoka_BF1"
unit_of_measurement: l/m
address: 40
count: 1
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_HitrostCrpalke"
unit_of_measurement: "%"
address: 1636
count: 1
precision: 0
slave: 1
input_type: input
scale: 1
- name: "Nibe_FrekvencaKompresorja"
unit_of_measurement: Hz
address: 1803
count: 1
precision: 0
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_Uparjalnik_BT16"
unit_of_measurement: °C
address: 1622
count: 1
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_Power"
unit_of_measurement: kW
address: 1806
precision: 1
slave: 1
input_type: input
scale: 0.1
- name: "Nibe_FanSpeed"
unit_of_measurement: rpm
address: 401
count: 1
precision: 0
slave: 1
input_type: input
scale: 1
- name: "Nibe_VecSanitarneVode"
unit_of_measurement: ""
address: 225
count: 1
precision: 0
slave: 1
input_type: holding
scale: 1
- name: "Nibe_HotWaterDemand"
unit_of_measurement: ""
address: 56
count: 1
precision: 0
slave: 1
input_type: holding
scale: 1
- name: "Nibe_Defrost"
unit_of_measurement: ""
address: 1805
count: 1
precision: 0
slave: 1
input_type: input
scale: 1
- name: "Nibe_Prioriteta"
address: 1028
count: 1
precision: 0
slave: 1
input_type: input
scale: 1
- name: "Nibe_operating_mode"
address: 237
count: 1
precision: 0
slave: 1
input_type: holding
scale: 1
wgumaa
(Waleed)
May 26, 2022, 9:23am
21
Thanks I will add the other sensors once I figure out the unique ID issue. Did you use the lovelace entities card to get your readings?
wgumaa
(Waleed)
June 12, 2022, 4:59am
22
Got it working!!!
Has anyone been able to write to the heat pump?
I found out that there are not to many registers you can write to.
1 Like
OlaSBG
(OP)
August 31, 2022, 5:56pm
23
I have managed to enable “More hot water” through the following code.
switches:
- name: “Nibe - Extra Varmvatten”
write_type: holding # R/W
address: 697
slave: 1
command_on: 3
command_off: 0
Off=0
One time increase =2
3h=3
6h=6
12h=12
24h=24
48 hours = 48
4 Likes
wgumaa
(Waleed)
September 1, 2022, 7:15am
24
Nice Ola,
Did you add this to the “nibe” yaml file? Can you post a screenshot of your gui?
Which model heat pump? I can seem to find the 697 address in my list.
Awesome it also works with Nibe VVM S320!
The only thing that is now missing is to Set goal temperature of room sensor.
a-back
(Marcel)
September 5, 2022, 12:08pm
27
Cool, thanks for sharing!
Has anyone managed to write/control the electric booster heater (for warm water)?
I can read it but I‘d like to control it in relation with my PV to heat water mostly when PV is generating enough electricity. I know the sg-ready can take care of this but I‘d like HA to control the logic and write to the Nibe via modbus
wgumaa
(Waleed)
September 8, 2022, 12:02pm
29
Dear Ola,
I copied the switch setting and modified my nibe yaml to include the top part.
Got and error on reboot:
2022-09-08 14:55:49.907 ERROR (MainThread) [homeassistant.config] Unknown error calling modbus CONFIG_SCHEMA
File “/usr/src/homeassistant/homeassistant/components/modbus/validators.py”, line 224, in duplicate_modbus_validator
2022-09-08 14:55:49.926 ERROR (MainThread) [homeassistant.setup] Setup failed for modbus: Invalid config.
modbus:
type: tcp
host: 192.168.88.220
port: 502
name: "Nibe"
delay: 10
# Close_comm_on _error: true
retry_on_empty: true
retries: 3
timeout: 15
message_wait_milliseconds: 500
line 224 is the scan part:
unique_id: "hotwater_top_BT7"
device_class: temperature
state_class: measurement
unit_of_measurement: "°C"
data_type: int16
address: 8
count: 1
slave: 1
precision: 1
input_type: input
scale: 0.1
scan_interval: 30
Any ideas?
OlaSBG
(OP)
September 8, 2022, 6:27pm
30
Have you tried writing exactly like me with spaces at the beginning of the lines?
You seem to have a different code, in mine there is no scan.
wgumaa
(Waleed)
September 13, 2022, 9:06am
31
Yes, but it doesn’t like the “modbus part” of the code.
modbus:
type: tcp
host: 192.168.88.220
port: 502
name: "Nibe"
delay: 10
# Close_comm_on _error: true
retry_on_empty: true
retries: 3
timeout: 15
message_wait_milliseconds: 500
wgumaa
(Waleed)
September 13, 2022, 11:03am
32
Ok I got it working with my original configuration! Great!!!
type: tcp
host: 192.168.88.220
port: 502
name: "Nibe"
sensors:
# Switches
switches:
- name: "More Hot Water"
unique_id: "More Hot Water"
write_type: holding # R/W
address: 697
slave: 1
command_on: 3
command_off: 0
I removed the scan intervals from the other entries and added the “unique id”
Works well!
Now we need to find others like Hot Water Demand, Heating Curve Offset and Operating Mode!
1 Like
wgumaa
(Waleed)
September 19, 2022, 5:42am
33
Any one got other registers they can write to?
1 Like
birdman86
(Wopall)
September 25, 2022, 11:18pm
34
Thanks guys!
Works great with my S320.
I tested other address, such as 56 for “Hot Water Demand” and it works great.
2 Likes
SebboRR
(Sebastian)
September 26, 2022, 5:55pm
35
Heating curve, climate system 1
address: 26
values: from 0 - 15
Heating curve offset, climate system 1
address: 30
values: from -10 - +10
But I don’t know how to increse or decrese the value of these registers with a switches
2 Likes
wgumaa
(Waleed)
September 26, 2022, 7:03pm
36
Thanks Sebastian,
I have the registers and can read them, but creating a switch is what I am looking for.
wgumaa
(Waleed)
September 26, 2022, 7:07pm
37
this is what my set up looks like. Would like to be able to manage the offset and operating mode.
Then i will be happy
1 Like
a-back
(Marcel)
September 27, 2022, 5:50am
38
This looks great! Would you mind sharing your entire config for the modbus setup accessing your Nibe?