ayatec logo
Home Store Blog Contact
unicontrol user guide by ayatec
Home Store Blog Contact

Topics

  1. Welcome
  2. Getting started
    1. What is unicontrol
    2. How it works
    3. Connectivity
    4. Integration options
    5. Default hardware
    6. Hardware extensions
    7. Special sensors
    8. RGB driver
    9. Audio driver
    10. Network API - HTTP
    11. Network API - MQTT
    12. Network security
    13. Downloads
  3. Web Interface
    1. Processes
      1. Process
      2. Name
      3. Main state
      4. Initial state
      5. Display
      6. Constraints
        1. Process timer
        2. Variable contraints
        3. Force output
      7. Input
        1. Input source
        2. Channel
        3. Control period
        4. Value
        5. Publish
        6. Frequency
        7. Subtopic
      8. Events
        1. On/Off event
        2. Condition
        3. Idle/running time
        4. Delay on/off
        5. Fade in/out
        6. High/low input
        7. Mid point/Tolerance
        8. Out on when
      9. Output
        1. Primary output
        2. Action
        3. Type
        4. Invert
        5. Duty cycle
        6. Mem value
        7. High/low output
        8. Folder/Track
        9. RGB mode
        10. RGB color
        11. RGB brightness
        12. RGB speed
        13. Publish
        14. Subtopic
        15. Secondary outputs
      10. Cycle
        1. Cycles
        2. High/Low phase
      11. On/Off button
    2. Peripheral
      1. Hardware
      2. Type
      3. Calibration
      4. Mapping (edit)
      5. IR remote (edit)
      6. Impulse_counter (edit)
      7. RGB driver (edit)
      8. DS18B20 (edit)
    3. Device
    4. Network
    5. System
    6. License
  4. Tutorials
    1. First boot
    2. First process
    3. Connect to MQTT
    4. Process sequencing

    5. DIY Project: Bath Fan

In this article

  • Introduction
advert
unicontrol > Getting Started > Integration options

Integration options

When considering how to integrate a unicontrol device into one's IoT environment, there are multiple implementation options available ranging from a completely segregated offline unit to a full-fledged online solution. The ideal option varies greatly based on the user's experience level, current state of their smart environment, future plans, or simply the purpose of the device.

A critical part of integrating the unicontrol device is ensuring protection against unauthorized access or other vulnerabilities. Check the section on Network security to learn more about this subject.

Various available options for integration.

Standalone modules

The first and simplest option is to have the unicontrol device fully offline with no options for remote monitoring or control. Although this leaves the most powerful capabilities of unicontrol unused, it may still be acceptable in applications where no remote access or internet connection is required.

Standalone unicontrol modules.

Although connection to the network and/or internet may be necessary for the device's initial activation and set-up, subsequently it may be operated in a fully offline mode once initialized.

Offline local network

Connecting the unicontrol device to a wireless network (even without internet access) enables an HTTP API. This allows the user to obtain input readings and output states, change settings, or send commands to the device from anywhere within the local network. Hosting a local copy the set-up interface also becomes possible.

unicontrol modules with Wi-Fi connection to local network.

Basic online setup

Maintaining an internet connection brings forth further capabilities. At the very least, internet is needed for obtaining the current time in the absence of a dedicated RTC module, which is essential for timed processes. It also extends the usability of the following functionalities to be usable anywhere in the world, as long as an internet connection is available:

  • HTTP API - by port forwarding directly to the device (in case a public IP address is available)
  • MQTT API - by connecting to an externally hosted MQTT broker
  • Programming manager - by port forwarding directly to an externally hosted programming manager like Node-RED or other.
unicontrol modules with internet connection.

Local MQTT broker

Using MQTT protocol to exchange messages and commands significantly improves the user experience with unicontrol devices, as it allows to comfortably receive the telemetry data collected by the device or change settings and send commands directly from your smartphone using standard third party software available on Google Play or the App Store.

unicontrol modules connected to a local MQTT broker.

An MQTT broker like Mosquitto can be easily hosted by a microcomputer connected to your local wireless network. Although in this set-up the messages will not be available from outside your local network, within it this configuration will provide all advantages offered by MQTT for a fairly small initial investment and no monthly fees.

Local programming manager

Another significant step up in the smart environment is using a third-party programming tool or manager like Node-RED. This provides a wide variety of additional tools ranging from embedding external data in local algorithms to creating professional custom dashboards.

unicontrol modules with a local Node-RED.

Node-RED can be hosted in a local network similarly to the MQTT broker and is free of charge as well.

External MQTT broker

When seeking greater mobility, a natural next step is to use an external online MQTT broker accessible from anywhere in the world instead of only within your local network. This can be obtained in multiple ways:

  • 1. Locally hosted broker may be forwarded to an external port in case of static external IP address
  • 2. Use one of professional MQTT online services
  • 3. Use one of free MQTT online broker

Connecting to the external broker is, however, same as connecting to the local one.

unicontrol modules connected to external MQTT broker.

Please check Network security to learn more about security aspects of using external MQTT broker.

Full online setup

Although locally hosted Node-RED offers most of the benefits of having an external MQTT broker, you may still opt for externally hosted Node-RED, especially when accessing the dashboard from outside the local network is required.

Full online setup.
© 2024 ayatec.eu • Found a mistake?  Let us know!