Ability to stop Climate/Generic Thermostat when it's heating but room temperature is decreasing

Hey guys,

It would be a nice feature if the climate/generic_thermostat components can detect when the heater is ON but room temperature is suddenly decreasing.

This can be very useful to shut off the heater for example if someone in the house opens a window to get fresh/cold air instead decreasing the temperature. This cold also be used during summer when the room is cold and temperature is suddenly increasing.

Just saw the binary_sensor.trend which could be very usefull in my case