Wiesemann & Theis GmbH

Networking, sensors and interface technology for industry, office and IT

Application for the logic.hub

Intelligent light regulation using the logic.hub

Visualizing lamp, installing turn-off delay and switching light

In this application, we show you how to configure the logic.hub as a light switch for lamps and other devices. Follow the instructions further down on this page, in which we explain step by step how to automate the lamp control.

Model


What you’ll need:

Do you not yet have a logic.hub but would like to try out the example with no obligation?

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
    Product illustration: logic.hub

    logic.hub



What’s explained:



1. Setting up the flow

  • Click on the images to enlarge!

    Save terminals
    • Open the web interface of your logic.hub and click on Terminal inventory.
    • Click on ADD W&T TERMINAL, or on the Plus sign to add devices from other manufacturers.
  • Set up terminals
    • Then click on ADD SELECTED TERMINALS.
  • Save terminals
    • Once all terminals have been added, you only need to save.
  • Save terminals
    • 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.

  • Create comparison
    • Add the turn-off delay (TOF)).
  • Create comparison
    • Add an input and assign it to the terminal that is wired to the manual switch.
  • Create comparison
    • You can also label the nodes to make it easier to understand later which node has which function or where it was integrated.
  • Create comparison
    • 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".
  • Create comparison
    • 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.
  • Create comparison
    • 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.
  • Create comparison
    • Add the output connected to the lamp.
  • Create comparison
    • Optionally, you can add an analogue counter to query the current time value of the switch-off delay.
  • Create comparison
    • You can color-code the nodes as you wish.
  • Create comparison
    • Connect the nodes as described in the image and save the flow.

2. Visualizing the lamp and controller

  • Set up terminals
    • Click on Dashboard on the web interface of the logic.hub.
    • Create a new dashboard by clicking on ADD DASHBOARD.
  • Set up terminals
    • Add a header label from the full-width tiles and give your dashboard a heading.
  • Set up terminals
    • 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 up terminals
    • 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.
  • Set up terminals
    • After successfully saving, your dashboard is ready and you have automated the lighting control.
  • Set up terminals
    • 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.
  • Set up terminals
    • From 45000ms to 90000ms
  • Set up terminals
    • Ab 90000ms to 135000ms
  • Set up terminals
    • From 135000ms to 180000ms
  • Set up terminals
    • From 180000ms
  • Set up terminals
    • Time run through with Ticker label
  • Set up terminals
    • Time Runs up with Ticker label
  • Set up terminals
    • Time expired: Light is off.
^