Yeah, this ain’t pretty, but it is a proof of concept on how to get a web page data and parse it.
Someone might want to refine this a bit, but I wanted to get it out there, and see if we can force the Ubi guys to make a much more official way to get this data.
Anyway, its ugly, its not going to work for everyone, could break at any time… But it is proof that you can grab almost any data off a website and use it for a devicetype…
Excellent, I thought about parsing the info from their site as well. I was hoping that they would expose the information and allow us to pull it in without doing this. Like you have stated, let’s hope that this gets them moving in that direction.
I must be missing something here. I added this as a device type in the IDE. No issues there. Now how do I access this device? Does just adding the devicetype automatically create a device in SmartThings?
DeviceID isn’t used, so you can set it to anything unique.
Code’s working for me, is it possible your username and password are wrong? Also, how many ubi’s do you have? If you have more than one, it might be the issue.
Must have had a typo in there somewhere. I double checked all the settings and it is working. Do you have API access for the UBI yet? I have requested it, but have not heard anything back from them.
Yes, I have it, waiting to release code until others will have it. PM me an email address, and I can set you up with the API code and see if it will work using my API access.