henne49 / dbus-opendtu

Integrate opendtu and ahoy into Victron Energies Venus OS as a pv inverter
MIT License
108 stars 31 forks source link

Question: OpenDTU inverter selection #127

Open moonilightshaker opened 7 months ago

moonilightshaker commented 7 months ago

Question: Is it possible to integrate only some of the OpenDTU inverters in Victron? For example: I have several inverters in OpenDTU. But only 1 is relevant.

If I add only one to the configuration I get the following error: KeyError: 'INVERTER1'

Best Regards M.

0x7878 commented 7 months ago

Could you provide an anonymous output of the json from openDTU and your config? This should be possible. Maybe something is missing on our side or maybe something is not configured properly. Let's check.

moonilightshaker commented 7 months ago

@0x7878 Attached are the files. config.txt status.json

0x7878 commented 7 months ago

@0x7878 Attached are the files. config.txt status.json

Thank you. I'm going to check that.

henne49 commented 5 months ago

@0x7878 any update or can we close?

0x7878 commented 5 months ago

It's not solved. I started refactoring into class based code which would also solve this issue in my opinion. Assign this issue to me.

henne49 commented 4 months ago

https://github.com/henne49/dbus-opendtu/pull/148 should help, as you can order the hoymiles to read only the first ones.

moonilightshaker commented 4 months ago

148 should help, as you can order the hoymiles to read only the first ones.

Thank you for the change. Tested and working.

But I have one problem. How can I sort the inverters in OpenDTU? They are always sorted automatically by serial number.

henne49 commented 4 months ago
image

you can order by drag and drop and then save

2flea commented 4 months ago

Sorry but this order does not reflect in the JSON coming from status page(index != order), one needs to consider the "order" in JSON itself:

image image

moonilightshaker commented 4 months ago

Sorry but this order does not reflect in the JSON coming from status page(index != order), one needs to consider the "order" in JSON itself:

image image

You're right. The order cannot be changed with this method.

henne49 commented 3 months ago

Good catch, then we need to modify the code. Somewthing we need to look into

KarlMeier1933 commented 1 month ago

Gibt es hierzu Neuigkeiten? Ich würde auch gerne nur auf EINEN Wechselrichter zugreifen, aber die Reihenfolge bleibt bei der Abfrage immer gleich, egal wie ich die Wechselrichter in der OpenDTU sortiere.

henne49 commented 1 month ago

nein, Stand heute nicht möglich und auch ein Nischen Use Case für die meisten Nutzer. Du könntest ja auch einfach 2 DTU betreiben, und den den du abfragen möchtest an einer DTU haben. Aktuell ist es ein weitere Code Workaround, den wir so nicht wollen und gut supporten können.

Wir müssen zuerst einen kompletten re-work des Codes machen, dann können wir solchen Feature in Zukunft einfacher umsetzen. Daher kann ich auch nicht sagen wann das kommen wird, aber dass wir es gerne einbauen, wenn der Code es zulässt.

Das zu den Hintergründen.

KarlMeier1933 commented 1 month ago

Danke für die schnelle Antwort und die ausführliche Erklärung. Die Lösung mit der zweiten DTU hatte ich auch schon in Betracht gezogen. Dann werde ich das erstmal so lösen. 👍🏻