-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hi!
I'm trying to connect my Nibe F1245 via NibeGW using a LilyGo T-CAN485 v1.1 board. Data is clearly flowing into the ESP32 when MODBUS is activated on the heat pump, but the packets seem to get corrupted/misread, causing Home Assistant to throw "Error on read request".
error message from HA nibe heat pump integration "Fel på läsförfrågan från pumpen. Verifiera din "Fjärrläsningsport" eller "Fjärr-IP-adress"
reapeated tries multible times but alway end up with the red light below the display in the end.
Build Environment:
I was unable to compile the project via the ESPHome Add-on inside Home Assistant due to dependency/versioning issues. Instead, the compilation and flashing was successfully done locally on my Windows machine using VS Code.
The Logs:
As soon as the heat pump communicates, the VS code terminal starts roling: Here is a snippet from the log:
......
[16:21:56.520][D][nibeGW:097]: Ignoring byte D4
[16:21:56.524][D][nibeGW:097]: Ignoring byte BF
[16:21:56.530][D][nibeGW:097]: Ignoring byte 29
[16:21:56.542][D][nibeGW:097]: Ignoring byte FF
[16:21:56.542][D][nibeGW:097]: Ignoring byte 69
[16:21:56.547][D][nibeGW:097]: Ignoring byte 00
.....
This starts and stops when modbus is toggled from nibe display.
Heat Pump: Nibe F1245 (Firmware 7740R4).
Board: LilyGo T-CAN485 (v1.1), powered by an isolated 5V USB wall charger. Connected to AA3-X4 (GND, A, B).
Network: Home Assistant OS is running in VirtualBox on a Windows host (Bridged Adapter, so no NAT blocking). Pinging the LilyGo from inside the HA console fuctions.
The ESPHome Config:
To be as transparent as possible, I have split my config into two parts below. The first part is copied straight from the lilygo-t-can485.yaml example in this repository. The second part is what I have added to make the UDP gateway work.
Yaml
---------------------------------------------------------
PART 1: OFFICIAL CODE FROM ELUPUS' GITHUB EXAMPLE
---------------------------------------------------------
external_components:
- source: github://elupus/esphome-nibe@master
output:
- platform: gpio
id: ENABLE_PIN
pin:
number: GPIO19
inverted: true - platform: gpio
id: SE_PIN
pin:
number: GPIO17
inverted: true - platform: gpio
id: ENABLE_5V_PIN
pin:
number: GPIO16
inverted: true
uart:
id: modbus_uart
rx_pin: GPIO21
tx_pin: GPIO22
baud_rate: 9600
---------------------------------------------------------
PART 2: CODE ADDED BY ME FOR WIFI & NIBEGW
---------------------------------------------------------
wifi:
ssid: "airport"
password: "***"
power_save_mode: none
nibegw:
uart_id: modbus_uart
Note: dir_pin is intentionally omitted here because the SE_PIN (GPIO17)
above handles the hardware auto-direction for the LilyGo chip.
udp:
target:
- ip: 192.168.38.118
port: 9999
My Question:
is it ok to run the HA nibe heat pump in a vitual mashine?
Any pointers on how to get the handshake working would be highly appreciated!