dbus-opendtu icon indicating copy to clipboard operation
dbus-opendtu copied to clipboard

Question: OpenDTU inverter selection

Open moonilightshaker opened this issue 1 year ago • 14 comments

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.

moonilightshaker avatar Nov 27 '23 20:11 moonilightshaker

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.

0x7878 avatar Nov 27 '23 21:11 0x7878

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

moonilightshaker avatar Nov 28 '23 18:11 moonilightshaker

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

Thank you. I'm going to check that.

0x7878 avatar Nov 28 '23 19:11 0x7878

@0x7878 any update or can we close?

henne49 avatar Jan 24 '24 12:01 henne49

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.

0x7878 avatar Jan 24 '24 12:01 0x7878

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

henne49 avatar Mar 03 '24 06:03 henne49

#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.

moonilightshaker avatar Mar 04 '24 07:03 moonilightshaker

image you can order by drag and drop and then save

henne49 avatar Mar 04 '24 07:03 henne49

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

2flea avatar Mar 04 '24 07:03 2flea

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.

moonilightshaker avatar Mar 04 '24 15:03 moonilightshaker

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

henne49 avatar Mar 06 '24 08:03 henne49

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.

KarlMeier1933 avatar May 26 '24 19:05 KarlMeier1933

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.

henne49 avatar May 27 '24 07:05 henne49

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. 👍🏻

KarlMeier1933 avatar May 27 '24 07:05 KarlMeier1933