How to repeat an action until another (specific) device trigger is received in home assistant