Glow / Hildebrand Display - Local MQTT Access - Template Help

Hey everyone. Just looking for a bit of help. I have added all the code from second post (split into separate files) however I can’t get gas import or gas import today entites to appear in HA after several reboots. I got the Hildebrand IHD a couple of days ago. All other entities have been created and are gathering data. The gas import is using this. Ode:

mqtt:
  sensor:  
    - name: "Smart Meter Gas: Import"
      unique_id: "smart_meter_gas_import"
      state_topic: !secret smart_ihd_state_topic_gas
      device_class: "energy"
      unit_of_measurement: "kWh"
      state_class: "total_increasing"
      value_template: >
        {% if value_json['gasmeter']['energy']['import']['cumulative'] == 0 %}
          {{ states('sensor.smart_meter_gas_import') }}
        {% else %}
          {{ value_json['gasmeter']['energy']['import']['cumulative'] }}
        {% endif %}
      icon: "mdi:fire"

State topic is correct as it is the same line gas import this week and gas import this month. I’m running HA 2023.1.1. Also, no errors showing in the logs.
I have installed Megakids GitHub code and that works however ideally I would like to maintain the code myself.

I have even tried adding the debug gas import today entity with:

    - name: "Smart Meter Debug Gas: Import (Today)"
      unique_id: 1ffc7daa-b602-47a8-8621-ac4cd02ec57a
      state_topic: !secret smart_ihd_state_topic_gas
      device_class: "energy"
      unit_of_measurement: "kWh"
      state_class: "measurement"
      value_template: "{{ value_json['gasmeter']['energy']['import']['day'] }}"
      icon: "mdi:fire"

Again, no joy after reboots