It looks like the names have changed again, possibly due to the WeeWX 5.x update. Or at least ThomDietrich’s very useful config doesn’t work any more with the current version. Here’s a partial list of what currently works, if it’s useful I’ll post the full thing.
mqtt:
sensor:
# Temperature
- name: weather_station_outtemp_c
unique_id: uniqueid__weather_outtemp_c
icon: mdi:thermometer
state_topic: "weather/outTemp_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
- name: weather_station_intemp_c
unique_id: uniqueid__weather_intemp_c
icon: mdi:thermometer
state_topic: "weather/inTemp_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
- name: weather_station_dewpoint_c
unique_id: uniqueid__weather_dewpoint_c
icon: mdi:thermometer
state_topic: "weather/dewpoint_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
- name: weather_station_indewpoint_c
unique_id: uniqueid__weather_indewpoint_c
icon: mdi:thermometer
state_topic: "weather/inDewpoint_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
- name: weather_station_windchill_c
unique_id: uniqueid__weather_windchill_c
icon: mdi:thermometer
state_topic: "weather/windchill_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
- name: weather_station_apptemp_c
unique_id: uniqueid__weather_apptemp_c
icon: mdi:thermometer
state_topic: "weather/appTemp_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
- name: weather_station_heatindex_c
unique_id: uniqueid__weather_geatindex_c
icon: mdi:thermometer
state_topic: "weather/heatindex_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
- name: weather_station_humidex_c
unique_id: uniqueid__weather_humindex_c
icon: mdi:thermometer
# Note spelling mistake in the topic.
state_topic: "weather/humidex_degree_C"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "°C"
device_class: temperature
# Humidity
- name: weather_station_outhumidity
unique_id: uniqueid__weather_outhumidity
icon: mdi:water-percent
state_topic: "weather/outHumidity_percent"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "%"
device_class: humidity
##
- name: weather_station_inhumidity
unique_id: uniqueid__weather_inhumidity
icon: mdi:water-percent
state_topic: "weather/inHumidity_percent"
value_template: "{{ value | round(1) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "%"
device_class: humidity
- name: weather_station_altimeter_mbar
unique_id: uniqueid__weather_altimeter_atmospheric
icon: mdi:gauge
state_topic: "weather/altimeter_mbar"
value_template: "{{ value | round(0) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "mbar"
device_class: atmospheric_pressure
- name: weather_station_pressure_mbar
unique_id: uniqueid__weather_pressure_atmospheric
icon: mdi:gauge
state_topic: "weather/pressure_mbar"
value_template: "{{ value | round(0) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "mbar"
device_class: atmospheric_pressure
- name: weather_station_barometer_mbar
unique_id: uniqueid__weather_barometer_atmospheric
icon: mdi:gauge
state_topic: "weather/barometer_mbar"
value_template: "{{ value | round(0) }}"
availability_topic: "weather/connection_status"
payload_available: "online"
payload_not_available: "offline"
unit_of_measurement: "mbar"
device_class: atmospheric_pressure
[...]
One caveat is that some of those entries aren’t available for all station types, so you may need to add or remove pieces depending on what you’ve got available.