Is there an action called "recorder.export_statistics"

I’m trying to run the following automation:

alias: Daily Octopus Energy Consumption Report
description: ""
triggers:
  - at: "00:05:00"
    trigger: time
actions:
  - data:
      keep_days: 1
    action: recorder.purge
  - data:
      entity_ids:
        - >-
          sensor.octopus_energy_electricity_xxx_account_current_total_consumption
      start_time: >-
        {{ (now().replace(hour=23, minute=58, second=0) -
        timedelta(days=1)).isoformat() }}
      end_time: "{{ now().replace(hour=0, minute=2, second=0).isoformat() }}"
      file_path: history.csv
      include_attributes: false
    action: recorder.export_statistics
mode: single

why isn’t the action: recorder.export_statistics valid

Because it doesn’t exist. It’s made up, did you make it up or did you get it from an AI?

Got it from Gemini, it was most adamant that it was valid.

Next question will be how do I create and download my report via an automation.

Yep, that’s the problem with ai.

As for your question, there isn’t a way to do what you want currently. There may be a way via a custom integration. Spook has an import service but not export.

Okay, thanks for your help