I gave up on the WIFI stick and manage to get the Esphome modbus to work.
I’ve made integration through Solarman addon (HACS) for my hybrid AF5K-SL. I’ve added Afore registers from XLS file on this topic. So far my improvements have not been accepted in the main repository of the Solarman addon: Add afore hybrid 1ph inverter by ozzzi · Pull Request #592 · StephanJoubert/home_assistant_solarman · GitHub.
But you can make afore inverter definition manually.
Also I’ve adopted Sunksynk-flow-power-card for my Afore inverter: GitHub - ozzzi/afore-power-flow-card
Salve ragazzi, scrivo in italiano perchè mi viene più semplice.
Sl sito da voi elencato non mi fa loggare con il numero del mio inverter.
Il mio inverter è un modello recente da 5kw. Senza batterie.
Come faccio ad integrarlo in home assistant?
Grazie a ci mi aiuterà.
Non ho molta eserienza
Hello everyone.
I got in touch with Afore HQ and they sent to me the complete modbus mapping, included also the battery real-time data:
https://drive.google.com/drive/folders/1n_oOIYACVeDx61yN-tso1y2nfzXqpoG7?usp=sharing
Using the custom HA integration developed by StephanJouBert (GitHub - StephanJoubert/home_assistant_solarman: Home Assistant component for Solarman collectors used with a variety of inverters.) i’ve been able to read some values. Afore inverter isn’t officially supported by thys integration, but with the modbus mapping is possible to map all the inverter data defining a custom_parameters.yaml with all the modbus calls. Here a rapid example made for read the battery SOC, total AC Power output and total PV Power:
requests:
- start: 0x07D2
end: 0x07D2
mb_functioncode: 0x04
- start: 0x020A
end: 0x022A
mb_functioncode: 0x04
parameters:
- group: Solar
items:
- name: "Total Power PV"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 3
registers: [0x0022A,0x0229]
icon: 'mdi:solar-power'
- group: Grid
items:
- name: "Total Active Power AC"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 4
registers: [0x0020B,0x020A]
icon: 'mdi:transmission-tower'
- group: Battery
items:
- name: "Battery SOC"
class: "battery"
state_class: "measurement"
uom: "%"
scale: 1
rule: 1
registers: [0x07D2]
icon: 'mdi:battery'
Hi everyone, I have an Afore AF3 6K-SL inverter, what is the best method to integrate it on HA? Who can explain to me how to do it? Many thanks!
hi, your code works, can you pass me the complete code please? Thank you
I found the Exceedconn plug on eBay and wired up the RS485 pair to a USR-TCP232-306 device. I then write some code to read modbus (RS485) registers in the Afore inverter via Ethernet commands to the TCP232 device.
Hello everyone! I have an Afore HNS8000TL inverter. After much suffering, I decrypted a 206 byte TCP packet sent to a Solarman server
50ff205c994d Destination mac address
123456789abc Inverter mac address
0800 Pv4 frame type
45 Version (IPv4) and header length
0000c00 Total packet length (192 bytes)
74e Fragmentation identifier
0000 Flags (fragmentation disabled)
ff Time to live (TTL = 255)
06 Protocol (TCP)
628b Header checksum
c0a80193 Source address 192.168.1.147
2f5b5fc8 Destination address 47.91.95.200
4efd Source Port 20221
2710 Destination Port 10000
00003c06 Sequence number
a7491a3e Acknowledgment number
5018 Flags (PSH, ACK) and window size (1316)
05dc70fa Checksum
0000a58b Urgent pointer
-------------------------- Data ------------------------
001042 fixed
a5a6
135e1c2a01041e fixed
1ea6
a104 fixed
db39
00005130
686301009
c910000
53343238303030303331383431313036 S428000031841106 Serial number
5601 0156=342 34.2C Inverter temp
440f 440F=3908 390.8v DC1 voltage
f20d 0df2=3570 357.0v DC2 voltage
1300 0013=19 1.9A DC1 current
1100 0011=17 1.7A DC2 current
4900 0049=73 7.3A AC current
0000 Fast phase 2
0000 Fast phase 3
d807 07d8=2008 200.8v AC voltage
0000 Fast phase 2
0000 Fast phase 3
7513 1375=4981 49.81 Hz AC frequency
4b05 054B=1355 1.335kW Total AC Output Power (Active)
0000
b501 01B5=437 4.37kWh Daily Production (Active)
0000
2b00 002b=43 4.3kWh Cumulative Production (Active)
0000
0400 0004=4 4h Total Running Hour
0000
0100 0001=1 Soon Inverter status:Grid connected
0000
0000 0000=0 More like Alert Code
3801 0138=312 31.2C Radiator temp
f80e 0EF8=3832 383.2v PBUS Voltage
303034313830313532 004180152
000000000000000000000000000000000000000000000000000000000000000a201000098000000d0000000 fixed
04
15 fixed
Then, after long discussions with cahtgpt.com and copilot, I created a script that transmits readings via MQTT to Home assistant