Heat pump controller