Skip to content

add IT CEI 0-21 grid profile - #3332

Open
m4r1k wants to merge 1 commit into
tbnobody:masterfrom
m4r1k:gridprofile-it-cei021
Open

m4r1k wants to merge 1 commit into
tbnobody:masterfrom
m4r1k:gridprofile-it-cei021

Conversation

@m4r1k

@m4r1k m4r1k commented Nov 19, 2026

Copy link
Copy Markdown

I have two Hoymiles HMS-1600-4T and HMS-2000-4T inverters, set to CEI 0-21 (Italy) using the official Hoymiles DTU. OpenDTU shows the profile as "Unknown".

This patch, written with the help of Claude:

Raw profile from /api/gridprofile/rawdata:

[8,0,32,0,0,11,8,252,7,163,0,15,9,226,0,30,1,89,0,20,10,85,0,20,9,226,16,3,19,136,19,116,0,1,19,156,0,1,18,142,0,10,20,30,0,10,32,0,0,1,48,3,11,184,9,226,7,163,19,146,19,126,64,0,0,33,0,33,80,1,0,1,19,156,3,1,0,33,0,0,96,0,0,1,9,226,9,236,39,16,128,1,0,0,8,22,1,44,8,68,9,180,9,226,1,44,0,30,144,0,0,1,0,100,176,1,0,0,1,244,0,95,9,111,8,252,112,0,0,1,160,2,0,0,0,0,68,34]

Add profile type 0x08 0x00 (IT_CEI0-21) and the Watt Power Factor
section version 0x01, which carries two additional voltage values
(lock-in / lock-out voltage of the cos phi(P) curve).

Also fix getSectionStart() returning the last table index instead of
-1 for unknown section versions, which produced an empty section
followed by garbage values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant