csacca / uhoo-homeassistant Goto Github PK
View Code? Open in Web Editor NEWuHoo consumer integration for homeassistant
License: MIT License
uHoo consumer integration for homeassistant
License: MIT License
with the newest version, and on core-2021.9.6 - uHoo integration fails on load. No devices
Deleting the integration, and attempting to set it back up I get the error - "Retrying setup: None"
Any idea what is wrong?
2021-09-13 09:34:28 ERROR (MainThread) [custom_components.uhoo] Error: an exception occurred while attempting to get latest data: 'datetime'
Noticed my integration stopped working on 3/16. HA logs show the following:
Logger: custom_components.uhoo
Source: custom_components/uhoo/__init__.py:85
Integration: uHoo ([documentation](https://github.com/csacca/uhoo-homeassistant), [issues](https://github.com/csacca/uhoo-homeassistant/issues))
First occurred: 9:42:19 AM (382 occurrences)
Last logged: 4:11:48 PM
Error: an exception occurred while attempting to get latest data: Error requesting data from https://auth.uhooinc.com/renewusertoken: 410, message='Gone', url=URL('https://auth.uhooinc.com/renewusertoken')
I tried deleting integration and re-authenticating. Looks like it got one data point but none after.
Running HASS: 2022.3.5 and latest integration version from HACS.
after core-2021.6.0, existing integrations no longer load on start, and the integration is no longer visible in the integration list after this repo is installed via HACS
trying to use this add on but having issues w the log into uhoo w a valid account.
This error originated from a custom integration.
Logger: custom_components.uhoo
Source: custom_components/uhoo/init.py:48
Integration: uHoo (documentation, issues)
First occurred: 8:04:16 AM (1 occurrences)
Last logged: 8:04:16 AM
Error: 401 Unauthorized error while logging in: { "message": "Incorrect password. Please try again.", "status": 2 }
This error originated from a custom integration.
Logger: custom_components.uhoo
Source: custom_components/uhoo/init.py:55
Integration: uHoo (documentation, issues)
First occurred: 7:21:40 AM (29 occurrences)
Last logged: 8:01:32 AM
Error: an exception occurred while attempting to get latest data: 'int' object is not subscriptable
Error: an exception occurred while attempting to get latest data: Error requesting data from https://auth.uhooinc.com/renewusertoken: 410, message='Gone', url=URL('https://auth.uhooinc.com/renewusertoken')
2021-09-19 15:02:47 ERROR (MainThread) [custom_components.uhoo] Error: an exception occurred while attempting to get latest data: {
"errors": [
{
"message": "Invalid token"
}
]
}
Is there any news, i still have follow error in latest version:
Logger: custom_components.uhoo
Source: custom_components/uhoo/__init__.py:85
Integration: uHoo (documentation, issues)
First occurred: 13:52:56 (4 occurrences)
Last logged: 13:53:53
Error: an exception occurred while attempting to get latest data: Error requesting data from https://auth.uhooinc.com/login: 400, message='Bad Request', url=URL('https://auth.uhooinc.com/login')
Error: an exception occurred while attempting to get latest data: Error requesting data from https://api.uhooinc.com/v1/getalllatestdata: 404, message='Not Found', url=URL('https://api.uhooinc.com/v1/getalllatestdata')
added custom integration repo in HACS
Downloaded version 0.0.4 (tried 0.0.3 and master just in case)
after restart the integration is not available in "add integration"
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/uhoo/init.py:46
Integration: uHoo (documentation, issues)
First occurred: 6:10:21 PM (1 occurrences)
Last logged: 6:10:21 PM
Error setting up entry [email protected] for uhoo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/uhoo/init.py", line 46, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.9/site-packages/pyuhoo/client.py", line 61, in login
encrypted: str = encrypted_hash(code, salted)
File "/usr/local/lib/python3.9/site-packages/pyuhoo/util.py", line 26, in encrypted_hash
code_hash.update(bytes(code, "utf-8"))
TypeError: encoding without a string argument
A new error showed up after restarting Home Assistant.
Logger: custom_components.uhoo
Source: custom_components/uhoo/__init__.py:55
Integration: uHoo
First occurred: 1:02:02 PM (1 occurrences)
Last logged: 1:02:02 PM
Error: an exception occurred while attempting to get latest data: 'int' object is not subscriptable
First I want to say I’m very pleased that this customer component is available! Thanks a lot.
Regularly I have the following error. Because of the error all uhoo related automations won’t work properly.
Error: an exception occurred while attempting to get latest data: Error requesting data from https://auth.uhooinc.com/login: 400, message='Bad Request', url=URL('https://auth.uhooinc.com/login')
I got no debug log in stead of:
2021-10-23 14:31:15 DEBUG (MainThread) [custom_components.uhoo] Finished fetching uhoo data in 4.203 seconds (success: True)
Hopefully this is useful to fix the issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.