Application for the logic.hub
Intelligent light regulation using the logic.hub
Visualizing lamp, installing turn-off delay and switching light
More links
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. Setting up the flow
-
Click on the images to enlarge!
-
- Open the web interface of your logic.hub and click on Terminal inventory.
- Click on ADD W&T TERMINAL, or on the
to add devices from other manufacturers.
-
-
- Then click on ADD SELECTED TERMINALS.
-
-
- Once all terminals have been added, you only need to save.
-
-
- Adding a Web-IO Digital
- Make sure that MQTT is activated and that the IP address of the broker (logic.hub) matches.
- Publish and Subscribe must also be activated, as shown in the image.
- In the web interface of the logic.hub click on Logic Editor.
- 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 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.
2. Visualizing the lamp and controller
-
-
- Click on Dashboard on the web interface of the logic.hub.
- Create a new dashboard by clicking on ADD 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.
-
-
- After successfully saving, your dashboard is ready and you have automated the lighting control.
-
-
- 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.
-
-
- From 45000ms to 90000ms
-
-
- Ab 90000ms to 135000ms
-
-
- From 135000ms to 180000ms
-
-
- From 180000ms
-
-
- Time run through with Ticker label
-
-
- Time Runs up with Ticker label
-
-
- Time expired: Light is off.