Alerting setting (mail not sending)

Hello OpenEMS community,

I have recently started working with OpenEMS and discovered an important feature in Odoo-OpenEMS that notifies the edge owner when the system is offline or encounters a fault. However, while testing this feature, I ran into some issues and would appreciate any guidance on resolving them.
I am running Odoo (Odoo 16 + OpenEMS add-on), PostgreSQL, OpenEMS backend, OpenEMS UI, and InfluxDB using Docker Compose.

Issues:

  1. UI Error:
    When accessing the UI, I encounter the following error:
Cannot read properties of undefined (reading 'userLogin')

This occurs in this file on line 23.
I temporarily resolved it by commenting out the affected code, but I am looking for a proper solution.
2. Odoo Error when configuring Offline Notification Delays:
When I attempt to configure the “Offline Notification” delay in Odoo, I receive the following error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 5183, in ensure_one
    _id, = self._ids
ValueError: too many values to unpack (expected 1)

During handling of the above exception, another exception occurred:

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 5186, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: openems.device_user_role(49, 53)

Additional Context:

  • Alerting in the backend is enabled.
  • The SMTP server (Outgoing Mail Server) is activated in Odoo and successfully tested.

I would greatly appreciate any guidance on resolving these issues.

Best regards,

Hello,

first i wanted to ask you if it would be okay for you to join our Association if you use OpenEMS commercially?

Secondly i need to tell you, that the Odoo Plugin is not Up-to-date right now and one must adapt the Odoo Plugin to his own usage. So you are warmly welcome to provide a proper PR to the Odoo Plugin to fix this “Issue”.

Greetings

Thank you, @Sn0w3y, for the invitation!
I will join you as soon as possible. Since I am still exploring OpenEMS, this is a great opportunity to dive deeper into the Odoo plugin.
Greeting