Prepare Home per expectedArrival Variable

How do I trigger based on an expectedArrival variable?

e.g. if we go away for the weekend, I'd like to set an expectedArrival date variable and have the house heated/cooled when we return home.

If this is a hub variable, you can use the "Certain Time (and optional date)" trigger capability in the Rule. Under "At a specific time, sunrise/sunset or variable time?," select "Variable," then choose your variable and also select "Use date." (You will have to have created it first, and this should be a specific date and time, not just a date--the rule needs to know when to actually trigger.) Then, you can do whatever you want in the actions.

You would, of course, need some way to set this variable--whether manually before you leave, a Dashboard or similar solution while you're away, etc.

1 Like

I created a DateTime Hub Variable named expectedArrival with a corresponding Connector but there isn't a 'Variable DateTime' Dashboard template, only a 'Variable Date.'

image

So how do I remotely change the time of our expectedArrival?

You don't need a variable connector to use variables with Hubitat Dashboard (anymore), nor would I recommend that. Instead, authorize the variable and use it directly by choosing "Variable" as the "Tile Type" and choosing the variable you want. Then, you'll get a single tile that will let you change the date and time in one.

If you want to pursue the connector route for some reason, it looks like you'd be stuck using two tiles since there is only a template for date or time (though changing them one at at time did work in my testing). Or if you just don't change the time, it will remain the same (so, for example, 12:01 AM would work if you always want to do it near midnight).

1 Like

Perfect, this is the first time I've used a variable in a dashboard without a connector so thanks for the explanation.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.