Nuimo control not working on a pi with HA in a python env

hello,
I recently moved from an LXC container to a Pi just so I could start using bluetooth. However I’m running into problems. I really wanted to use a Nuimo controller but when I add:

nuimo_controller:
  mac: 'fc:66:1a:.....'

My HA doesn’t start and throws these errors (if I start with --skip-pip HA starts, but Nuimo doesn’t work)

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 153, in _async_setup_component
    hass, processed_config)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/binary_sensor/__init__.py", line 122, in async_setup
    await component.async_setup(config)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py", line 112, in async_setup
    await asyncio.wait(tasks)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 363, in wait
    return await _wait(fs, timeout, return_when, loop)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 456, in _wait
    await waiter
concurrent.futures._base.CancelledError
2019-08-02 01:20:39 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Nest (via configuration.yaml) for nest
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 90, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1654, in parseString
    raise exc
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1644, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1402, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 3417, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1402, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 3739, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1402, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 3400, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1406, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 2711, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pkg_resources._vendor.pyparsing.ParseException: Expected W:(abcd...) (at char 0), (line:1, col:1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3042, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 94, in __init__
    requirement_string[e.loc:e.loc + 8]))
pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'--only-b'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/package.py", line 37, in is_installed
    req = pkg_resources.Requirement.parse(package)
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3088, in parse
    req, = parse_requirements(s)
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3035, in parse_requirements
    yield Requirement(line)
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3044, in __init__
    raise RequirementParseError(str(e))
pkg_resources.RequirementParseError: Invalid requirement, parse error at "'--only-b'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/__main__.py", line 290, in setup_and_run_hass
    log_no_color=args.log_no_color)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 142, in async_from_config_file
    config_dict, hass, enable_log=False, skip_pip=skip_pip)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 91, in async_from_config_dict
    await _async_set_up_integrations(hass, config)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 365, in _async_set_up_integrations
    for domain in domains_to_load
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 50, in async_setup_component
    return await task  # type: ignore
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 120, in _async_setup_component
    await async_process_deps_reqs(hass, config, integration)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 281, in async_process_deps_reqs
    hass, integration.domain, integration.requirements)):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/requirements.py", line 32, in async_process_requirements
    if pkg_util.is_installed(req):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/package.py", line 41, in is_installed
    req = pkg_resources.Requirement.parse(urlparse(package).fragment)
  File "/srv/homeassistant/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3088, in parse
    req, = parse_requirements(s)
ValueError: not enough values to unpack (expected 1, got 0)

During handling of the above exception, another exception occurred:

Hey Nick,

for me the device never worked - commented here:

In order to get it working, an addin was written (but didn’t work for me):

One guy - can’t find the thread anymore - wanted to start a new try, but the repo never filled up:
https://github.com/otherguy/home-assistant-nuimo

Think that’s it for now…

Unfortunately it seems to be as jakob.tewes says; the component is dead.
I would also love to use my nuimo with HA, because right now it is just dead piece of metal.

I tried to reverse engineer my nuimo hub and the git (GitHub - zenctrl/senic-hub: Senic Home Automation mobile app) to connect Hassio with my nuimo control. but still on it - maybe some good python developer want help me :wink:

So I found some stuff:

-------

    nuimo_app_config_file_path = settings['nuimo_app_config_path'] #=> /data/senic-hub/nuimo_app.cfg
    bluetooth_adapter_name = settings['bluetooth_adapter_name'] #=> hc0

    #devices => [DEFAULT_IFACE]
    #nuimo_controller_mac_address => MAC of Bluetooth Device

    with open(nuimo_app_config_file_path, 'w') as f:
        config = generate_nuimo_configuration(devices, nuimo_controller_mac_address, bluetooth_adapter_name)
        config.write(f)

    run(['/usr/bin/supervisorctl', 'restart', 'nuimo_app'])


----


def generate_nuimo_configuration(devices, nuimo_controller_mac_address, bluetooth_adapter_name):
    config = configparser.ConfigParser()
    config['DEFAULT'] = {
        'ha_api_url': 'localhost:8123',
        'logging_level': 'DEBUG',
        'controller_mac_address': nuimo_controller_mac_address,
        'bluetooth_adapter_name': bluetooth_adapter_name,
    }
    for index, device in enumerate(devices):
        section_name = '{}-{}'.format(device['type'], index)
        config[section_name] = {
            'name': section_name,
            'component': get_component_for_device(device),
            'entities': get_entities_for_device(device),
        }
    return config


----
/data/senic-hub/nuimo_app.cfg:

nuimos:
  <MAC of Bluetooth Device>:
    components:
    - device_ids: &id001
      - 7828ca1e8eaa01400
      group_id: RINCON_7828CA1E8EAA01400:1834105640
      household_id: Sonos_sYuHEkrOK5LNbeo5OSHcROJchu.qDYb2Z1XI0ozjZhgg0vK
      id: d3fd7421-db1d-40c8-9e13-fef4e608d4cb
      ip_address: <IP of Sonos>
      join:
        master: true
      name: Wohnzimmer
      station1:
        description: Spotify Playliste
        meta: ''
        title: <Playlist Name>
        uri: '17'
      station2:
        description: Sonos Radio Sender
        meta: ''
        title: <Playlist Name>
        uri: '18'
      station3:
        description: Apple Music Playliste
        meta: ''
        title: <Playlist Name>
        uri: '16'
      tracked_device_ids: *id001
      tracked_device_websocket_url: wss://<IP of Sonos>:1443/websocket/api
      type: sonos
    name: WZ Nuimo
version: 2.27.3

was anyone able to get something usable out of their attempts?