Read Sensor with MQTT over internet, not working

Why not just

mqtt:
  broker: xxx.50.194.xx

as per the docs? You've given it a string which it is interpreting as a domain name and trying to resolve. Also, HTTP is nothing to do with it.

Please format your code correctly in future posts. See here: