Let me preface this by saying that I am a neophyte of HOMEASSTANT and I come from an Apple Homekit based system.
I have some state based automations (e.g. when light A comes on, turn off light B). The devices are integrated via HOMEKIT Controller (I have no other choice).
If I turn on the light (trigger) via the Home app on the iphone or via Lovelace, the automation is immediate, but if I turn them on via the physical button I always have some delay. I have therefore come to the conclusion that this depends on the pooling / fetching time of HOMEASSISTENT. Is there any way to change this parameter?