...
Now this simple on/off control shall be extended with a dimming functionality. Add a "Button-Light-plus-Rect" and a "Button-Light-minus-Rect" button to the existing on/off button. In KNX, dimming is realized using a 4 bit object. The first bit reflects the direction of the dimming command and the remaining 3 bits the step size. The following values can be used for dimming control:
- 1001 --> → 9: this value is used to start dimming up to 100%
- 0001 --> 0001 → 1: this value is used to start dimming down to 0%
- 0000 --> → 0: this value is used to stop the dimming process
Double-click the "Plus" button and change to the "Object" tab. Select "Toggle" as "Operating mode". "Toggle" means that the "On" value is sent when the button is pressed and the "Off" value is sent when the button is released. Then select the 4 bit group address of light A (1/1/10)your light. As "On" value enter "9" and as "Off" value "0". Repeat these steps for the "Minus" button. Use "1" as "On" value and "0" as "Off" value.
\begin{figure}[H]
\centering
\includegraphics[width=11cm]{Screenshots/Dimming.png}
\caption{Dimming light}
\end{figure}
As next, the current brightness value shall be visualized using a simple label. Insert a "Label" control, double-click it and change to the "Object" tab. As function select "Indicator". "Indicator" means that the label shows the current value of a data point. Select the group address that provides the current dimming value of light A (1/1/110)your light.
\begin{figure}[H]
\centering
\includegraphics[width=11cm]{Screenshots/Dimming_State.png}
\caption{Dimming state}
\end{figure}
Now the label shows the raw value of the data point. In order to format it (e.g. limit the number of digits and adding a unit), a format string can be specified. The format string can be specified in the "Appearance" tab of the label configuration. Here some useful text formats are listed:
\begin{itemize}
...
- 0 "%"
...
- : this format string rounds a decimal to the nearest integer and adds a percent sign.
...
- 0.
...
- 0 "°C"
...
- : this format string always shows one digit after the comma and adds the unit degrees Celsius.
\end{itemize}
For a detailed description see Annex A.1 of the manual of the BMS Client Editor (available via the menu "Help").
\begin{figure}[H]
\centering
\includegraphics[width=10cm]{Screenshots/Text_Format.png}
\caption{Text format of a label}
\end{figure}
%\section{Implementing a blind control}
%\section{Implementing a heating control}
\section{
Testing the visualization in a web browser or on your smart phone
...
Each time the visualization project is saved, it is also transferred to the web server of the NETx BMS Server. To show the visualization within a web browser or on an Android or iOS device, a so called BMS Client has to be defined.
Minimize the BMS Client Editor and change back to NETx BMS Studio. Within the "Project Tree" add a new BMS Client definition.
\begin{figure}[H]
\centering
\includegraphics[width=6cm]{Screenshots/New_BMS_Client.png}
\caption{Add a new BMS Client}
\end{figure}
Within the configuration dialog, choose a name and select your visualization project within the drop-down box.
\begin{figure}[H]
\centering
\includegraphics[width=6cm]{Screenshots/New_BMS_Client2.png}
\caption{Select visualization project}
\end{figure}
To show the visualization, simply double-click on the new BMS Client definition within the project tree. The visualization can also be accessed remotely. The URL is http
Info | ||
---|---|---|
| ||
http://<your IP>/<client name> |
...
For iOS and Android, a dedicated app called NETx Touch is available. This app can be downloaded from iTunes or Google Play Store for free. After starting the app, the connection setting (IP address of the NETx BMS Server, BMS Client name, user name, password, ...) have to be entered.
...