Making harmony hub action work once per day


#1

1) Give a description of the problem
I have a few harmony hub actions that work through alexa/ harmony hub easily, however automating a specific tv to turn on when i get on the couch after work and turning on the tv is causing an issue if i try to use a different harmony command via alexa or harmony app etc.
2) What is the expected behavior?
When sitting on the couch I trigger “watch tv” that launches a harmony hub action to turn the tv on to the roku initial screen. then launching xbox or any other device by either alexa command through harmony or harm if need be for input I want to turn on without going back to the roku screen because of the motion detector triggering that specific action. The best I have come up with is using the remote for the tv, which allows the first harmony command to stay on, then setting between 3 and 3:01 turning it off so it works the following night.
3) What is happening/not happening?
Motion sensor triggers tv to turn on, but using harmony hub or alexa for another harmony command, turns off the command that was used to turn the tv on, and then the motion sensor triggers a launch to the roku starting screen. If I use the remote vs harmony hub commands via app or alexa I have no Issue but any other input, (alexa or harmony app) causes issues and restart of roku screen on tv… What can i try as a solution if this makes sense? I feel like i’m missing something simple in this.

**4)


#2

I’m not sure I totally follow you on this one…

But I think what it sounds like what you want to do (at least from the title of this post) is to restrict an action to only fire once per day.

That’s easy enough. Just set a variable equal to a time in the future when the action is permitted to happen again. Then use that as a condition for firing the action.

I detail the steps in this post here: See #4


#3

That’s what I’m looking to do. Now i just have to figure out how to put in where you have {$now} I’m not sure where that is in the system to put it into the code.


#4

Oh… $now is a system variable. So you’d select Variable.

it’s helpful sometimes to import example pistons and then click on each line of them (to bring up the edit mode) so that you can see how to recreate the actions yourself in your own pistons. :slight_smile: