One of modern life’s most satisfying certainties is dialing in the AC and sitting back as the room magically maintains your temperature of choice. But last week, owners of smart thermostats in Texas reported that the magic is gone: Their devices were setting themselves to 4 degrees above the homeowner’s desired temperature, as if to scold them for trying to get too comfortable during a heat wave. Much outrage has ensued.

The toasty Texans had stumbled into a precarious dance of electrical supply and demand. When they’d bought their smart thermostats, they’d opted into a voluntary program called Smart Savers Texas offered by EnergyHub, a software company that runs the program for customers of utilities, including CenterPoint Energy. In times of high demand, like an unrelenting heat wave, they’d agreed to allow that 4-degree bump. During such a “temperature adjustment event,” the user can manually override the increase, according to EnergyHub, but will lose out on their entry to a sweepstakes—up to $5,000 paid toward a year of electricity bills. Anyone who wants to get out of this demand response program can simply unenroll.

Basically, you endure a somewhat hotter room to make sure your AC doesn’t help crash the grid, in which case you and everyone else would have to endure much hotter rooms. EnergyHub is one of several companies that run demand response programs nationwide, and their program is device-agnostic, so it won’t be users of just one brand of thermostat who notice an increase. “The real benefit of these programs is a very small inconvenience—potentially no inconvenience at all—in order to make sure that everybody has a HVAC and lights during these extreme weather events, which I think are becoming more prevalent,” says Erika Diamond, vice president of customer solutions at EnergyHub.

A representative from CenterPoint Energy emailed a statement to WIRED explaining the partnership: “When CenterPoint Energy initiates a curtailment event based on high temperatures or high demand, EnergyHub then starts the energy curtailment through the customers it has enrolled in its program.”

According to the email, the utility runs a “test curtailment” twice a year, and ran one on June 16 from 2 to 5 pm. The way that the Texas-sized outrage unfolded, you’d think this was all a surprise. But not only has EnergyHub been running the program for eight years there, it has similar programs with 50 other utilities around the country, with around 500,000 households enrolled. It initiates two to eight temperature adjustments in Texas per summer, about the same as their national average. Enrollment incentives may vary by utility—rebates on energy bills, for instance—but the goal is the same: Enlist customers to help keep the grid from borking itself.

Image may contain: Universe, Space, Astronomy, Outer Space, Planet, Night, Outdoors, Moon, and Nature

The WIRED Guide to Climate Change

The world is getting warmer, the weather is getting worse. Here’s everything you need to know about what humans can do to stop wrecking the planet.

In other words, these programs reduce demand when supply is running low. “The grid is sized to keep supply and demand in instantaneous balance, because it’s so expensive to store electricity,” says David Victor, a political scientist at the University of California, San Diego, who coauthored a recent major report on the US grid. Any electricity that’s generated has to be used immediately. “If storage were to become ubiquitous and cheap, then that might totally transform the way the grid actually is operating. But right now, in order to move electrons through the grid, and for the grid to stay stable, you have to match supply and demand,” he continues.

Utilities are fully aware of the strain a heat wave will put on the grid, with all those AC units humming along. They can even predict how demand will fluctuate during the day, for instance when people return home from work around 5 or 6 pm and switch on their systems. This is also when supply tightens—utilities can only generate so much power at a given time. “During those periods, the grid is very sensitive—just a percent or two of total demand can have a huge impact,” says Victor. “That’s why there’s such a strong premium on finding strategies where a little bit of demand can be reduced or shifted to a different part of the day. That would then have a big impact on total demand for electricity.”