Control for district heating appliances