The german HAN Port is well documented. The public standalone Software for attaching HAN Port is called TRuDI. Technically, it’s an eth-network-interface with ipv4.
-
Description & Download of TRuDI: Transparenz- und Displaysoftware TRuDI - PTB.de
-
Public avail TRuDI Sourcecode:
git clone https://bitbucket.org/dzgtrudi/trudi-public.git -
Interface definition and documentation: GitHub - ZERYCON-GmbH/trudi-koala: TruDi-Erweiterung, um dem KoaLa Werte der HAN-Schnittstelle zur Verfügung zu stellen.
This also contains .nupkg files of implementations for several Smart Meter Gateway Vendors like:- Discovergy
- DrNeuhaus
- EFR
- EMH
- LandisGry
- PPC
The .nupgs contains NET6.0 assemblies. they contains the xsd-Files for field-mapping in Ressource-Section. - ThebenAG
The IP Network configuration of HAN Port is really stupid:
- it uses dedicated IP Adress (192.168.1.200/24) and the SMGW Administrator (in my case Schleswig-Holstein Netz AG struggles since 6 Months to activate the HAN Port in my home, fix the TAF assignments in my Power-contract and provide Credentials of my SMGW.
- Btw, the documentation for network configuration is still incorrect on several customer Webportals [e.g. SH-Netz, BW-Netz)
my conclusions till now:
-
TRuDI is working in a dedicated network (PC with IP 192.168.1.100 and HAN Port of SMWG with IP 192.168.1.200)
-
a dedicated Network device (maybe a docker container) with IP Adress on 192.168.1.x/24 can be used to communicate with the SMGW via HAN Port on the Home assistant Supervisor.
-
https is uses by SMGW without certificates. no WebUI is present and no login-form for authentication. The Web API requires basic authentication.
-
struggeling around by integrate HAN Port in my LAN on my firewall to run TRuDI from my PC within LAN. (SSH Portforwarding and also NAT ist not working)
-
maybe all SMGW Vendors in germany cook with the same water and any implementation of HAN Port will work with Home Assistant.
-
this is NOT a HAN Port: swedish energy providers may use a complete different approach for endcustomers by providing the P1 Protocol on RJ11 Jack ( GitHub - psvanstrom/esphome-p1reader: ESPHome custom component for reading P1 data from electricity meters.)