Fade in/out
Fade-in and Fade-out are PWM
-related parameters which are only available if PWM
is enabled in the Type.
Setting the Fade-in to be greater than zero results into a gradual transition of the Pulse duty cycle from 0% to a High output.
Other way around, setting the Fade-out to be greater than zero results into a gradual transition of the duty cycle from the High output to 0%:
Inverting a PWM
output changes the original pulse range of (0% to High output) into (High output to 100%).
The Fade periods, as all other time period variables, are provided in two parts: Quantity and Unit:
Quantity
The first parameter listed is the Quantity which defines how many time units will have to elapse before the process output reacts to the input event.
Its [VALUE]
can be anywhere between 0
and 255
.
Unit
The second parameter listed is the Unit which defines the time measurement unit of the provided Quantity.
Available [VALUE]
options are summarized in the following table:
[VALUE] | Unit |
---|---|
0 | One tenth (0.1) of a second |
1 | One second |
2 | Ten seconds |
3 | One minute |
4 | Ten minutes |
5 | One hour |
Thus, effectively, the provided time period can range between 0.1 second and 255 hours.
HTTP
The device will accept HTTP requests at the following URLs related to:
- Fade-in Quantity:
(POST) http://[IPv4]
/var_set?param=onfad_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=onfad_[PROCESS ID]
- Fade-out Quantity:
(POST) http://[IPv4]
/var_set?param=offfad_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=offfad_[PROCESS ID]
- Fade-in Unit:
(POST) http://[IPv4]
/var_set?param=onfadu_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=onfadu_[PROCESS ID]
- Fade-out Unit:
(POST) http://[IPv4]
/var_set?param=offfadu_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=offfadu_[PROCESS ID]
POST: http://192.168.1.255/var_set?param=offfad_2&val=35
POST: http://192.168.1.255/var_set?param=offfadu_2&val=0 (or keeping the default value)
will set the Fade-out for Process #2 to 3.5 seconds.
Learn more in HTTP API.
MQTT
This parameter cannot be accessed via MQTT. Learn more in MQTT API.