Unexpected GPIO control by HA

I’m using a RPI4 with Waveshare 3 channel relay board and HA to control heating in my garage by utilizing rpi_gpio and generic thermostat.

Last winter it was working like a charm, but as I now tested it there is a slight problem: When turning on the heating (using generic thermostat) heating starts and I can hear that relay clicks and actuator starts to move. However, after a while relay clicks and heating is stopped. Sometimes it’s couple of minutes from the start of heating, sometimes only couple of tens of seconds.

Hardware is OK, because if HA is stopped and command line tool gpio used to control the relevant gpio pins, they keep the state I set them to. So it seems that it is that something in HA that is now malfunctioning. Any ideas what this might be?

Here’s my rpi_gpio config

- platform: rpi_gpio
    ports:
      26: Garage 1
      20: Garage 2
      21: Garage 3
    invert_logic: true

Maybe a missed script or automation. You could try changing the entity names and then changing the only relevant automations/thermostat. to rule that out.

It was an automation bug. Thanks for the hint!