netmanchris / pyuhooair

Python Wrapper for uHoo Air Quality Sensor REST API
Apache License 2.0
17 stars 6 forks source link

Unable to access API? #3

Open dwightmulcahy opened 4 years ago

dwightmulcahy commented 4 years ago

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... :/

anomaly256 commented 3 years ago

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.

netmanchris commented 3 years ago

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 notifications@github.com 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.

dwightmulcahy commented 3 years ago

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/

anomaly256 commented 3 years ago

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

dwightmulcahy commented 3 years ago

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.

anomaly256 commented 3 years ago

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. šŸ¤ž

dwightmulcahy commented 3 years ago

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 commented 3 years ago

still no API... :(

matteofranceschini commented 3 years ago

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 commented 3 years ago

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.

dwightmulcahy commented 3 years ago

uHoo Premium is an in-app subscription

So $$/month... šŸ¤”

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

matteofranceschini commented 3 years ago

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

jererobles commented 3 years ago

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

jererobles commented 3 years ago

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

iqbalhs commented 2 years ago

any updates about this? is uhoo premium released yet?

MilitaryNerd commented 2 years ago

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

anomaly256 commented 2 years ago

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