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 > Web interface > Processes > Events > On/Off event

On/Off event

The On event and Off event options determine the events leading to a change in the output's state. These events may be represented by a change of state of the underlying digital input, an internal timer or satisfaction of a predefined condition. What follows is a listing of all available events with their respective [VALUE]:

[VALUE] On Off Event
0✓✓none
1✓✓Rising edge
2✓✓Falling edge
3✓✓Condition
4✓*Deadband (standard)
5✓*Deadband (mid-range)
7✓✓Timeout
9✓*Analog link
* The option acts as both an On event and Off event simultaneously, with no ability to set both events independently or combine various event types.

Rising edge

A Rising edge is a standard trigger suitable for a wide array of digital inputs. The output assumes a predefined state following the change of input from LOW to HIGH, applying Control period, Delay and Fader*.

* The Fader is only applicable to the PWM Type of output.
A rising edge - basic digital input / digital output case.
Rising edge is also usable for analog inputs. The event is triggered once the input voltage rises above 1.6V after being below.

Falling edge

A Falling edge, similarly to the Rising edge, is a standard trigger suitable for a wide array of digital inputs, often complementing the Rising edge in a single application. The output assumes a predefined state following the change of input from from HIGH to LOW, applying Control period, Delay and Fader*.

* The Fader is only applicable to the PWM Type of output.
A falling edge - basic digital input / digital output case.
Falling edge is also usable for analog inputs. The event is triggered once the input voltage drops below 1.6V after being above.

Condition

A Condition is a standard trigger suitable for a variety of analog inputs. The output changes from LOW to HIGH once the condition is evaluated as TRUE, applying the Control period, Delay and Fader*.

* The Fader is only applicable to the PWM Type of output.
Condition - basic analog input / digital output case.
A satisfied condition is only triggered once. To trigger the condition again, the condition itself must evaluate as FALSE and then TRUE again.

Selecting this option in the On event drop-down menu enables an additional row for setting up the test Condition.

Deadband

A Deadband control acts as a simplified, two-way Condition, suitable for a wide range of basic applications where the input needs to be maintained within a predefined range. Depending on the Out on when option, the output is turned ON (or OFF, respectively) when the input value falls below (or rises above, respectively) the deadband range, with the Control period and Fader* being applied.

* The Fader is only applicable to the PWM Type of output.

There are two options for defining the Deadband range.

  • If the Deadband (standard) option is selected, the range is directly defined by providing Low and High values.
  • If the Deadband (mid-range) option is selected, the range thresholds are calculated by either adding or subtracting the Tolerance to/from the provided Mid point.

Deadband (standard) with Out on when option Below selected.
Deadband (standard) with Out on when option Above selected.
Deadband (mid-range) with Out on when option below selected.
This is a two-way option. Upon selecting a Deadband (standard) or a Deadband (mid-range) in the On event, the Off event row disappears from the process options.

Timeout

A Timeout is a simple trigger changing the output from LOW to HIGH (or from HIGH to LOW, respectively) after a predermined idle-time passes while being LOW (or HIGH, respectively) regardless of the cause of the initial state change.

Timeout - basic digital output case.

Analog link

An Analog link is a direct, real-time translation between an analog input and a PWM output. Selecting an Analog link in the On event drop-down menu hides the Off event as the Analog link is a two-way control not allowing combination with other events. When selected, the output is evaluated multiple times per second and is set to a value between Low output and High output depending on the immediate input reading and its relative position within the range between Low input and High input based on a linear interpolation.

Application of an analog link between an analog input and PWM output.
If the input reading falls between Low input and High input, then the output is a linear combination of Low output and High output.
This is a two-way option. Upon selecting an Analog link in the On event, the Off event row disappears from the process options.

HTTP

The device will accept HTTP requests at the following URLs related to:

  • On event:

(POST) http://[IPv4]/var_set?param=onevnt_[PROCESS ID]&val=[VALUE]
(GET) http://[IPv4]/var_request?param=onevnt_[PROCESS ID]

  • Off event:

(POST) http://[IPv4]/var_set?param=offevnt_[PROCESS ID]&val=[VALUE]
(GET) http://[IPv4]/var_request?param=offevnt_[PROCESS ID]



POST: http://192.168.1.255/var_set?param=onevnt_11&val=1

will set the Process #11 output to turn ON following the Rising edge recorded on the input.

Learn more in HTTP API.

MQTT

This parameter cannot be accessed via MQTT. Learn more in MQTT API.

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