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. Creating the flow

    Click on the images to enlarge.

    Insert terminals
  • Open the Terminal inventory and attach your Web-IO Digital.

    Insert 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.

    TOF

  • 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)).

    Logic Editor
  • Add an input and assign it to the terminal that is wired to the manual switch.

    Logic Editor
  • You can also label the nodes to make it easier to understand later which node has which function or where it was integrated.

    Logic Editor
  • 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".

    Logic Editor
  • 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.

    Logic Editor
  • 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.

    Logic Editor
  • Add the output connected to the lamp.

    Logic Editor
  • Optionally, you can add an analogue counter to query the current time value of the switch-off delay.

    Logic Editor
  • You can color-code the nodes as you wish.

    Logic Editor
  • Connect the nodes as described in the image and save the flow.



2. Visualizing the lamp and controller

    Logic Editor
  • 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.

    Dashboard
  • 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.

    Dashboard
  • 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.

    Dashboard Dashboard
  • 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.

    Dashboard Dashboard Dashboard Dashboard Dashboard Dashboard Dashboard
^