Publish sensor data to external server

Hi

I have a nice, little weather station in my garden which sends all its data without problems to HA. Now I want to give my neighbor read only access to only this data. What’s the recommended way to do that? I think I can’t use a public MQTT broker since I already use MQTT internally. Is it possible to publish selected data publicly with REST? Or any other ideas?

Thx!

Thorsten

Found a quite simple solution myself:

  1. Publish sensor data to “main” MQTT broker
mqtt:
  broker: 192.168.205.2
  port: 1883
  discovery: true

mqtt_statestream:
  base_topic: weather
  publish_attributes: true
  publish_timestamps: true
  include:
    entities:
      - sensor.absolute_pressure
      - sensor.daily_rain_rate
      - sensor.dewpoint
  1. Setup another secondary MQTT broker (eg. Docker container) for external access and subscribe (bridge) to the weather topic
connection mosquitto-ext
address 192.168.205.2:1883
topic weather/# in
  1. Allow external access to the secondary MQTT broker in your router (port forwarding)

Very simple. Have a nice sunday!

Thorsten