I'm working on an automation to report status of our dishwasher. (dishwasher is hard wired, so any power monitoring would involve removing it, wiring, and replacing. Not doing that).
So I'm working with three potential conditions: I have a vibration sensor that fits nicely underneath, and a door contact sensor that also monitors temp. The vibration seems the most reliable to determine if the dishwasher is running, but also can fire briefly if the dishwasher is opened/loaded.
What's the best way to trigger off continual (or rapid on-off) vibration for, say, a minute and a half? I have it now as
Trigger: " if door changes from open to close"
Then do: <if triggered by above> Actions: conditionally execute "if vibration is detected for 1:30"
I then trigger if the vibration sensor changes to clear for 2:00 then the dishwasher cycle is done / clean.
That seems a little convoluted. Suggestions on a cleaner way to do this?