Hello, I’ve just gotten started with my Smartthings adventure, but it is already a very addictive drug (I’ve already setup more than 30 things in the first week I’ve have the hub :).
On my washing machine, I’ve added a Zooz power monitor and a contact sensor on the lid, and I’m hoping to recreate the monitoring logic that Phil Hawthorne detailed on his blog, but as a smartthings SmartApp rather than in HomeAssistant as he described.
Having never created a SmartApp, I was hoping someone here in the community might be able to help out.
This is the general logic to implement:
Four basic machine states:
- Idle
- Running
- Finishing
- Clean
Set state to "Idle" at startup
If the state is not "Running" and the power monitor value is greater than 10 than set state to "Running"
If the state is "Running" and the power monitor value drops below 5 then set the state to "Finishing"
If the state becomes "Finishing" and the state doesnt change for 5 minutes, then set the state to "Clean"
If the state becomes "Clean" then send a Notification.
If the state is "Clean" and the door contact sensor changes to "Open" then set the state to "Idle"
Any assistance would be greatly appreciated. Thanks!