Hallo @KalleKnall, danke für deine Anleitung! Ich hänge mich hier mal rein und das ist auch schon genau das Stichwort. ICH HÄNGE!
Vorne weg: Ich hatte mit ESPHome noch keine Berührungspunkte, bin hier also völliger Noob.
Habe mir die die von dir genannten Komponenten gegönnt. Unterschied ich habe kein HomeAssistant laufen sondern einen iobroker. Soll hier aber nicht Thema sein, denn ich scheine schon deutlich vorher zu scheitern. Und mein GobelPack hängt an einem Victron-System via CAN.
Im github-Projekt ist ja beschrieben RX auf RX und TX auf TX. Ist ja eigentlich unüblich, passt das so?
Du benutzt am ESP32 die Pins auf einer Seite, richtig? habe sie im folgenden Screenshot mal markiert.
Du nutzt den RS485 Port direkt neben dem Can-Port?
Du hast die Adern für den RJ45-Stecker dem Screenshot entsprechend Pin1 = links beginnend aufgelegt?
Die Einstellungen auf dem BMS
<Param type="485" value="0" name="PACE_MODBUS" />
hab ich gemacht und natürlich gespeichert.
Wenn das alles passt, MUSS mein Problem softwareseitig liegen. Ich compile via ESPHome im iobroker und der schiebt das dann OTA per Wlan drauf. Als Logmode habe ich in der yaml "VERY_VERBOSE" eingestellt. Ich sehe dass er dort anfragt, aber keine Antwort erhält (so interpretiere ich das jedenfalls).
MQTT hatte ich auskommentiert und dafür den API-Teil reingenommen (aus meiner vorher compilten yaml).
was hast du denn unter esp32?
hier meins, wenn ich das hier so schreibe, könnte das vielleicht mein Fehler sein?
esp32:
board: esp32dev
framework:
type: arduino
Da mein DIP-Switch wie deiner auf "1" steht, habe ich unter modbus_controller_address: 0x01, passt das?
modbus_controller:
- id: bms0
# Slave address 0x01
address: 0x01
modbus_id: modbus0
command_throttle: 200ms
update_interval: 10s
sry, konnte den Logauszug nicht als "Code" einfügen:
[18:05:17][V][mdns:121]: TXT: network = wifi
[18:05:17][V][mdns:121]: TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256
[18:05:17][V][mdns:121]: TXT: project_name = syssi.esphome-pace-bms
[18:05:17][V][mdns:121]: TXT: project_version = 1.0.0
[18:05:17][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x00 count 8
[18:05:17][VV][uart.arduino_esp32:180]: Flushing...
[18:05:18][V][modbus:199]: Modbus write: 01.03.00.00.00.08.44.0C (8)
[18:05:18][V][modbus_controller:509]: Command sent 3 0x0 8
[18:05:18][C][ota:097]: Over-The-Air Updates:
[18:05:18][C][ota:098]: Address: esphome-web-f31cb0.local:3232
[18:05:18][C][api:139]: API Server:
[18:05:18][C][api:140]: Address: esphome-web-f31cb0.local:6053
[18:05:18][C][api:142]: Using noise encryption: YES
[18:05:18][D][uart_debug:114]: >>> 01:03:00:00:00:08:44:0C
[18:05:18][D][modbus_controller:043]: Modbus command to device=1 register=0x00 countdown=0 no response received - removed from send queue
[18:05:18][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x09 count 4
[18:05:18][VV][uart.arduino_esp32:180]: Flushing...
[18:05:18][V][modbus:199]: Modbus write: 01.03.00.09.00.04.94.0B (8)
[18:05:18][V][modbus_controller:509]: Command sent 3 0x9 4
[18:05:18][D][uart_debug:114]: >>> 01:03:00:09:00:04:94:0B
[18:05:18][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x09 count 4
[18:05:18][VV][uart.arduino_esp32:180]: Flushing...
[18:05:18][V][modbus:199]: Modbus write: 01.03.00.09.00.04.94.0B (8)
[18:05:18][V][modbus_controller:509]: Command sent 3 0x9 4
[18:05:18][D][uart_debug:114]: >>> 01:03:00:09:00:04:94:0B
[18:05:18][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x09 count 4
[18:05:18][VV][uart.arduino_esp32:180]: Flushing...
[18:05:18][V][modbus:199]: Modbus write: 01.03.00.09.00.04.94.0B (8)
[18:05:18][V][modbus_controller:509]: Command sent 3 0x9 4
[18:05:18][D][uart_debug:114]: >>> 01:03:00:09:00:04:94:0B
[18:05:18][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x09 count 4
[18:05:18][VV][uart.arduino_esp32:180]: Flushing...
[18:05:18][V][modbus:199]: Modbus write: 01.03.00.09.00.04.94.0B (8)
[18:05:18][V][modbus_controller:509]: Command sent 3 0x9 4
[18:05:19][D][uart_debug:114]: >>> 01:03:00:09:00:04:94:0B
[18:05:19][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x09 count 4
[18:05:19][VV][uart.arduino_esp32:180]: Flushing...
[18:05:19][V][modbus:199]: Modbus write: 01.03.00.09.00.04.94.0B (8)
[18:05:19][V][modbus_controller:509]: Command sent 3 0x9 4
[18:05:19][D][uart_debug:114]: >>> 01:03:00:09:00:04:94:0B
[18:05:19][D][modbus_controller:043]: Modbus command to device=1 register=0x09 countdown=0 no response received - removed from send queue
[18:05:19][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x0F count 22
[18:05:19][VV][uart.arduino_esp32:180]: Flushing...
[18:05:19][V][modbus:199]: Modbus write: 01.03.00.0F.00.16.F4.07 (8)
[18:05:19][V][modbus_controller:509]: Command sent 3 0xF 22
[18:05:19][D][uart_debug:114]: >>> 01:03:00:0F:00:16:F4:07
[18:05:19][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x0F count 22
[18:05:19][VV][uart.arduino_esp32:180]: Flushing...
[18:05:19][V][modbus:199]: Modbus write: 01.03.00.0F.00.16.F4.07 (8)
[18:05:19][V][modbus_controller:509]: Command sent 3 0xF 22
[18:05:19][D][uart_debug:114]: >>> 01:03:00:0F:00:16:F4:07
[18:05:19][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x0F count 22
[18:05:19][VV][uart.arduino_esp32:180]: Flushing...
[18:05:19][V][modbus:199]: Modbus write: 01.03.00.0F.00.16.F4.07 (8)
[18:05:19][V][modbus_controller:509]: Command sent 3 0xF 22
[18:05:20][D][uart_debug:114]: >>> 01:03:00:0F:00:16:F4:07
[18:05:20][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x0F count 22
[18:05:20][VV][uart.arduino_esp32:180]: Flushing...
[18:05:20][V][modbus:199]: Modbus write: 01.03.00.0F.00.16.F4.07 (8)
[18:05:20][V][modbus_controller:509]: Command sent 3 0xF 22
[18:05:20][D][uart_debug:114]: >>> 01:03:00:0F:00:16:F4:07
[18:05:20][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x0F count 22
[18:05:20][VV][uart.arduino_esp32:180]: Flushing...
[18:05:20][V][modbus:199]: Modbus write: 01.03.00.0F.00.16.F4.07 (8)
[18:05:20][V][modbus_controller:509]: Command sent 3 0xF 22
[18:05:20][D][uart_debug:114]: >>> 01:03:00:0F:00:16:F4:07
[18:05:20][D][modbus_controller:043]: Modbus command to device=1 register=0x0F countdown=0 no response received - removed from send queue
[18:05:20][V][modbus_controller:047]: Sending next modbus command to device 1 register 0x3C count 55
das ist jetzt nur ein kurzer Ausschnitt. Es werden noch mehr Register durchgegangen und loopt dann. Was dann "hintenraus" zum iobroker passiert, sollte an der Stelle hier noch egal sein. Ich würde erwarten im Log irgendwas zu sehen, das nach empfangenen Werten aussieht.
Würdest du deine *.yaml (wlan und api secret natürlich ausgeixxt, wenn dus überhaupt drin hast) zur Verfügung stellen damit wir unwissenden vielleicht spicken können?
Gruß eierbeifel