add_action_to_logicblock
ChatGPTAdd a notification action to a logicblock. Creates the notification and links it in one step. The action will execute when the logicblock evaluates to the specified result (positive or negative). Use {{variable_name}} in subject/body to insert variable values dynamically.
add_alexa_action
ChatGPTAdd an Alexa action to a logicblock. Triggers an Alexa routine when the logicblock evaluates.
add_apilio_action
ChatGPTAdd an Apilio internal action to a logicblock. Can set variables (boolean, string, numeric) or control other logicblocks (activate, deactivate, evaluate). Use {{variable_name}} in the value to insert variable values dynamically.
add_device_attribute
ChatGPTAdd an attribute to a virtual (apilio) device. Automatically creates the underlying variable. Use get_device_attributes to see existing attributes and their IDs (needed for create_device_condition).
add_ewelink_action
ChatGPTAdd an eWeLink/Sonoff device action to a logicblock. Use get_device_attributes to discover available actions for a device. Use {{variable_name}} in action_detail to insert variable values dynamically.
add_ifttt_action
ChatGPTAdd an IFTTT action to a logicblock. Triggers an IFTTT applet via the event name. Before creating, use list_ifttt_actions to check for existing event names and suggest reusing one. Use {{variable_name}} in value1/value2/value3 to insert variable values dynamically.
add_tado_action
ChatGPTAdd a Tado heating action to a logicblock. Can set temperature, turn off, or resume automatic mode for a Tado zone. Use {{variable_name}} in action_detail to insert variable values dynamically.
create_device
ChatGPTCreate a virtual (apilio) device. Use add_device_attribute to add attributes after creation.
create_device_condition
ChatGPTCreate a condition based on a device attribute. Use get_device_attributes to find attribute IDs. For boolean attributes: pass required_state (true/false, default: true). For numeric attributes: pass compare_type (equal, notequal, greaterthan, greaterorequalthan, lessthan, lessorequalthan) and compare_value. For string attributes: pass compare_type (match, notmatch, contains, notcontains) and compare_value.
create_logicblock
ChatGPTCreate a logicblock (automation rule) with conditions and optional notification action. Link existing conditions by UUID (from create_device_condition, create_time_condition, or list existing variable conditions via the Apilio web UI). Optionally create an inline notification action that triggers on the positive or negative result. Prefer combining conditions into one logicblock using complex condition logic over creating multiple logicblocks. Supports AND, OR, XOR, NOR, NAND operators with nesting for premium users. Example expression: OR(motion_detected,AND(door_open,evening_hours)) where names refer to linked conditions.
create_time_condition
ChatGPTCreate a time-based condition. Two categories: Time events (triggers): timeevent_absolute (cron schedule), timeevent_at_sunrise, timeevent_at_sunset. Triggering is always enabled automatically for time events. Time frames (true during window): timeframe_absolute_to_duration (cron + duration in seconds), timeframe_absolute_to_sunrise, timeframe_absolute_to_sunset, timeframe_sunrise_to_absolute, timeframe_sunset_to_absolute, timeframe_sunrise_to_sunset, timeframe_sunset_to_sunrise. Cron expressions are 5-part (minute hour day month weekday), e.g. "30 8 1,2,3,4,5" for weekdays at 8:30.
evaluate_logicblock
ChatGPTTrigger evaluation of a logicblock. Executes linked actions based on the result.
get_device_attributes
ChatGPTGet all attributes of a device by its UUID. Returns {attributes: [...]}. For tado and eWeLink devices, also includes available_actions: [...].
get_variable
ChatGPTGet a specific variable by UUID
list_devices
ChatGPTList devices, optionally filtered by service.
list_ifttt_actions
ChatGPTList existing IFTTT actions (event names). Use this before add_ifttt_action to check for reusable actions.
list_log_entries
ChatGPTList log entries (event log). For logicblocks, includes logs from the logicblock and all its linked actions.
list_logicblocks
ChatGPTList all logicblocks
list_variables
ChatGPTList all user variables, optionally filtered by type (boolean, string, numeric)
set_logicblock_active
ChatGPTActivate or deactivate a logicblock
set_variable
ChatGPTUpdate a variable's value. Triggers linked logicblock evaluations automatically.