Update Nuimo_controller component configuration (#7391)

This commit is contained in:
Klaas Schoute 2018-11-06 08:10:50 +01:00 committed by Fabian Affolter
parent 8dfd9b5733
commit d126bd6d6b

View File

@ -19,14 +19,20 @@ To connect to a Nuimo device add the following section to your `configuration.ya
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
nuimo_controller: nuimo_controller:
``` ```
Configuration variables: {% configuration %}
mac:
- **mac** (*Optional*): Skip discovery and connect to this device address. description: Skip discovery and connect to this device address.
- **name** (*Optional*): To handle more than one device by names, add the name of the device. required: false
type: string
name:
description: To handle more than one device by names, add the name of the device.
required: false
default: None
type: string
{% endconfiguration %}
Example for testing rotation value and sending to the LED matrix: Example for testing rotation value and sending to the LED matrix:
@ -42,7 +48,7 @@ automation Nuimo_rotate_right:
value_template: {% raw %}'{{ trigger.event.data.value > 100 }}'{% endraw %} value_template: {% raw %}'{{ trigger.event.data.value > 100 }}'{% endraw %}
action: action:
service: nuimo_controller.led_matrix service: nuimo_controller.led_matrix
data: data:
matrix: matrix:
'........ '........
0000000. 0000000.
@ -52,7 +58,7 @@ automation Nuimo_rotate_right:
.00.000. .00.000.
.000000. .000000.
.000000. .000000.
........ ' ........'
interval: 0.5 interval: 0.5
``` ```
@ -60,7 +66,7 @@ Troubleshooting:
- use `hcitool lescan` to see the mac address of your device - 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))` - 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`. - 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`) (Dependencies of pygattlib: `sudo apt-get install pkg-config libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev python-dev`)