-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Instructions for Nuimo controller component based on SDK #865
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
layout: page | ||
title: "Nuimo controller" | ||
description: "Instructions how to setup and use a Nuimo device in Home Assistant." | ||
date: 2016-08-30 12:00 | ||
sidebar: true | ||
comments: false | ||
sharing: true | ||
footer: true | ||
logo: nuimo.png | ||
ha_category: Hub | ||
ha_release: 0.28 | ||
ha_iot_class: "Local Poll" | ||
--- | ||
|
||
The `nuimo_controller` component allows you to connect to a [Nuimo](http://www.senic.com/) device for receiving input events and displaying on the led matrix via the [Nuimo SDK for Python on Linux](https://github.com/getSenic/nuimo-linux-python). | ||
|
||
To connect to a Nuimo device add the following section to your `configuration.yaml` file: | ||
|
||
```yaml | ||
nuimo_controller: | ||
mac: 'CE:B5:12:25:21:89' | ||
``` | ||
|
||
|
||
Configuration variables: | ||
|
||
- **mac** (*Optional*): skip discovery and connect to this device address | ||
- **name** (*Optional*): handle more than one device by names | ||
|
||
|
||
Example for testing rotation value and sending to led matrix: | ||
|
||
```yaml | ||
automation Nuimo_rotate_right: | ||
trigger: | ||
platform: event | ||
event_type: nuimo_input | ||
event_data: | ||
type: ROTATE | ||
condition: | ||
condition: template | ||
value_template: {% raw %}'{{ trigger.event.data.value > 100 }}'{% endraw %} | ||
action: | ||
service: nuimo_controller.led_matrix | ||
data: | ||
matrix: | ||
'........ | ||
0000000. | ||
.000000. | ||
..00000. | ||
.0.0000. | ||
.00.000. | ||
.000000. | ||
.000000. | ||
........ ' | ||
interval: 0.5 | ||
``` | ||
|
||
Troubleshooting: | ||
|
||
- use `hcitool lescan` to see the mac address of your device | ||
|
||
- allow non-root user access to Bluetooth LE with `sudo setcap cap_net_raw+eip $(eval readlink -f $(which python))` | ||
|
||
- install the newest version of [pygattlib](https://bitbucket.org/OscarAcena/pygattlib) from | ||
the repository, either because there is no binary package for your system or the pip version | ||
contains errors, with `pip install hg+https://bitbucket.org/OscarAcena/pygattlib --target $HOME/.homeassistant/deps`. | ||
( dependencies of pygattlib: `sudo apt-get install pkg-config libboost-python-dev | ||
libboost-thread-dev libbluetooth-dev libglib2.0-dev python-dev` ) | ||
Then invoke home-assistant with `hass --skip-pip`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have additional entries for the header. Please modify as needed.