MQTT not reading my weewx/acurite mqtt defined sensors


MQTT Browser shows my Acurite weewx station outside temperature being published as acurite/outTemp_C as can be seen here:


In configuration.yaml, I have the following:

  - platform: mqtt
    name: "outside_temperature"
    state_topic: "acurite/outTemp_C"
    unit_of_measurement: '°C'
    value_template: "{{ (value | round(1)) | float }}"

And yet, in debugger, I can’t get it to display the temperature :frowning:


And the MQTT integration doesn’t see my Acurite sensor.

Anybody knows what I’m doing wrong?


I think I’ve figured it out. I used to read that same variable from a json packet read from a http page but it often timed out, hence why I wanted to try mqtt. I simply changed how it was configured in configuration.yaml.

I renamed the mqtt defined name from outside_temperature to acurite_outside_temperature and I do get a value now.

Well, nope, I didn’t figured it out. Now I think I did. In Weewx MQTT configuration, retain was false so the sensor was ‘unavailable’ until Weewx published its next set of data (which is every 5 minutes).