Home assistant core generic turn on / off

Hey folks

I have a heating system setup as a collection of automations around thermostats in the house. I control the call for heat from the boiler using sonoff zigbee switches switching 240v to the boiler call for heat. This all works fine.

I’m having an issue where the “call for heat” switch will randomly turn on, or off, via the home assistant core generic turn on/off function

Looking in the logs I can’t see anything, anywhere that would cause this. At the time the switch turned off this morning, no automations ran, nothing in any logs. I don’t have the switch exposed to Alexa or anything. I’ve tried various things, switching the switch off physically, or via zigbee2mqtt shows up in the logs as “turned off” but not “generic turn off”.

This is now starting to cause an issue as it may turn off the heating completely randomly (this morning it was at 07:37:33 (so it’s not like it’s an hourly thing, and everyone was asleep so it wasn’t anyone pressing anything)

I need to know how to diagnose the initiator of the action as “generic turn on” is not helpful

Like this?

This entity is bound with a generic thermostat

Not sure what you mean by “bound” to a generic thermostat.

The switch is being turned on and off by a climate group helper when the state of all climate entities changes (well the logic is if one entity calls for heat, switch it on, if all stop calling, switch it off)

This is controlled by two automations looking at the climate group state.

The switch doesn’t have any other relationship to any of the thermostat entities

So I don’t know how to see what is turning it on or off outside of the automations