I have 2 automations that control a light.
n°1 calls a script to dim when pc is offline (away from desk) and switches off some other stuff
n°2 switches the light off and stops the music when I leave the room
It happens when I
leave the room after switch pc off (automation n°1 is executed) and shorly after I leave the room I start automation n°2, the light switches back on.
This is because I have a binary sensor for n°1 (ping) with a delay_off of 5 minutes, so this behavior is normal.
Is it possible to not have the light come back on if these 2 automations are started withing this 5 minute frame?