It is easier to keep the mqtt data in a separate file. So just add in your configuration.yaml the line
mqtt: !include mqtt.yaml and create a separate mqtt.yaml file containing the data, you have exported from weewx into your mqtt broker. My mqtt.yaml looks like (be careful with the indentations!): sensor: - name: weather_station_outtemp_c unique_id: uniqueid__weather_outtemp_c icon: mdi:thermometer state_topic: "weather/outTemp_C" value_template: "{{ value | round(1) }}" unit_of_measurement: "°C" - name: weather_station_intemp_c unique_id: uniqueid__weather_intemp_c icon: mdi:thermometer state_topic: "weather/inTemp_C" value_template: "{{ value | round(1) }}" unit_of_measurement: "°C" - name: weather_station_extratemp1_c unique_id: uniqueid__weather_extratemp1_c icon: mdi:thermometer state_topic: "weather/extraTemp1_C" value_template: "{{ value | round(1) }}" unit_of_measurement: "°C" This is just the top of the file. There are a lot more of state/topics, and they must meet those, which you have uploaded to the mqtt broker. HTH Peter Claudio schrieb am Freitag, 9. Februar 2024 um 17:19:31 UTC+1: > import weewx data from mqtt to home assistant. > I can't configure the configuration.yaml file, if I go to the mqtt > component the weewx topic is visible but it doesn't create the entities for > me and when it creates them it tells me that they are not active. > Does anyone have an example of the configuration.yaml for me > > Thank you > Claudio > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f180f6d3-8fab-46ed-9763-983cf582db87n%40googlegroups.com.