This is not a basic question at all!
Since utility meter consumption readings usually arrive as a block update of 24 hours, and a day or so late, they are not available immediately in the standard sensor.gas_energy_consumption entity. The standard “sensor.” entity will be captured by the HA Recorder every hour into the long-term statistics, and we can get at these value for plotting in an Apex Graph using the normal entity or from the long-term statistics table by using the extra statistics option. However, these entities will have a state value that typically only changes once per day, being the last consumption value from the previous day, updated only when the new block of consumption values arrives.
Integrations can however add back in to the long-term statistics table the appropriate records for each hour, with a consumption reading as it would have appeared if the data had been available live. These extra values are added using names such as octopus_energy:gas_energy_consumption where the . is replaced by :.
Since these additional records are not created by the Recorder, and do not have an owning entity, we have to access them slightly differently.
The standard Statistics Graph card will accept any sensor. entity and also any integration: entity, known as an “Entity without state”. You just have to type in the opower:pge_gas into the “Add a statistic” box and it should appear in the dropdown list for you to select.
You will probably need to set the stat type to “State”, and use the ‘hour’ period.
This graph shows the difference between the two “entities”.
The yellow line comes from the standard “sensor.octopus_energy_gas_accumulative_consumption” entity that exists in Home Assistant with a state value that is updated once per day, and shows the total consumption for a day before. In my case, the readings are coming in two days after, so the reading updated early today (3rd Feb) is for what was used during 1st Feb.
The blue line comes from the “octopus_energy:gas_accumulative_consumption” extra ‘entity without state’ that has been back-added later by the integration, and hence there are 24 hour records for the 1st of Feb, showing the use hour by hour up to the total that matches with the sensor, albeit a couple of days later.
As far as I know, there is no way to do this in Apex Graphs, so you should use this card instead.