The thermostat box has a code that says the sensor is gone so I ordered a new one. When I tested the new one by wiring the new sensor in the heating worked fine again. I just did that to check, I have switched the system off again now. So I'm sure it's the sensor that has broken.
Problem...