ESPEasy Event Reference

From Let's Control It
Revision as of 15:42, 22 October 2016 by Admin (talk | contribs)
Jump to navigation Jump to search

WIP.gifYou may hear some construction noise in the background...


The rules engine can be used to implement some custom actions based on events. ESP Easy tasks that read sensors will produce events that are run through the engine processor in the following format:

<Taskname>#<ValueName>

There will be one event for each reading. When a device reads multiple values like temperature and humidity, it will produce two events.

So if you have a task with the name "DHT11-Outside" and the default valuenames, there will be these events:

DHT11-Outside#Temperature
DHT11-Outside#Humidity

Besides the task generated events, there can be other system events or events that are generated using the rules engine:


Event Detailed info Sample
<taskname>#<valuename> Each task can produced one or more events, one each for each measured value on DHT11-Outside#Temperature>20
gpio 2,1
endon
System#Boot Triggered at boot time on System#Boot
gpio 2,1
timerSet 1,30
endon
System#Sleep Triggered just before the ESP goes to deep sleep on System#Sleep
gpio 2,0
endon
Clock#Time Triggered every minute on Clock#Time=All,12:00
gpio 2,1
endon
Rules#Timer Triggered when a rules timer ends on Rules#Timer=1
gpio 2,1
endon