require "cloud_devices" local status, error_msg = pcall(cloud_devices.send_command, command_id, cloud_device_id, "text_command", "send", { text = "turn on the light" }) if not status then print("Error sending command: " .. error_msg) end