Bought new TV, track total TV time from beginning

Hi there!

Bought a new LG tv with WebOS.

I found out how to track TV time, but it will be purged after X days. How to track tv time ? Can i overrrde the recorder purge time or something?

Goal: I want to track the total TV time from the beginning. Even when i HA restart, i still want to track the time (ergo; don’t reset the timer for that day if that would happen).

I have found how to track TV time, but not to override the purge date or something.

Thanks in advance!

My config:

sensor:
- platform: history_stats
  name: Woonkamer TV totaal tijd
  entity_id: media_player.tv_woonkamer
  state: 'on'
  start: "{{ 0 }}"
  end: "{{ now() }}"

Recorder config:

recorder:
  purge_keep_days: 5
  exclude:
    domains:
      - weblink
      - updater
    entities:
      - sensor.date
      - sensor.time
      - sensor.uptime
      - sensor.version

Then tell us what you found so that we don’t waste our time explaining what you already know.

Sorry :slight_smile: i updated the OP with the config i’ve found. But i read in the docs that in my case, the recorder only tracks tv time over the past 5 days.