We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Rule :
The following rule will switch on a light and after 20 seconds, the light will switched off.
fun(Pid, Name, Body) -> case Body of "off" -> ok; "on" -> sensor:send([], Name, {"Licht","11111 2","1"}), sensor:send_after(Pid, Name, 20000, [], {"Licht","11111 2","0"}); _ -> ok end end.
There was an error while loading. Please reload this page.