05-Relay

While the dashboard is in edit mode, we can access the widget list by clicking the plus icon.
We can display the settings page by clicking on the widget we want to use.
Each widget has its own features. We will describe all widgets. If there are changes during the development process, we will let you know on the blog.
The relay widget consists of two buttons and a lamp. The On button sends the value 1 to the specified topic of the device. The OFF button sends the value 0 to the specified topic of the device.
The lamp lights green if the determined topic is 1, and red if it is 0.
Be sure to examine the examples we made for relay control.
When we click on the relay button from the list, the setting window opens.


Relay Name : You can give any name you want.
Select device : Here is the device list we added to the system. We can select the device we want to use from the list.
Select relay : After device selection ; device-related variables are listed here. We can select the variable we want to use for the relay from the list.
Button name on : The text you want to be displayed on the on button in the widget
Button name off : The text you want to be displayed on the off button in the widget
Relaychecktopic : you can select the variable that the lamp will use from the list.

You can add the relay widget to the system with the Create button.

You can open the edit page or delete the relay widget with the three dots icon on the left of the Relay Widget.
