Help with rule: accidentally turned off toilet on my wife

  1. I installed an Iris Plug in my bathroom connected to a bidet. Goal was to save money as we donā€™t use this particular toilet from 12 am to 6 am. Sometimes if my mother-in-law is over, she might use it but I donā€™t care.

  2. Set up a rule under RM for this. The trigger was a certain time (12 am.)

  3. Action was off with a 6 hour delay then back on thinking it would spring back to life at 6 am.

  4. Wife just yelled that the toilet seat was cold and sent me into a panic. Problem is that it was 7:45 pm. It was working nice and toasty earlier today.

  5. Removed rule and turned it back on remotely (which gave me great satisfaction.)

Please help. And yes, I could probably get it working via Simple Lighting but Iā€™m OCD stubborn.

Can you show your rule? It's hard to help debug something unless you show us the problem. :slight_smile:


Update: mistake in recreating this rule (it was 12 am originally.)

12 pm is noon not midnight. Midnight is 12 am

2 Likes

And just a note on my side.
I only will run a delay in a rule if itā€™s a short delay - ie a few minutes.

If itā€™s a long delay like this one, I would recommend two trigger times and using conditionals turn it on or off.

image|281x499

1 Like

The way that the OP has it is actually a lot simpler. Having no conditional checks is easier for the hub to accomplish and both have the exact same number of scheduled jobs. the only difference is when the second job gets scheduled. With a specific trigger it gets scheduled at that time the day before (it's a cron) but with the delay it's scheduled at midnight. So, this method is a lot simpler and easier than the conditional.

My mistake. I had to recreate the rule to show you and accidentally had pm listed. It was definitely AM the first go around..

Wait....so the rule you showed me wasn't the rule that failed but one you just wrote? Well, fix the AM/PM thing,turn on logging and if it fails again, post the logs. Because if that is failing we got bigger problems.

Thanks. Hereā€™s the ā€œcorrectā€ recreation with logging enabled this time. Will have to wait until tomorrow and see if my wife yells at me again.

The Simple Lighting app would be much simpler to setup for this use case. I use it to turn on various lights at certain times and off at others.

2 Likes

Okay...but we have to wait until the rule doesn't work correctly and then analyze the logs. The logs won't show anything now. You should be able to go into the rule's properties page (gear icon) and see the scheduled task to turn it off at midnight. Then after midnight, that page will show a scheduled task to turn it on at 6 am.

This is about as simple a rule as you can get. I can't imagine that simple lighting would handle it any better.

Agreed. Iā€™ve encountered this before and went with simple lighting but Iā€™m trying to wrap my head around all the options and nuances of RM before delving into more complex automations.

1 Like

My suggestion wasnā€™t about ā€œhandlingā€ it, just much simpler to setup.

Really? I don't really see why he'd need simpler. He's got the rule. It should work. If he didn't know where to start i'd agree but he's got the rule, why pull it out and change it now?

Ok got what you are saying. I actually assumed the a separate delay counter would be calculated for the full delay instead of a another trigger point. So I agreed with you on that.

But, if you are anything like me and update your hub or do a reboot while the delays are active, when the hub restarts it wonā€™t remember those delays and the delayed actions will not be executed until the next cycle. So his wife will be sitting on a cold seat again for a day.

It is my understanding that the delays are scheduled so unless the the hub was offline at the time of the scheduled delay the action would still occur. The scheduled delay should survive the reboot.

Interesting. Not from my experience but that was from the first few months with my hub starting back in May. Since then I have avoided the long delays. Possibly something addressed with later OS updates.

Here is a discussion on the topic.

Actually, it does remember delays between reboots. I did a test to prove that not too long ago.

2 Likes