Using binary sensor for Energy Management

Hi,

I’m running a binary_sensr to capture the changes on my gas meter in my house since a long time. See the config below.
What do I need to do to add the capability to use it in Energy Management?
The sensor does not appear inside the configuration.

binary_sensor:
  - platform: rpi_gpio
    invert_logic: true
    ports:
      18: GASZAEHLER

sensor 1:
  platform: template
  sensors:
    daily_gas_in_m3:
      unit_of_measurement: 'm³'
      value_template: "{{ (states('sensor.daily_gas') | float / 100) }}"
      

Thanks!
Stefan