I have a cabin that is a 500 mile drive for me. When we visit in the winter, I like to pre-warm the place during our drive over so it's not 32 degrees inside when we arrive. I know the furnace warms the place at an average of 4 degrees per hour. Within my Reactor for Vera, I wrote out a rule that would calculate the temp difference and determine how far in advance to turn the furnace on, based on the current temp within the cabin. I'm still new to HE and this is the last rule set I need to migrate over to RM. It's not the end of the world if I can't migrate this one, but it would have a cool factor if I could.
Reactor rules:
Variables:
The ArrivalTime is what my ETA on arriving would be, converted to epoch.
The DeltaTemp is my ideal temperature upon arrival minus what the current temp is. (Which is updated every ten minutes.)
The StartHeating is the ArrivalTime minus the DeltaTemp divided by the 4 degrees per hour (with a plus 1 degree for safe measures.
Then the TimeToStart is all the calculations and what is the trigger to kick this all off, based on the Nest thermostat being Off or in ECO mode.
Is this possible to migrate over to RM? Or should I cut my loses and just remember to start the heating manually. (I have forgotten a couple of times and remembered half way there. 50ish degrees is still better than freezing.)
EDIT: Using the variable math I figured out how to get the DeltaTemp set. Using a CurrentTemp variable that updates when the Indoor Temp changes. But converting the ArrivalTime to epoch, or maybe just being able to use the Time Difference variable, I'm stuck on. Now sure how to set the StartHeatingTime based on the ArrivalTime minus the DeltaTime divided by 4 degrees per hour.