Chat-GPT “hallucinates” heavily when it comes to HA configuration. It’s pool of data is about 2 years old and, conservatively, at least 50% of that is people on forums and Reddit posting configurations that don’t work and asking why they don’t work…
You need to set up a Template Binary sensor that is ‘on’ when current load power is over 2000, then base your History-Stats sensor on the binary sensor.