If mode is Evening
If there is motion
cancel delays
If temperature < 20
turn on fireplace
else
if temperature > 24
turn off fireplace
end-if
end-if
else
turn off fireplace after 30 minutes (cancel)
end-if
end-if
Obviously that's not pastable, so how do I do this? I've got as far as conditional actions and I can't find the ability to do else, but does it need a trigger too? Sorry...
You need a cancel on your Fireplace off with the delay. If you edit that action, you'll see a switch "Cancel" next to "Delay." Turn that cancel on. If it's not on, the Cancel Delayed Actions won't cancel it. The Cancel switch makes it a cancelable action.
Other than that, looks good to me!
I had problems one time getting a mode restriction to work. But that could have been because of something else. I don't remember the exact circumstance. It might have been RM3. Just keep an eye out on it to make sure it's only running when it's evening. If it doesn't work, you can always add in another IF for that condition.
There was a guy over on the ST forum who would post this whenever someone posted a question about a fireplace, and I feel oblidged to pick up the tradition because whenever I read this question I wonder if people have really thought it all the way through.
In most instances in the US, it is against fire code to have anything controlling your fireplace that is not "line-of-sight", which means that if it can control your fireplace while you're not in the room, it's a big no-no. In fact, if there is a fire of any kind and you have an un-approved remote for your fireplace, your insurance company can totally revoke your policy and not pay out a dime. So, you could be liable for damages to neighbor's property as well. Plus, it's just really freaking dangerous. Ever wake up in the morning to a light being on and you don't know why? Imagine that was your fireplace and the ignition didn't work and now your house is filled with gas. You wake up, a light goes on and BOOM. So, best advice...unless it's electric and decorative only (a fancy light show) don't control it with your HA system. Not EVERYTHING can be automated.
I agree that there is a risk. There is pilot light always on so it's just triggering that. If that pilot light was to go out then I guess there would be gas as it is. The fact that it can only be triggered by motion in front of the fire, gives me a little comfort.