[Nanoleaf] Visualize layout (#13552)
* Visualize Nanoleaf layout * Only calculate image if channel is linked * White background image * Render more shapes Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
This commit is contained in:
@@ -28,9 +28,13 @@ You can set the **color** for each panel and in the case of a Nanoleaf Canvas or
|
||||
| Nanoleaf Name | Type | Description | supported | touch support |
|
||||
| ---------------------- | ---- | ---------------------------------------------------------- | --------- | ------------- |
|
||||
| Light Panels | NL22 | Triangles 1st Generation | X | - |
|
||||
| Shapes Triangle | NL42 | Triangles 2nd Generation (rounded edges) | X | X |
|
||||
| Shapes Hexagon | NL42 | Hexagons | X | X |
|
||||
| Shapes Mini Triangles | NL42 | Mini Triangles | x | X |
|
||||
| Shapes Triangles | NL47 | Triangles | X | X |
|
||||
| Shapes Mini Triangles | NL48 | Mini Triangles | X | X |
|
||||
| Elements Hexagon | NL52 | Elements Hexagons | X | X |
|
||||
| Smart Bulb | NL45 | Smart Bulb | - | |
|
||||
| Lightstrip | NL55 | Lightstrip | - | |
|
||||
| Lines | NL59 | Lines | - | |
|
||||
| Canvas | NL29 | Squares | X | X |
|
||||
|
||||
x = Supported (-) = unknown (no device available to test)
|
||||
@@ -70,9 +74,15 @@ In this case:
|
||||
|
||||
### Panel Layout
|
||||
|
||||
Unfortunately it is not easy to find out which panel gets which id, and this becomes pretty important if you have lots of them and want to assign rules.
|
||||
If you want to program individual panels, it can be hard to figure out which panel has which ID. To make this easier, there is Layout channel on the Nanoleaf controller thing in openHAB.
|
||||
The easiest way to visualize the layout of the individual panels is to open the controller thing in the openHAB UI, go to Channels and add a new item to the Layout channel.
|
||||
Clicking on that image or adding it to a dashboard will show a picture of your canvas with the individual thing ID in the picture.
|
||||
|
||||
For canvas that use square panels, you can request the layout through a [console command](https://www.openhab.org/docs/administration/console.html):
|
||||
If your canvas has elements we dont know how to draw a layout for yet, please reach out, and we will ask for some information and will try to add support for your elements.
|
||||
|
||||

|
||||
|
||||
There is an alternative method for canvas that use square panels, you can request the layout through a [console command](https://www.openhab.org/docs/administration/console.html):
|
||||
|
||||
then issue the following command:
|
||||
|
||||
@@ -94,7 +104,7 @@ Compare the following output with the right picture at the beginning of the arti
|
||||
41451
|
||||
|
||||
```
|
||||
|
||||
|
||||
## Thing Configuration
|
||||
|
||||
The controller thing has the following parameters:
|
||||
|
||||
Reference in New Issue
Block a user