Getting flow to work from cloud -> device -> cloud