Skip to content

Fix new devices on restart, if serial not yet available.#24

Merged
KoljaWindeler merged 1 commit intoKoljaWindeler:masterfrom
shivan:master
Mar 19, 2026
Merged

Fix new devices on restart, if serial not yet available.#24
KoljaWindeler merged 1 commit intoKoljaWindeler:masterfrom
shivan:master

Conversation

@shivan
Copy link
Contributor

@shivan shivan commented Mar 12, 2026

This is how I fixed the extra devices. At least for me I did not get any duplicated devices since some restarts.

So this could solve #23

But you first have to cleanup once, or you'll get a third device ;-)

@cofade
Copy link

cofade commented Mar 18, 2026

This is the right fix. The core problem is that the old code tied the unique_id to data that isn't available yet at startup, so any slow or offline inverter triggered a new entity. IP-octet as stable fallback is a clean solution. Running a variation of this locally, no more duplicates. One-time cleanup is a reasonable tradeoff. Please merge this.

@KoljaWindeler KoljaWindeler merged commit 5b0d19b into KoljaWindeler:master Mar 19, 2026
1 of 2 checks passed
@KoljaWindeler
Copy link
Owner

thanks @shivan I'll give it a try here and report back

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.

3 participants