WeeWX, MQTT and how to import Data

You need to learn about packages. I always felt that the concept and a base configuration should be part of the default configuration! Anyhow, please read here: Packages - Home Assistant

  1. In your configuration.yaml add:
    homeassistant:
      packages: !include_dir_named packages
    
  2. Create the folder packages
  3. Create and fill packages/weewx.yaml with the content above.

In parallel you can create all kinds of yaml files, for topics. Here is a random example I found via google: home-assistant-config/packages at master · aneisch/home-assistant-config · GitHub