Nuimo Integration

Yes all are working

Hello @pfink,

I installed my system new with the newest openhabian version now I get this error

INFO config - <module>: Loaded config file from config.yml
DEBUG _config - load_ssl_context: load_ssl_context verify=True cert=None trust_env=True http2=False
 DEBUG _config - load_ssl_context_verify: load_verify_locations cafile='/etc/ssl/certs/ca-certificates.crt'

Hi Patrick,
my Nuimo was running stable under OH 4.2.0

After upgrading to 4.3.0 I get the following error protocol - when I try to connect my NUIMO with the Raspi:

2024-12-27 14:58:31.420 ERROR connection - maybe_handle_message: Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 232, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/gatt/gatt_linux.py", line 164, in _interfaces_added
    self._device_discovered(path, interfaces)
  File "/usr/local/lib/python3.9/dist-packages/gatt/gatt_linux.py", line 178, in _device_discovered
    self.device_discovered(device)
  File "/usr/local/lib/python3.9/dist-packages/nuimo/nuimo.py", line 50, in device_discovered
    self.listener.controller_discovered(device)
  File "/nuimo-openhab-python/main.py", line 29, in controller_discovered
    self.main.initialize_controller()
  File "/nuimo-openhab-python/main.py", line 52, in initialize_controller
    apps = self.app_builder.build_apps()
  File "/nuimo-openhab-python/nuimo_openhab/app_builder.py", line 30, in build_apps
    widgetApps = self.createAppFromWidget(widget)
  File "/nuimo-openhab-python/nuimo_openhab/app_builder.py", line 50, in createAppFromWidget
    self.createAppFromWidget(childWidget, app)
  File "/nuimo-openhab-python/nuimo_openhab/app_builder.py", line 55, in createAppFromWidget
    parent.getListener().addWidget(widget)
  File "/nuimo-openhab-python/nuimo_openhab/listener.py", line 35, in addWidget
    self.maxNewRotationActionWait = max(widget["sendFrequency"], self.maxNewRotationActionWait)
KeyError: 'sendFrequency'

could you check this please?

just to add - I as well upgraded to bookworm.
The issue is still not solved.
The log says:

× nuimo-openhab.service - Nuimo openHAB Integration Service
     Loaded: loaded (/etc/systemd/system/nuimo-openhab.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sat 2025-01-18 23:04:25 CET; 3s ago
   Duration: 85ms
    Process: 8229 ExecStart=/usr/bin/python3 /home/openhabian/nuimo-openhab-python/main.py (code=exited, status=1/FAILURE)
   Main PID: 8229 (code=exited, status=1/FAILURE)
        CPU: 84ms

Jan 18 23:04:25 openhabianpi systemd[1]: Started nuimo-openhab.service - Nuimo openHAB Integration Service.
Jan 18 23:04:25 openhabianpi nuimo-openhab[8229]: Traceback (most recent call last):
Jan 18 23:04:25 openhabianpi nuimo-openhab[8229]:   File "/home/openhabian/nuimo-openhab-python/main.py", line 6, in <module>        
Jan 18 23:04:25 openhabianpi nuimo-openhab[8229]:     from nuimo_menue.listener import *
Jan 18 23:04:25 openhabianpi nuimo-openhab[8229]:   File "/home/openhabian/nuimo-openhab-python/nuimo_menue/listener.py", line 4, in>
Jan 18 23:04:25 openhabianpi nuimo-openhab[8229]:     import nuimo
Jan 18 23:04:25 openhabianpi nuimo-openhab[8229]: ModuleNotFoundError: No module named 'nuimo'
Jan 18 23:04:25 openhabianpi systemd[1]: nuimo-openhab.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 23:04:25 openhabianpi systemd[1]: nuimo-openhab.service: Failed with result 'exit-code'.

Hi Patrick, the above issue is linked to this breaking change in OH4.3.
Is there a possibility you modify the Python code accordingly? Would be a pity to have to discard the Nuimos now…

1 Like