create_event
Create a new event script in Domoticz by specifying name, language, trigger type, and source code to automate smart home actions based on device changes, time events, or user variables.
Instructions
Create a new event script in Domoticz.
Args: name: Name of the event script. interpreter: The language (e.g., 'Lua', 'Blockly', 'dzVents', 'Python'). event_type: Trigger type (e.g., 'All', 'Device', 'Security', 'Time', 'UserVariable'). xmlstatement: The source code (or XML for Blockly) of the script. eventstatus: '1' for enabled, '0' for disabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| interpreter | Yes | ||
| event_type | Yes | ||
| xmlstatement | Yes | ||
| eventstatus | No | 1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |