Sadly, I think a Waiters and James Johnson for Anderson and Qi deal makes too much sense. I'm calling it now, it's happening.
It would get Miami out of the luxury tax if Bosh's salary doesn't count towards the cap. If it does, the $5M in savings saves them a TON of luxury tax payment. Miami would also save apx. $29M in 2020-2021 since Johnson and Waiters both have 3 years left compared to Anderson's two. Trading Johnson allows Adebeyo to start at PF, and clears more PT for Winslow at the 4 (since Richardson is likely entrenched as their SF going forward).
As far as Houston goes, they're all-in right now. They're heavily committed to Paul who's aging, so 3 year deals wouldn't scare them. James Johnson and Melo starting at the forward spots makes sense, since Johnson can guard the best forward. Johnson+Capela pick n rolls could be extremely dangerous with the spacing of Paul, Harden, and Gordon (or Melo, if he recovers some shooting form). Waiters gives them insurance behind Gordon.