Monday, January 28th, 2019 05:28 am
i am having a crisis of coding
I am currently debating whether I can pack and take my home server to Escapade. I'll talk myself into sanity soon, don't worry. Hopefully.
Home Automation
Anyone else here use SmartThings for home automation? I just finished coding my Bathroom Automation SmartApp in the IDE. It seems to be working--benefit of being a professional QA/QC/Program Tester is that you learn how to test things properly--but half of SmartThings users who customize moved over to WebCore, which I'd need at least a long weekend to sit down with and learn. So there is a lot less code scraps now that are less than two years old.
I like hand coding, though; it's soothing. But then there's this weirdness; I finished Bathroom Automation, which uses a motion sensor, a water sensor, and three lights, in like two days. This isn't my first try, though: a year ago, I tried and completely failed to make it work or even understand it.
( maybe this is how I learn? )
Okay, that's super interesting, you say (if you actually read all that), but what does that have to do with SmartThings? Did you get distracted? Yes, but also, variables.
SmartThings uses Groovy. You don't declare your variables--no wait, you do. Because everything is a fucking variable.
( because variables I guess? )
I have existential coding crises. It happens.
Below cut is the full bathroom automation script if you're curious what it looks like. Those that start with 'private' are apparenty standard SmartThings for certain options that you haev to add manually if you use either multiple pages or dynamic pages for your preferences.
( bathroom automation v.1.3 )
Edited to add pre and code markup.
Home Automation
Anyone else here use SmartThings for home automation? I just finished coding my Bathroom Automation SmartApp in the IDE. It seems to be working--benefit of being a professional QA/QC/Program Tester is that you learn how to test things properly--but half of SmartThings users who customize moved over to WebCore, which I'd need at least a long weekend to sit down with and learn. So there is a lot less code scraps now that are less than two years old.
I like hand coding, though; it's soothing. But then there's this weirdness; I finished Bathroom Automation, which uses a motion sensor, a water sensor, and three lights, in like two days. This isn't my first try, though: a year ago, I tried and completely failed to make it work or even understand it.
( maybe this is how I learn? )
Okay, that's super interesting, you say (if you actually read all that), but what does that have to do with SmartThings? Did you get distracted? Yes, but also, variables.
SmartThings uses Groovy. You don't declare your variables--no wait, you do. Because everything is a fucking variable.
( because variables I guess? )
I have existential coding crises. It happens.
Below cut is the full bathroom automation script if you're curious what it looks like. Those that start with 'private' are apparenty standard SmartThings for certain options that you haev to add manually if you use either multiple pages or dynamic pages for your preferences.
( bathroom automation v.1.3 )
Edited to add pre and code markup.