-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuimo unable to connect to HA #6277
Comments
I followed the official documentation from Scenic and was able to connect my Nuimo to my RPi3. Here's some output:
Now what? The official documentation from Home Assistant is - how should I put it? - scarce. Do I need to connect to my Nuimo before starting Home Assistant? Do I have to pair afterwards? So, technically speaking I'm "Unable to connect HA to Nuimo" (or vice versa). A little bit more documentation would be very helpful and greatly appreciated. If I can pull it off and have my Nuimo control my lights (and possible sound/video as well) without having my smartphone around I could justify the purchase to my wife. ;) Here's my config: Home Assistant release (hass --version): Python release (python3 --version): [EDIT] [EDIT2] pi@hassbian:/srv/homeassistant $ sudo tailf /var/log/syslog | grep -i nuimo
Mar 9 22:27:46 hassbian hass[4292]: #033[32m17-03-09 22:27:46 INFO (Thread-4) [homeassistant.util.package] Attempting install of --only-binary=all http://github.com/getSenic/nuimo-linux-python/archive/29fc42987f74d8090d0e2382e8f248ff5990b8c9.zip#nuimo==1.0.0#033[0m
Mar 9 22:27:50 hassbian hass[4292]: #033[32m17-03-09 22:27:50 INFO (MainThread) [homeassistant.bootstrap] Setting up nuimo_controller#033[0m
Mar 9 22:27:50 hassbian hass[4292]: #033[32m17-03-09 22:27:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=nuimo_controller>#033[0m
Mar 9 22:27:50 hassbian hass[4292]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/nuimo_controller.py", line 89, in run
Mar 9 22:27:50 hassbian hass[4292]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/nuimo_controller.py", line 107, in _attach
Mar 9 22:27:50 hassbian hass[4292]: from nuimo import NuimoController, NuimoDiscoveryManager
Mar 9 22:27:50 hassbian hass[4292]: ImportError: No module named 'nuimo'
|
Well at least its not just me having the issue with it, I'm interested in what you come up with hopefully we can find a resolution for it as I'd love to use my nuimo in my home assistant setup. |
Okay so I'm also having major issues, but a bit closer then you guys. So i can start HA, have it connect to nuimo and also receive touchpad input, BUT as soon as i turn the ring, something seg faults and kills the HA service... I've been trying to debug it all evening and am getting worn out because i can't work out why and what on earth is segment faulting. If nothing comes of this i may try to re write it from scratch when i have time. |
Damn, hopefully you won't have to do that, but I guess if there is no other option, just to update I tried it on 0.40 and still got the same issue. |
@Charliedean Could you please elaborate on how you got closer? I'm still stuck at that I'm able to connect to my Nuimo controller with the demo script. But I still get I've updated Home Assistant to 0.40.1 (confirmed) and the Nuimo library to 0.3.1. At least I think I did. 😬 |
I've update my bluez library to 5.44 as the documentation of the Nuimo Python SDK states. This got rid of the errors I had when using
Both commands yielded errors with stack trace etc. With bluez v5.44 those errors where gone (yay!). But I'm unable to see my Nuimo controller from the web interface. Nothing related pops up in /var/log/syslog, everything seems to be fine. But how to I connect my Nuimo then? The official documentation is not clear here. I tried specifying the MAC address of my Nuimo, no luck. I tried auto discovery but it looks like nothing is ever discovered. Now I've reached a point where I'm basically stuck. |
I've had another change to look at this issue. In my
After I manually install python-gobject (
Looks like something in the Python Gatt module is borked, but that is definitely way beyond my capabilities. |
Hi guys, sorry for not replying earlier. I'm starting to re code the controller for the newest nuimo library. Please bear in mind this is my first implementation i have done for hass. Should have something up and running later today :) |
Hows it all been going so far? |
Got the basics working, For now, follow the steps on the nuimo-python github to update to the newest version of bluez. |
https://gist.github.com/Charliedean/8d0c649076b2a5265931a4a09952fca0 The code linked is only on gist as i have not set up a repo yet and has just been used to testing. here is sample configuration.yaml:
Oh and connect and pair with |
As much as I'd love to try it out so far, I would rather wait for the fix to be added to the main ha components so that its a more seamless install, thanks for the progress so far though! |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Yesterday I've updated my HA installation to the latest release. A quick glance at the log revealed some errors in the nuimo part, but I'm currently not home (work, work, work). You can go ahead and close the issue, if you have to. I'll report my findings here for other users in any case. |
If you are still having issues, please use the code that I posted further up. |
Okay, I found some time to play around with things. I'm still unable to use my Nuimo in Home Assistant, the log
I assume this has something to do with Home Assistant running in Python2 but the Nuimo Python SDK is for Python3? I'm not very familiar with Python and the whole virtualenv concept to fix this myself, I'm afraid. @Charliedean Did you ever find the time to do the writeup?
|
Yes the code works as it right now. Just need to make a commit to home assistant. Bit busy at the mo now. |
Sorry, but no, I can't get it to work. I did a full reinstall of Home Assistant (Hassbian) on my RPi3 B. Now I'm stuck with the error
I did install python3-dbus. I even install python-dbus and pip3 install pydbus - with sudo and in the virtualenv folder. No success. |
I'm trying to make a hass.io addon out of this. Will report back here when I succeed. |
I have a first draft of the addon ready. It's working great when I run it locally on my computer. I have yet to figure out how to hand over the BT device to the docker container, though. If anyone is interested I can create a repository. |
Have you got it on github or anything? Wouldn't mind taking a look |
Not yet, will do so later this week. 🙂 |
Okay, here's my code: https://github.com/riker09/Nuimo-MQTT-Bridge Be gentle. 😉 |
Nice one. |
I got a PR which enabled BT support on RPi3. I got it working, will fine tune the next days/weeks/month. PRs are welcome! 😉 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
Home Assistant release (
hass --version
):0.38.4
Python release (
python3 --version
):3.4.2
Component/platform:
Nuimo Component
https://home-assistant.io/components/nuimo_controller/
Description of problem:
When using a Raspberry Pi 3 I'm unable to connect my nuimo to HA I tried with and without the mac address and I also ran the command to allow non sudo users to access bluetooth le.
Expected:
The Nuimo should connect to HA and display a home logo on the nuimo device.
Problem-relevant
configuration.yaml
entries and steps to reproduce:nuimo_controller:
mac: OPTIONAL
The text was updated successfully, but these errors were encountered: