Unable to use Listen to events (MQTT) - Cannot read my energy meters

Hi,
I had my energy meters working (gas and electric). I modified the config to match the new post 2022.9 release recommendations.
I have an MQTT broker configured and working. I verified using MQTT explorer.

  1. When I listen to events from MQTT Configure menu item, I get all the events from my broker

  2. When I listen to events from Developer Tools → Events, I get nothing. Using * on the event to subscribe section, I get a lot of events, however when I configure my energy meter event (which I can see successfully from the Systems Integration → MQTT → Configure → Listen to events, I don’t get any events being registered.

I am getting the error message that my energy meter entity is unavailable.

Any pointers on:
a) Why is there a difference in behavior for the Listen to events from the two locations in Home Assistant
b) Obtain the MQTT readings from my MQTT message broker?

Templates.yaml file

  • sensor:

    • name: “Gas Meter Metric”
      state: >
      {{ states(‘sensor.gas_meter_reading’) | float*0.0283168 | round(2) }}
      icon: mdi:fire
      unit_of_measurement: “m³”
      state_class: “total_increasing”
      device_class: “gas”
  • sensor:

    • name: “Electric Meter Metric”
      state: >
      {{ states(‘sensor.electric_meter_reading’) | round(2) }}
      icon: mdi:flash
      unit_of_measurement: “kWh”
      state_class: “total_increasing”
      device_class: “energy”

Sensor.yaml file file

Gas Meter MQTT Sensor

mqtt:
sensor:

  • name: “Gas Meter Reading”
    state_topic: “metermon/75387939”
    qos: 1
    unit_of_measurement: “ft³”
    value_template: “{{value_json.Consumption}}”
    device_class: “gas”

Electric Meter MQTT Sensor

  • name: “Electric Meter Reading”
    state_topic: “metermon/38241050”
    qos: 1
    unit_of_measurement: “kWh”
    value_template: “{{value_json.Consumption}}”
    device_class: “energy”