Is this Possible

Did the example I suggested fail to work entirely or just under certain conditions? What were the results of your tests?

tried your .yaml, sadly didn’t turn fan back on, thank you for trying

That surprised me so I tested the automation for myself (using light and switch entities that exist in my system and setting the time range to this afternoon).

  • I confirmed your result; it failed to turn the switch back on.

  • I checked the automation’s trace and discovered a typo in the second trigger’s is_true template. Just two }} characters in the wrong place rendered the template non-functional. :man_facepalming:

  • I removed the two offending characters, repeated the tests, and the automation now works exactly the way you requested.

I have corrected the original example I posted above (in case someone else wishes to use it). All that’s needed is to remove the two }} characters shown below.

Anyway, even if you don’t use it, I can offer it as a solution to other users who may have the same requirements.

2 Likes

That works also, I now have 2 options that work