If the sensors are already in those states it wont trigger. Either the sun needs to change from above to below horizon or the harmony hub state has to change (to anything but PowerOff) for the automation to trigger. Try changing the harmony hub state.
Interesting - so we move the triggers to conditionals instead?
I think the problem with that one would be if we’re already watching TV, and then the sun goes down. I would need another automation that triggers on the sun.sun changing states as well, correct?
The goal of this version of the automation was to simply see if it works. If it does, that’s encouraging, and the next step would be to shift important bits from the condition into the trigger and still keep it working.
Ah, I see where the confusion came from then! I was under the impression that it would check the states periodically to evaluate the value_template. Unfortunately, it seems that it only checks it if a state changes. The sun had already set, and the tv remote was already in the ‘Watch Roku’ state when I updated my script, so it did not trigger. @tom_l’s reply was correct.
Once I tried toggling the tv remote state to PowerOff and then to something else, the automation triggered and all was good.
You guys are great for helping me out - thanks again!