Skip to content

Commit d1ac590

Browse files
author
gross1989
committed
Instructions for Nuimo controller component based on SDK
1 parent fed6dd8 commit d1ac590

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
layout: page
3+
title: "Nuimo controller"
4+
description: "Instructions how to setup and use a Nuimo device in Home Assistant."
5+
date: 2016-08-30 12:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: nuimo.png
11+
ha_category: Hub
12+
ha_release: 0.28
13+
ha_iot_class: "Local Poll"
14+
---
15+
16+
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).
17+
18+
To connect to a Nuimo device add the following section to your `configuration.yaml` file:
19+
20+
```yaml
21+
nuimo_controller:
22+
mac: 'CE:B5:12:25:21:89'
23+
```
24+
25+
26+
Configuration variables:
27+
28+
- **mac** (*Optional*): skip discovery and connect to this device address
29+
- **name** (*Optional*): handle more than one device by names
30+
31+
32+
Example for testing rotation value and sending to led matrix:
33+
34+
{% raw %}
35+
```yaml
36+
automation Nuimo_rotate_right:
37+
trigger:
38+
platform: event
39+
event_type: nuimo_input
40+
event_data:
41+
type: ROTATE
42+
condition:
43+
condition: template
44+
value_template: '{{ trigger.event.data.value > 100 }}'
45+
action:
46+
service: nuimo_controller.led_matrix
47+
data:
48+
matrix:
49+
'........
50+
0000000.
51+
.000000.
52+
..00000.
53+
.0.0000.
54+
.00.000.
55+
.000000.
56+
.000000.
57+
........ '
58+
interval: 0.5
59+
```
60+
{% endraw %}
61+
62+
Troubleshooting:
63+
64+
- use `hcitool lescan` to see the mac address of your device
65+
66+
- allow non-root user access to Bluetooth LE with `sudo setcap cap_net_raw+eip $(eval readlink -f $(which python))`
67+
68+
- install the newest version of [pygattlib](https://bitbucket.org/OscarAcena/pygattlib) from
69+
the repository, either because there is no binary package for your system or the pip version
70+
contains errors, with `pip install hg+https://bitbucket.org/OscarAcena/pygattlib --target $HOME/.homeassistant/deps`.
71+
( dependencies of pygattlib: `sudo apt-get install pkg-config libboost-python-dev
72+
libboost-thread-dev libbluetooth-dev libglib2.0-dev python-dev` )
73+
Then invoke home-assistant with `hass --skip-pip`.
10.7 KB
Loading

0 commit comments

Comments
 (0)