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