Application for the logic.hub
Intelligent light regulation using the logic.hub
Visualizing lamp, installing turn-off delay and switching light
What you’ll need:
- A W&T logic.hub
- A Web-IO Digital 24V (together with coupling relay)
We are happy to provide you with the logic.hub for 30 days at no cost. Simply fill out the sample order form and we will send you the logic.hub for testing on open invoice. If you return the device within 30 days, we will cancel the invoice.
-
#50506
logic.hub
What’s explained:
1. Creating the flow
-
Open the Terminal inventory and attach your Web-IO Digital.
Inserting a WEB-IO Digital
-
Remember to activate MQTT in your Web-IO under Communication paths and enter the IP address of the broker (logic.hub).
-
Open the Logic Editor on the web interface of the logic.hub.
-
You are now in the Logic Editor. Create a new page by clicking on CREATE NEW PAGE. If you have already set up pages, you need to click on the Plus symbol to create a new page.
-
Add the turn-off delay (TOF)).
-
Add an input and assign it to the terminal that is wired to the manual switch.
-
You can also label the nodes to make it easier to understand later which node has which function or where it was integrated.
-
Add another input and connect the input to the input at which the motion detector outputs its signal. In our case, the two inputs are labelled "Switch input" and "Motion detector input".
-
Insert the CONST node, set it to "Analog" and enter a time value (in ms) to have the light turned on later for this duration. In our case the light remains on for 3 minutes.
-
Insert an OR operation. If you don’t have a motion sensor, you can skip this step and link the input directly to the switch-off delay.
-
Add the output connected to the lamp.
-
Optionally, you can add an analogue counter to query the current time value of the switch-off delay.
-
You can color-code the nodes as you wish.
-
Connect the nodes as described in the image and save the flow.
Click on the images to enlarge.
2. Visualizing the lamp and controller
-
Create a new dashboard by clicking on CREATE NEW DASHBOARD.
-
Add a header label from the full-width tiles and give your dashboard a heading.
-
Also insert an LED label, Switch label, Ticker label and a Diagram label. If your lamp is dimmable, you can add and insert a Slider label so that you can dim the lamp from the dashboard as well.
-
Set the minimum value in the diagram to 0 and the maximum value to 1 in order to monitor the switch-on and switch-off behavior.
-
To make the view visually more attractive, instead of the Ticker label you can also use a Progress label and configure it for example as shown in the illustration.
-
After successfully saving, your dashboard is ready and you have automated the lighting control.