Random “turned on/off by service homeassistant.turn_on/off” on many switches at once

You can start by using this card to display recently triggered automation (made by Taras)-

OR

You can also go to Developer Tools —> Devices —> Find and click your troubled device —> You will see the associated automation to that specific device —> Inspect the automation