Skip to content

Commit

Permalink
✨ (ha): Add history sensor for tv watched
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmaek committed Feb 25, 2024
1 parent d74bedf commit bdc90aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integrations/sensor/history_stats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- platform: history_stats
name: 'TV Watched (This week)'
entity_id: media_player.samsung_7_series_50
state: 'on'
type: time
start: "{{ as_timestamp(now().replace(hour=0, minute=0, second=0, microsecond=0)) - now().weekday() * 86400 }}"
end: "{{ now() }}"

0 comments on commit bdc90aa

Please sign in to comment.