henne49 / dbus-opendtu

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

Error at Main Ahoy 0.5.66 #16

Closed New-three closed 1 year ago

New-three commented 1 year ago

I updated my Ahoy DTU to 0.5.66. Since then I can no longer get a connection in VenusOS. Is this actually due to the Ahoy version or is the error somewhere else?

2023-01-02 13:39:38,755 root CRITICAL Error at main
Traceback (most recent call last):
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 274, in main
    pvac_output = DbusOpenDTUService(
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 54, in __init__
    self._dbusservice.add_path('/Serial', self._getOpenDTUSerial())
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 86, in _getOpenDTUSerial
    if meter_data['system']['esp_type']=='ESP8266':
KeyError: 'system'
2023-01-02 13:39:41,760 root CRITICAL Error at main
Traceback (most recent call last):
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 274, in main
    pvac_output = DbusOpenDTUService(
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 54, in __init__
    self._dbusservice.add_path('/Serial', self._getOpenDTUSerial())
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 86, in _getOpenDTUSerial
    if meter_data['system']['esp_type']=='ESP8266':
KeyError: 'system'
2023-01-02 13:39:45,76 root CRITICAL Error at main
Traceback (most recent call last):
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 274, in main
    pvac_output = DbusOpenDTUService(
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 54, in __init__
    self._dbusservice.add_path('/Serial', self._getOpenDTUSerial())
  File "/data/dbus-opendtu-1/dbus-opendtu.py", line 86, in _getOpenDTUSerial
    if meter_data['system']['esp_type']=='ESP8266':
KeyError: 'system'
henne49 commented 1 year ago

it seems they changed the API. can you share the json? would you know how to do this?

New-three commented 1 year ago

Export json in web interface? Settings/Download your settings (JSON file)](http://192.168.10.182/get_setup) (only saved values)

henne49 commented 1 year ago

They changed the API, it is fixed now and supports old and new API. please use newest script

New-three commented 1 year ago

Many Thanks. Connection works again.

I saw that the config file now supports 10 inverters?

henne49 commented 1 year ago

Correct, as this is also the limit in OpenDTU. Will close the issue