Logging the time spent at work

I’m trying to download the log of a history sensor I created in an effort to get a log and statistics on how much time I spend at work per day. The sensor code is below, now I’m having trouble exporting this data out of home assistant.

sensor:
  - platform: history_stats
    name: Time At Work
    entity_id: person.jack
    state: "Work"
    type: time
    start: "{{ now().replace(hour=0, minute=0, second=0) }}"
    end: "{{ now() }}"

You can use file notification.