1) Give a description of the problem
So, I finally created a smart doggy door and a piston to control it. But now I realize that it opens too early during DST (my dogs and cat ignore the change, lol). So, I’d like to adapt my piston to take advantage of another piston I borrowed that tells me when DST is active and saves it to a global variable (@DST = true or false).
2) What is the expected behaviour?
I want my piston to open an hour later during DST, but I’m not sure how to rewrite the “value” of my “Time happens daily at”. Can time be written as a variable, such {$time + (@DST == “true” ? 1 : 0)} ? I’m thinking maybe adding a line to the DST piston that creates another global variable (@PetDoorTime) that the Doggy Door can subscribe to to determine when to run, but don’t know how to write time as a variable.
Here’s the Doggy Door piston: