Skip to content

Commit 3111cb7

Browse files
60 update documentation for v2.0.9 (#61)
* Fixed typo and updated docs for the new functionality of selecting panel type, orientation and background. * Updated documentation with regards to swipes and STOMP-topics. * Escaped < and > tags * Fixed comments from review and moved backgrounds to the "NSPanel page" section * Updated sidebar and also added a 'Known issues' page. * minor formating improvement (use ` vs ') add a blank line for readability * fix known issues label in sidemenu --------- Co-authored-by: sebastienvermeille <sebastien.vermeille@gmail.com>
1 parent 43eec07 commit 3111cb7

7 files changed

Lines changed: 141 additions & 103 deletions

File tree

docs/advanced/stomp-topics.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: STOMP Topics
3+
sidebar_position: 15
4+
---
5+
6+
import Centered from '@site/src/components/Centered';
7+
import Label from '@site/src/components/Label';
8+
9+
# STOMP Topics <Label value="beta"/>
10+
11+
The web interface makes use of the STOMP protocol to communicate with the MQTTManager in the background. STOMP is being used over **websocket** and can be connected to via http://\<manager_address\>:\<manager_port\>/websocket/stomp.
12+
13+
When a stomp connection has been established the following topics can be used:
14+
15+
| Topic | Payload | Description |
16+
| ----------------------------------- |-------------------------------------------------------------------------| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17+
| nspanel/\<mac_address\>/command | `reboot`, `firmware_update` or `gui_update` | Reboot, update firmware or update the GUI of the NSPanel. |
18+
| nspanel/\<mac_address\>/status | JSON-encoded status object. | The MQTTManager will send out a JSON-encoded status object when it changes for the specified NSPanel. NSPanel. |
19+
| nspanel/\<mac_address\>/log | Stream of JSON-encoded log messages from the NSPanel. | When a log message is received from the NSPanel it will be decoded and sent out to this topic as a JSON-encoded object. |
20+
| nspanel/\<mac_address\>/log_backlog | Stream of JSON-encoded log messages from the NSPanel log buffer backlog. | The MQTTManager will buffer a given amount of logs in memory. When connecting to this topic the MQTTManager will send out all buffered logs as a JSON-encoded object. This topic is only ment to be subscribed to, get the log backlog, then unsubscribe and get new logs from the 'nspanel/\<mac_address\>/log' topic. |

docs/getting-started/pre-requisites.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ sidebar_position: 0
77

88
In order to make valuable use of NSPanel Manager you must full-fill the following requirements:
99

10-
* ✅ Own at least one NSPanel (be careful, all NSPanel are not supported, take a look at [supported devices](./supported-devices))
11-
* ✅ Have an MQTT server up and running
12-
* Note that Home Assistant and OpenHab are both providing integration for embedded MQTT server in case you don't want to setup a standalone server.
13-
* ✅ Have a server able to host the service 24/7 (your own laptop is not recommended for a daily use as it will goes off)
14-
* A home assistant server
15-
* NAS with Docker support
16-
* Intel NUC
17-
* Raspberry Pi
18-
* A linux machine having docker
19-
* ...
10+
- ✅ Own at least one NSPanel (be careful, all NSPanel are not supported, take a look at [supported devices](./supported-devices))
11+
- ✅ Have an MQTT server up and running
12+
- Note that Home Assistant and OpenHab are both providing integration for embedded MQTT server in case you don't want to setup a standalone server.
13+
- ✅ Have a server able to host the service 24/7 (your own laptop is not recommended for a daily use as it will go off)
14+
- A home assistant server
15+
- NAS with Docker support
16+
- Intel NUC
17+
- Raspberry Pi
18+
- A linux machine having docker
19+
- ...
2020

2121
When you match all the requirements, you are then ready for the first step: [Flash our custom firmware into your NSPanel](./flash-nspanel).
2222

docs/known-issues.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Known issues
3+
sidebar_position: 5
4+
---
5+
6+
import CenteredImage from '@site/src/components/CenteredImage';
7+
import Label from '@site/src/components/Label';
8+
9+
# Known issues
10+
11+
This chapter describes all known issues with NSPanel Manager. For up to date list of bugs, enhancements and other issues, please visit the [GitHub repository](https://github.com/NSPManager/NSPanelManager/issues). This list simply describes bugs that we cannot fix.
12+
13+
- If using OpenHAB and something else triggers a light to turn off, OpenHAB will not send out a new state for the light that the brightness has changed to 0 (turned off). This makes it so that if you have a light added to OpenHAB, then add it to NSPanel Manager but control the light from something else other than OpenHAB or NSPanel Manager the NSPanel will not always have the correct state of a light. Please see [issue #125](https://github.com/NSPManager/NSPanelManager/issues/125)

docs/panel-functions.md

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Panel functions
33
sidebar_position: 4
44
---
5+
56
import CenteredImage from '@site/src/components/CenteredImage';
67

78
# Panel functions
@@ -27,26 +28,26 @@ import CenteredImage from '@site/src/components/CenteredImage';
2728
7. Lights mode button
2829
**Short press** - Toggle between Room Lights mode and All Lights mode
2930
8. Scenes button.
30-
**Short press** - Enter Scenes page. If 7 is in Room Lights mode user will enter Room Scenes. If 7 is in All Lights
31+
**Short press** - Enter Scenes page. If 7 is in Room Lights mode user will enter Room Scenes. If 7 is in All Lights
3132
mode user will enter Global Scenes page.
3233

3334
### Lights control logic
3435

3536
The NSPanel main page might have some behavior that seems odd at first but the logic of it will be described here.
36-
The first page will affect entities in the selected room (if in room-mode) or all the configured lights
37+
The first page will affect entities in the selected room (if in room-mode) or all the configured lights
3738
(if in "All lights"-mode).
3839

39-
The two left buttons for ceiling and table lights will always behave the same.
40-
Pressing a button that is "off" will turn on all the lights of that type.
40+
The two left buttons for ceiling and table lights will always behave the same.
41+
Pressing a button that is "off" will turn on all the lights of that type.
4142
Pressing a button that is "on" will turn off all lights of that type.
4243
The sliders will always display an average value of all entities that will be affected of changes.
4344

4445
There are few different scenarios:
4546

4647
#### One or more lights on
4748

48-
When changing the sliders, the changes will only be sent out to the lights currently on.
49-
If turning on a group of lights or individual lights they will be turned on to the current brightness of the slider.
49+
When changing the sliders, the changes will only be sent out to the lights currently on.
50+
If turning on a group of lights or individual lights they will be turned on to the current brightness of the slider.
5051
I.e. average dimming level in the room.
5152

5253
:::info
@@ -60,47 +61,57 @@ When changing the sliders, the changes will be sent out to all lights selected (
6061

6162
#### Lock mode
6263

63-
You can lock which light to affect by pressing and holding either the ceiling or table-lights button.
64-
This will enter a special mode where changes to the sliders will only affect the selected type of lights.
65-
By pressing the same button again you can exit the "special mode".
64+
You can lock which light to affect by pressing and holding either the ceiling or table-lights button.
65+
This will enter a special mode where changes to the sliders will only affect the selected type of lights.
66+
By pressing the same button again you can exit the "special mode".
6667
The "special mode" will also time out after a few seconds.
6768

6869
### Scenes button (top left corner)
6970

7071
The settings icon in the top left corner is for entering the Scenes page. In NSPanel Manager there are both Room Scenes
71-
and Global Scenes. If you’re in Room Lights mode (button in lower right corner) you will enter the Room Scenes page.
72-
If you’re in All Lights mode you will enter the Global Scenes page. You’ll also see that the settings icon changes when
73-
toggling between Room Lights and All Lights mode. Standard settings icon leads to Room Scenes page when pressing it.
72+
and Global Scenes. If you’re in Room Lights mode (button in lower right corner) you will enter the Room Scenes page.
73+
If you’re in All Lights mode you will enter the Global Scenes page. You’ll also see that the settings icon changes when
74+
toggling between Room Lights and All Lights mode. Standard settings icon leads to Room Scenes page when pressing it.
7475
Settings icon with a roof on top leads to Global Scenes page.
7576

76-
### Swipe down
77+
### Swipes
78+
79+
#### Swipe down
7780

78-
You can swipe downwards when on the first page to enter the Smart Home Control page. This page is a work in progress.
81+
On most pages, a swipe down will go back to the previous page. When swiping down on the home page you will enter the Smart Home Control page. This page is a work in progress.
7982
Design and functionality is not finished or decided yet.
8083

84+
#### Swipe in from left
85+
86+
On the page that shows entities and scenes, a swipe in from the left will go the to previous room. Note that when swiping you have to do it on the top of the page where no entities exists. This will be resolved in a future update.
87+
88+
#### Swipe in from right
89+
90+
On the page that shows entities and scenes, a swipe in from the right will go the to next room. Note that when swiping you have to do it on the top of the page where no entities exists. This will be resolved in a future update.
91+
8192
### Smart Home Control page
8293

8394
Accessed by swiping down on Main page. Work in progress. Design and functionality is not finished or decided yet.
8495

85-
### Scenes page
96+
### Scenes page
8697

87-
To enter Scenes page, press the settings icon in top left corner on Main page.
98+
To enter Scenes page, press the settings icon in top left corner on Main page.
8899
Depending on if you’re in Room Lights mode or All Lights mode you will enter Room Scenes page or Global Scenes page.
89100

90-
Scene names that show up here are the ones you have configured in the NSPanel Manager web interface.
101+
Scene names that show up here are the ones you have configured in the NSPanel Manager web interface.
91102

92-
To store a scene simply hold the save button for three seconds and the current values of the lights in the room you are
93-
in or all lights if in All Lights mode will be saved.
103+
To store a scene simply hold the save button for three seconds and the current values of the lights in the room you are
104+
in or all lights if in All Lights mode will be saved.
94105

95106
To activate a scene and send out those saved values you just press the scene name.
96107

97108
### Room page
98109

99-
Enter Room page by pressing the room name on Main page.
110+
Enter Room page by pressing the room name on Main page.
100111
All devices configured for that room will show up here.
101112
To control a device individually press the device name.
102113

103114
### Individual Lights page
104115

105-
All the capabilities of the chosen light will be shown on this page. If the light is RGB capable there will be an icon
116+
All the capabilities of the chosen light will be shown on this page. If the light is RGB capable there will be an icon
106117
in the top right corner to toggle between Color Temperature mode and Color mode.

0 commit comments

Comments
 (0)