Read the statement by Michael Teeuw here.
SmartThings
-
Just stopping in and I wanted to say Thank you guys for working on this! I am still hammered as all get out with work and crawl home most nights… I’m running 3 months behind right now. But I wanted to check in and wow… this is amazing!! Thank you guys so much!
-
Well, looks like it’s duplicating some of the items in the array. I’ll get a patch uploaded for it soon.
Edit: Found this was due to having more than one browser open, each instance was updating the global array. Working on a fix.
-
I’ve fixed the duplication, added an excluded device name list, fixed some timing issues, and cleaned it up.
I’m not entirely happy with the way I’m getting all the data, but I haven’t quite figured out a good way to wait for all the promises returned from the smartthings-node library. I have to loop the capabilities, make a request to get devices by capability, wait for that promise, then loop devices to get the statuses for each, once those promises return I need to pair up the status with its device.
So the ugly of it is that I’m just pushing all the data via sockets for each status request into an array that gets updated, then it gets fed to the getDom(). Not pretty, but it’s working.
-
Ok, I think I’ve gotten things to where it’s ready to share, I posted it up on the modules forum…Thanks again for all the feedback.
https://forum.magicmirror.builders/topic/11270/mmm-smartthings
-
Someone please close this topic … It has moved here:
https://forum.magicmirror.builders/topic/11270/mmm-smartthings
Thank you all!! :)