Материал из Module developer
SubDevice.AddEvent (works via a function)
Add an event. An event is an obligatory part of creating rules. This event works via a function
Синтаксис
SubDevice.AddEvent(Name, Path, ScriptCall, Method, Space, [Default], [AdvancedField])
| Название | Пример | Описание |
| Name | "Temperature drops below..." | type: String Event name |
| Path | "Drivers.Nest.CurrentTemperature" | type: String Full path to a channel, a driver feedback channel or a token. Subsciption to keeping track of changes |
| ScriptCall | true | type: Boolean Feature od working via a funtion. In this realization set true |
| Method | function(in_data){...} | type: Function Performed function. The coming parameter to the function can be:
|
| На выходе |
{{{output}}}
Пример
{{{JSsample}}}
{{{attentions}}}
