Tracking Work Hours with NFC Tags: Displaying Weekly Stats

Hey everyone, I’ve been experimenting with using an NFC tag to log how long I work each day. It’s been a fun project, and I’m really enjoying how it helps me keep track of my productivity. Here’s how it works: I have an NFC tag that I tap when I start and stop working. This data is then fed into Home Assistant using the history_stats integration. Right now, I’ve got a nice graph set up that shows my work history and peaks, which gives me a daily total of my “on” time. It’s pretty cool to see the data visualized like that!

But here’s where I’m hitting a snag. I’d love to take this a step further and display the total “on” time for each weekday from last week. Ideally, I’d have five counters, each showing a day of the week—like a punch clock system you’d see at work. This would make it even easier to track my work habits and see patterns over time.

Does anyone have any tips or advice on how to achieve this? I’ve read a bit about custom sensors and templates, but I’m not entirely sure how to set this up. Maybe there’s a way to use history_stats to pull the data for each specific day and display it in Lovelace? I’d really appreciate any guidance or suggestions you all might have. Let me know if you’ve tackled something similar or have any creative ideas!

Thanks in advance for your help, and happy automating! :rocket: