Assistance with Rule for Amazon Soap Dispenser

I want to create a routine for a bathroom to remind people to wash their hands. I’m having trouble making this work with Rule Machine. I’ve got a background in assembly language, C, C++, Java, VBA, and have scratched the surface with Python. I’ve not made a living in any of these recently, but have sharpened my skills lately.

To accomplish the following, what is the best approach?

  1. the door sensor opens after a long period of time, so we assume someone is entering the bathroom
  2. turn on the light and fan
  3. there is an Amazon soap smart soap dispenser
    3.5) the door closes
  4. a few to several minutes later the door opens and the soap dispenser has not been activated so Alexa says “don’t forget to wash your hands”
  5. the soap dispenser is activated, and 15 seconds later Alexa says “thank you for washing your hands”

In a perfect world I’d like to do this with rule machine, but I’m happy to dive in and develop some code if needed. Thoughts/ideas?

1 Like

omg this is just so horribly intrusive - I love it!

What does this show in HE? Presence? Buttons?

1 Like

Why not make the announcement when someone walks in?

Also wow... not sure I'm digging bringing Amazon into my bathroom.

Also my family would likely kick me out of the house if I did something like this.. for a commercial establishing it works though.

2 Likes

Maybe a small electric charge could be wired up to the door handle to remind the person leaving the room.... Like those old joke handshake toys.... :laughing:

But seriously.... your issue is a tough one to crack, it is essentially the same as room occupancy. I live alone and so for much of my lighting rules it is tempting to line up a sequence of events that you expect to occur and then inject some action when, in your case something doesn't happen as you expect, or in my case when something does happen, such as "the door opened, closed, turn the lights on, the door opened and closed again, turn the lights off.

The problem is people.... it always is... :grinning: We don't follow the same pattern every time. And when you get more than one person together it becomes even more difficult. A simple example could be entering the room but not closing the door, say while you are cleaning the bathroom.

The best I can think of, and don't know if this is a thing..... But if there are any sensors for water flow, if you could detect that the toilet has been flushed, then that could be the trigger for checking the soap dispenser has been used.

Simon

2 Likes

Yeah I agree..(edit: with the non-electrified bit!! :grinning_face_with_smiling_eyes: ) that's why I think it would be simpler just to announce it upon entry - plant the seed and it's up to the person. You could even have it work between certain times so as not to trigger at night for example. This would also mean you don't really need that fancy albeit terrifying soap dispenser.

1 Like

Electrifying the handle....? "The door is now armed.... Don't forget to wash your hands....." :rofl:

3 Likes

You have 20 seconds to comply....

:rofl:

4 Likes

sci-fi robocop GIF by Coolidge Corner Theatre

5 Likes

I switched to an automated restroom attendant... haven't had any issues recently.

6 Likes

With plunger at the ready for blockages...

4 Likes

I was also thinking about some kind of drone.... We are easily amused @Sunmill .... :slight_smile:

Back to the task at hand.... Perhaps a combination of contact sensor on the door and a motion sensor may allow you to raise some kind of notification / alert that someone has been in the bathroom and may not have washed their hands. It will most likely still suffer from some of the issues I hinted at earlier with trying to keep occupancy state for a room, but might be worth trialling. And that might the way to approach this, try a few different approaches and see what works for your family.

1 Like

Maybe a pressure pad in front of the toilet and one in front of the sink, then you'd know in what order they visited which

3 Likes

Or (all kidding aside) a water sensor in the tank to let you know when it's been flushed?

2 Likes

Yes, that is more likely an option, a leak sensor in the cistern.... Is that what you meant, but looking for no water as the trigger?

That's assuming they actually flush - casts a glaring look at my dear teenager..

2 Likes

If it's yellow, let it mellow

3 Likes

Do we have to electrify the seat as well?

1 Like

I WISH that was all that it was... :nauseated_face:

Exactly... one with an external probe preferably!

1 Like