Create daily download counter... Is ChatGPT correct?

I have an entity that reports the total downloaded MB from my router.
I need a “Daily Download” entity so I thought I’d ask ChatGPT just as a test…

What are the thoughts on this as the recommended approach? It’s going to be interesting to see how many people will assume that the “answer” given by an AI model is the correct and best way…

sensor:
  - platform: history_stats
    name: Daily Download
    entity_id: sensor.router_downloaded
    state: "on"
    type: sum
    start: "{{ now().replace(hour=0, minute=0, second=0) }}"

Not even close. You want the statistics sensor.

2 Likes

So is it’s recommended approach incorrect in that it will not work or just not the agreed best way?

This is the response when I said I want to use a statistics sensor instead :slight_smile:

2 Likes

Apologies, I had not seen that comms…

It’s pinned to the top of the list.

1 Like