Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in logs when starting Home Assistant #48

Open
McGiverGim opened this issue Jun 3, 2021 · 10 comments
Open

Error in logs when starting Home Assistant #48

McGiverGim opened this issue Jun 3, 2021 · 10 comments
Labels
bug Something isn't working.

Comments

@McGiverGim
Copy link
Contributor

Environment

  • Home Assistant Core release with the issue: 2021.6.0 (this happened too in early versions)
  • This custom component release with the issue: 0.9.1
  • Last working this custom component release (if known):
  • Operating environment (Home Assistant/Supervisor/Docker/venv): Home Assistant

Describe the bug

The integration works without problem, but I have this error in logs when I start Home Assistant:

2021-06-03 09:01:24 ERROR (MainThread) [custom_components.jq300.api] Error! 

Configuration.yaml

Using UI

Steps to Reproduce

In my case:

  1. Restart Home Assistant.
  2. Look at the logs.

Expected behavior

No errors in the log.

Debug log

2021-06-03 09:27:22 DEBUG (MainThread) [custom_components.jq300] Connecting to account [XXXXXX]
2021-06-03 09:27:22 DEBUG (MainThread) [custom_components.jq300.api] Connecting to cloud server
2021-06-03 09:27:22 DEBUG (MainThread) [custom_components.jq300.api] Requesting URL http://www.youpinyuntai.com:32086/ypyt-api/api/app/loginByEmail
2021-06-03 09:27:34 ERROR (MainThread) [custom_components.jq300.api] Error! 
2021-06-03 09:27:34 DEBUG (MainThread) [custom_components.jq300.api] Connecting to cloud server (FORCE mode)
2021-06-03 09:27:34 DEBUG (MainThread) [custom_components.jq300.api] Requesting URL http://www.youpinyuntai.com:32086/ypyt-api/api/app/loginByEmail

Additional context

None.

@McGiverGim McGiverGim added the bug Something isn't working. label Jun 3, 2021
@gitothy
Copy link

gitothy commented Jul 11, 2021

Also having the same issue. Looks like they've blocked access to their cloud platform again?

2021-07-11 00:12:28 ERROR (MainThread) [custom_components.jq300.api] Error! [Errno 104] Connection reset by peer
2021-07-11 00:12:28 ERROR (MainThread) [custom_components.jq300.api] Can't connect to cloud.
2021-07-11 00:12:28 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry configuration.yaml for jq300
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/jq300/__init__.py", line 107, in async_setup_entry
for device_id in devices:
TypeError: 'NoneType' object is not iterable

@gitothy
Copy link

gitothy commented Jul 20, 2021

@McGiverGim FYI you might want to check this again as it now seems to have resolved itself on my instance. I didn't change any config or take any specific action. Have restarted HA a few times including updating to the latest 2021.7.3... and suddenly data's flowing back in [I don't think 2021.7.3 is the fix].

I have only used the official Perthings app once at initial setup. My current thinking is that iOS periodically wakes the app in the background and that might trigger a re-authentication which in turn unblocks this integration. If you haven't tried it then go in to the app and check if data is being logged, if so then restart HA and see if it's back working.

@Limych
Copy link
Owner

Limych commented Sep 5, 2021

Is this error still actual now?

@Limych Limych added the waiting for feedback Further information is requested. label Sep 5, 2021
@McGiverGim
Copy link
Contributor Author

I think remember it appears with latest version but I'm out of home. I will check it next week.

@no-response no-response bot removed the waiting for feedback Further information is requested. label Sep 5, 2021
@Limych Limych added the waiting for feedback Further information is requested. label Sep 5, 2021
@McGiverGim
Copy link
Contributor Author

It seems it continues, I don't know the reason. This is from today:

Este error se originó a partir de una integración personalizada.

Logger: custom_components.jq300.api
Source: custom_components/jq300/api.py:213
Integration: JQ-300/200/100 Indoor Air Quality Meter (documentation, issues)
First occurred: 8:56:59 (1 occurrences)
Last logged: 8:56:59

Error!

@no-response no-response bot removed the waiting for feedback Further information is requested. label Sep 12, 2021
@areyoufserious
Copy link

Still actual

Limych added a commit that referenced this issue Jan 4, 2022
…-2.24

Update pyupgrade requirement from ~=2.20 to ~=2.24
@McGiverGim
Copy link
Contributor Author

This error seems fixed and I don't see it in my logs with latest version. I close the issue.

@McGiverGim
Copy link
Contributor Author

I reopen the issue :(, I've seen the error again, version 2022.8.0 of Home Assistant:

Este error se originó a partir de una integración personalizada.

Logger: custom_components.jq300.api
Source: custom_components/jq300/api.py:553
Integration: JQ-300/200/100 Indoor Air Quality Meter (documentation, issues)
First occurred: 16:35:43 (1 occurrences)
Last logged: 16:35:43

Error!

@McGiverGim McGiverGim reopened this Aug 4, 2022
@McGiverGim
Copy link
Contributor Author

More infor, with more log information. But is the same @gitothy published before:

2022-08-08 08:05:49.890 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Calidad del aire for jq300
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/jq300/__init__.py", line 107, in async_setup_entry
for device_id in devices:
TypeError: 'NoneType' object is not iterable

@McGiverGim
Copy link
Contributor Author

It seems to point to the list of devices:

for device_id in devices:

I don't know about python @Limych but it seems for some reason, when starting, this is NoneType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

4 participants