Ambient Weather available locally now. Integration anyone?

I can see all my weather station data in MQTT Explorer. It seems odd that you can see the offline topic but not the others - maybe something is not quite right with your Python script? (I actually ended up commenting out the lines of code that generate that topic in the Python script because it doesn’t seem to serve any purpose.)

I defined all my sensors in HA using MQTT discovery. This post was really helpful in figuring out how to make them:

I have a big script that I ran to define them, the beginning of it looks like this:

mqtt_weather_station_sensors_create:
  alias: 'MQTT Create WS Sensors'
  sequence:
    - service: mqtt.publish
      data:
        topic: homeassistant/sensor/ws2902c_stationtype/config
        retain: true
        payload: |
          {
            "name": "WS Station Type",
            "unique_id": "ws_stationtype",
            "state_topic": "weather/ws-2902c/stationtype",
            "icon": "mdi:weather-partly-snowy-rainy",
            "device": {
                "identifiers": ["Ambient Weather"],
                "name": "Ambient Weather Station",
                "model": "WS-2902C",
                "manufacturer": "Ambient Weather",
                "sw_version": "4.3.2"
            }
          }
    - service: mqtt.publish
      data:
        topic: homeassistant/sensor/ws2902c_pressure_abs/config
        retain: true
        payload: |
          {
            "name": "WS Abs Barometric Pressure",
            "unique_id": "ws_baromabs",
            "state_topic": "weather/ws-2902c/baromabsin",
            "icon": "mdi:gauge",
            "unit_of_measurement": "inHg",
            "device": {
                "identifiers": ["Ambient Weather"],
                "name": "Ambient Weather Station",
                "model": "WS-2902C",
                "manufacturer": "Ambient Weather",
                "sw_version": "4.3.2"
            }
          }

This is truncated - the full script has an mqtt_publish entry for every weather station sensor. The device section creates a device in HA, which is nice to have. You don’t have to do it this way, but when HA deprecated the old style MQTT sensors I decided to redo mine like this.

Not sure if any of that helps…