# Events
Here is the latest, up to date documentation of possible events (Work in progress).
This file was autogenerated by running 'node scripts/getcommands.js' in the repository.
All descriptions were taken from code.
Do not add anything here, as it will overwritten with next rebuild.
| Event     |  Eventcmd  |
|:------------- |:------- |
| channel&lt;X&gt; | CMD_EVENT_CHANGE_CHANNEL0&lt;X&gt; |
| noPingTime | CMD_EVENT_CHANGE_NOPINGTIME |
| OnRelease | CMD_EVENT_PIN_ONRELEASE |
| OnPress | CMD_EVENT_PIN_ONPRESS |
| OnClick | CMD_EVENT_PIN_ONCLICK |
| OnToggle | CMD_EVENT_PIN_ONTOGGLE |
| IPChange | CMD_EVENT_IPCHANGE |
| OnHold | CMD_EVENT_PIN_ONHOLD |
| OnHoldStart | CMD_EVENT_PIN_ONHOLDSTART |
| OnDblClick | CMD_EVENT_PIN_ONDBLCLICK |
| On3Click | CMD_EVENT_PIN_ON3CLICK |
| On4Click | CMD_EVENT_PIN_ON4CLICK |
| On5Click | CMD_EVENT_PIN_ON5CLICK |
| OnChannelChange | CMD_EVENT_CHANNEL_ONCHANGE |
| OnUART | CMD_EVENT_ON_UART |
| MQTTState | CMD_EVENT_MQTT_STATE<br/>only if defined:<br/>ENABLE_MQTT |
| NoMQTTTime | CMD_EVENT_CHANGE_NOMQTTTIME<br/>only if defined:<br/>ENABLE_MQTT |
| OnMQTT | CMD_EVENT_ON_MQTT<br/>only if defined:<br/>ENABLE_MQTT |
| NTPState | CMD_EVENT_NTP_STATE<br/>only if defined:<br/>ENABLE_NTP |
| LEDState | CMD_EVENT_LED_STATE<br/>only if defined:<br/>ENABLE_LED_BASIC |
| LEDMode | CMD_EVENT_LED_MODE<br/>only if defined:<br/>ENABLE_LED_BASIC |
| voltage | CMD_EVENT_CHANGE_VOLTAGE<br/>only if defined:<br/>ENABLE_BL_SHARED |
| current | CMD_EVENT_CHANGE_CURRENT<br/>only if defined:<br/>ENABLE_BL_SHARED |
| power | CMD_EVENT_CHANGE_POWER<br/>only if defined:<br/>ENABLE_BL_SHARED |
| frequency | CMD_EVENT_CHANGE_FREQUENCY<br/>only if defined:<br/>ENABLE_BL_SHARED |
| energy | CMD_EVENT_CHANGE_CONSUMPTION_TOTAL<br/>only if defined:<br/>ENABLE_BL_SHARED |
| energycounter_last_hour | CMD_EVENT_CHANGE_CONSUMPTION_LAST_HOUR<br/>only if defined:<br/>ENABLE_BL_SHARED |
| IR_RC5 | CMD_EVENT_IR_RC5<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| IR_RC6 | CMD_EVENT_IR_RC6<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| IR_Samsung | CMD_EVENT_IR_SAMSUNG<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| IR_PANASONIC | CMD_EVENT_IR_PANASONIC<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| IR_NEC | CMD_EVENT_IR_NEC<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| IR_SAMSUNG_LG | CMD_EVENT_IR_SAMSUNG_LG<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| IR_SHARP | CMD_EVENT_IR_SHARP<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| IR_SONY | CMD_EVENT_IR_SONY<br/>only if defined:<br/>ENABLE_DRIVER_IRREMOTEESP \|\| ENABLE_DRIVER_IR \|\| ENABLE_DRIVER_IR2 \|\| WINDOWS |
| TuyaMCUParsed | CMD_EVENT_TUYAMCU_PARSED<br/>only if defined:<br/>ENABLE_DRIVER_TUYAMCU |
| OnDP | CMD_EVENT_ON_DP<br/>only if defined:<br/>ENABLE_DRIVER_TUYAMCU |
| MissedHeartbeats | CMD_EVENT_MISSEDHEARTBEATS<br/>only if defined:<br/>ENABLE_DRIVER_TUYAMCU |
| WiFiState | CMD_EVENT_WIFI_STATE |
| OnADCButton | CMD_EVENT_ADC_BUTTON |
| OnCustomDown | CMD_EVENT_CUSTOM_DOWN |
| OnCustomUP | CMD_EVENT_CUSTOM_UP |
| OnCMD | CMD_EVENT_ON_CMD |
| OnHTTP | CMD_EVENT_ON_HTTP |
| OnDiscovery | CMD_EVENT_ON_DISCOVERY |
| RC | CMD_EVENT_RC |

