Laundry Monitor

Yeah, I’ve got a bastardized Device Type from mostly a different user on the forums here:

It seems to update on it’s own when the dryer is physically on, but once it turns off, it stops updating. I think that’s probably enough to write an app with as the updates come every 6-7 minutes and I’m perfectly fine notifying after 10 minutes of inactivity.

I’ve gotten this far with the App, but it’s my first SmartApp so the syntax used is still a little fuzzy. Maybe someone else can weigh in on what’s wrong? Again, I think the Device Type is good enough to work, it’s just nailing down the actual SmartApp that will work correctly.

Note: The actual switch capability on this Device Type doesn’t appear to work, but I haven’t cared enough about that feature to spend any time on it. Status is reported correctly, but actually turning the switch off/on doesn’t work.

EDIT: Pushed things to Git which are linked a couple posts down and removed the wall of code that was previously here.