InfluxDB Sensor - after 1 month not working anymore

Hi!
After a while, I created sucessfully a sensor within YAML.
After 1 month, Sensor isn’t working anymore. Any ideas?
I guess, I have to adapt the sensor that it fit into the “NEW” Hassio Sensor definition standard?!

InfluxDB 4.5.0 (not 4.7.0)

Br

Code:

sensor:
  - platform: influxdb
    host: ABC-influxdb
    username: ABC
    password: ABC
    queries:
      - name: YESTERDAY
        unit_of_measurement: KWh
        field: "value"
        measurement: '"homeassistant"."autogen"."kWh"'
        group_function: mean
        value_template: '{{ value | round(2) }}'
        where: 'time > now()-2d AND time < now()-1d AND "entity_id"=''BLABLA'' group by time(1d) FILL(null)'
        database: homeassistant
      - name: TODAY
        unit_of_measurement: KWh
        field: "value"
        measurement: '"homeassistant"."autogen"."kWh"'
        group_function: mean
        value_template: '{{ value | round(2) }}'
        where: 'time > now()-1d AND time < now() AND "entity_id"=''BLABLA'' group by time(1d) FILL(null)'
        database: homeassistant