You don’t need that condition at all unless you want to limit what day(s) of the week you want the automation to run on (and by the look of it, you have it set to every day).
Hmm yes here is another story what might be happening is during the 1 second window the internet cuts out precisely at that time to which HA did try to turn off but failed then the 1 second window past meaning HA just leave the smart plug on.
Look at the automation traces if you still have entries from before you changed from 1s to 1m. It’ll tell you exactly why it didn’t work.
PS- your first turned_on trigger is redundant. It’ll only perform the action if you turn on the switch manually exactly between 08:00:00 & 08:00:01. I think you intended to use that as a condition but put it in the wrong place.
So after doing a test automation now it worked so I’m not sure why the last couple of days it didn’t?
I set it back to
after: “08:00:00”
before: “08:00:01”
and see if it works tomorrow
Ok, so now you know that the time condition has nothing to do with the issue (at least not directly). It failed because there was an error with the api for the bulb.
No guessing involved. If it’s Tuya Wifi, it’s almost expected. At the very least switch from using the cloud Tuya integration to the custom Tuyalocal or localTuya or whatever it is the kids are using these days.
Tuya products are notoriously bad devices. There have been no changes in HA regarding retrying on failure. HA simply has never retried sending commands, retries have to be built into the automation by the user. You did not do that.