pyuhooair icon indicating copy to clipboard operation
pyuhooair copied to clipboard

Unable to access API?

Open dwightmulcahy opened this issue 4 years ago • 17 comments

just testing out this and when I do this

auth = UhooAuth(email, password)
devices = get_all_devices(auth)

devices returns this:

{'status': 2, 'message': 'You are not authorized to access this API.'}

guessing that you have to have an Enterprise account to access the rest API... :/

dwightmulcahy avatar Oct 12 '20 17:10 dwightmulcahy

FYI, I was told by a uHoo rep back in August (possibly unofficially though so don't bet the farm on it) that they intend to release a set of APIs for home users to create custom integrations at the end of the year.

I've emailed them just now asking if there's any news or information available about it.

anomaly256 avatar Oct 14 '20 21:10 anomaly256

Yes - this was built in a business account which is required for API access.

I’d love to see them release a consumer API. It would be great to get this into Home Assistant.

Christopher Young @netmanchris/ Twitter

On Oct 14, 2020, at 5:41 PM, Wes [email protected] wrote:

 FYI, I was told by a rep back in August (possibly unofficially though so don't bet the farm on it) that they intend to release a set of APIs for home users to create custom integrations at the end of the year.

I've emailed them just now asking if there's any news or information available about it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

netmanchris avatar Oct 14 '20 22:10 netmanchris

this is what I got when asked about a consumer API...

...I will feedback this to our engineering team. We're continuously gathering feedback on features that users would like to have. Thus far, requests for API access have been very few but we will continue to gather feedback and if that increases, we will consider building REST APIs for users to access.

...so if you are interested in a consumer REST API you ought to email their support so that they know there really is a demand for it.

Here is the link: https://uhooair.com/contact/

dwightmulcahy avatar Oct 15 '20 00:10 dwightmulcahy

Yeah this is the response to my email this week, slightly different tune to before:

APIs for home users are part of our roadmap but we do not have an ETA for it yet. It depends on the amount of requests we get. Thus far, there has only been a small handful of users who have requested. As we get more requests, we may consider pushing the ETA forward.

So... make some noise I Guess? Kind of absurd they don't do this given the premium price they charge for the device itself imo

anomaly256 avatar Oct 17 '20 22:10 anomaly256

A couple of friends also have the Uhoo (by my suggestion) and they voiced their interest in having an API with them too. Pretty much got the same canned response back.

Kind of absurd they don't do this given the premium price they charge for the device itself

+1 on that.

dwightmulcahy avatar Oct 20 '20 02:10 dwightmulcahy

I decided to ask about API acces for home users again last week, got this response:

Thanks for your message. APIs for home users and Home Assistant integration will be available in the second quarter of this year. The team has already moved this up in priority as a number of users have started requesting for it in the last 2-3 months. 🤞

anomaly256 avatar Feb 07 '21 23:02 anomaly256

awesome! I'll definitely be on that when they allow access.

as a number of users have started requesting for it in the last 2-3 months.

hmmmm... nice work guys!!!

dWiGhT

dwightmulcahy avatar Feb 07 '21 23:02 dwightmulcahy

still no API... :(

dwightmulcahy avatar Jul 15 '21 22:07 dwightmulcahy

I wrote them yesterday, but I'm not sure how to interpret it...

We are planning to release a uHoo Premium product in September where one of the features is integration with HomeAssistant. The other features would be deeper analytics on your data, comparing different rooms and sensors against each other, and access to a web portal, to name a few.

matteofranceschini avatar Aug 02 '21 10:08 matteofranceschini

I've asked for clarification, here it is:

Thanks for your message. It is compatible with your existing uHoo. uHoo Premium is an in-app subscription to upgrade your account to a uHoo Premium account to gain access to those additional features. You don't need to change your existing uHoo.

matteofranceschini avatar Aug 02 '21 12:08 matteofranceschini

uHoo Premium is an in-app subscription

So $$/month... 🤔

was hoping I didn't have to spend time reverse engineering the mobile app...

dwightmulcahy avatar Aug 02 '21 22:08 dwightmulcahy

I'm not so into reversing iOS apps, but the hardware is quite standard.. By accepting to lose their calibration (if any), it's probably not so difficult to write a custom firmware. Sadly, an ESP32/ESP8266 would've be waaaay simpler (for me) to handle.

Cool thing, someone already opened it: https://wiki.liutyi.info/display/CO2/uHoo+inside

matteofranceschini avatar Aug 03 '21 09:08 matteofranceschini

You can look at my implementation here https://github.com/jererobles/airq/blob/master/airq/api/crypto.py

jererobles avatar Oct 03 '21 13:10 jererobles

If somebody wants to port that to Node.js so I can use with Homebridge I'd be super happy 😊

jererobles avatar Oct 03 '21 13:10 jererobles

any updates about this? is uhoo premium released yet?

iqbalhs avatar Feb 09 '22 02:02 iqbalhs

Now it seems obvious why the Home Assistant HACS integration is broke. Is the above code to work with the Uhoo device directly?

MilitaryNerd avatar Feb 10 '22 03:02 MilitaryNerd

uHoo Premium is an in-app subscription

So $$/month... 🤔

Worth noting they've just launched a home user version of 'premium' with web dashboard, integrations etc. Free for current owners for 1 year, $10/month (I assume USD) after that which is still more accessible than the 'office' premium plans previously.

The app also highlights a Home Assistant integration 'coming soon'.

Not an advertisement, just noting this is probably the user API they mentioned to me 2 years ago finally being delivered.

Edit: can confirm the premium web dashboard is now accessible on this plan, with API key retrievable from user settings and json data sent to client.

178183732-d0955249-589b-43cd-933e-d37db07758a5178183746-acf01018-fcea-4557-b3a9-fc79bc8e1a02

anomaly256 avatar Jul 11 '22 03:07 anomaly256