Was about to type in the exact thing @petro just said. If there’s been a change or any retry attempts, it’s on Tuya’s side
You’d need to add some kind of delay, otherwise you’d spam your switch. We’ve been telling you to format your automation correctly since the second post, but you keep ignoring that request so you’ll have to figure it out yourself.
PS- that first turned_on trigger still isn’t doing anything. Go ahead & remove it while you’re there.