Set up load balancer with two pools named after your isp (or something else just be sure to add that name to the export below) In each pool add your ip address
Configure your unifi creds Configure your cloudflare creds Configure name of your pools
For example:
export UNIFI_USER=joebob
export UNIFI_PWD=mysecurepwd
export UNIFI_URL=https://192.168.1.1/
export CLOUDFLARE_API_KEY='deadbeefdeadbeefdeadbeefdeadbeefdeadb'
export CLOUDFLARE_API_EMAIL='joebob@aol.com'
export WAN1_NAME=att
export WAN2_NAME=verizon