I don't know how this is going to end, but one would have to imagine that Nest had a strategy for dealing with this issue on the way in, since they certainly could/should have surveyed the space of thermostat patents and been aware of the minefield that they were walking into.

One might speculate that what we're seeing now is the result of a patent licensing negotiation gone wrong.