-
-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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 configuring Luftdaten.info Sensor ID via Frontend #19622
Comments
Adding, deleting and re-adding a sensor works fine on
Is a typo in the translation which was fixed. |
Same issue here running on 0.84.6. Once I noticed a bunch of Luftdaten entries under Integrations. I deleted them and removed the config, restarted and unable to add the Luftdaten sensor. If configured using configuration.yaml it just throws errors like this one:
|
Found some old entires in config/.storage/core.entity_registry { Removing and restarting didn't helped, still having the same issue: not able to configure or use it. Tracing the call using the the browser I get this response:
|
One more piece after putting logging into debug: 2018-12-29 18:31:20 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow/2450d237a5434b6fae0f118e151574cc to 192.168.28.104 (auth: True) Now the question is why do we get a 403... whereas curl https://api.luftdaten.info/v1/sensor/11217/ returns full json. |
While testing I now saw the translation of the config-header is away, too. I tried to see the communication to luftdaten.info, but wireshark was quiet. I can see every try to connect via curl or browser, but nothing while config with frontend. Update: |
Hi, are you running HA using hass.io (this is what I do)? J. |
@jensihnow yes, it is hass.io, based on a Raspi3. For me everything went fine, until I got problems to see values from the sensors in lovelace after upgrading to 0.84.6. (I randomly got erros "entity not available..."). While testing, I deleted the (UI configured) sensor via UI. After that now there is no way to re-add sonsors. A very strange effect is: I have copied the luftdaten component dir from 0.83 to my custom_components, and the .py to the custom_components/sensors dir - but even with this custom-rollback the error appears. |
@fabaff can you tell me, where the URL of the luftdaten api is stored? I tried to find it in the code, but failed (sorry). For test, I activated an old yaml config, and put an old 0.82.x version of luftdaten.py to the custom_components - But also here I get the message 2018-12-30 18:23:32 ERROR (MainThread) [custom_components.sensor.luftdaten] Unable to retrieve data from luftdaten.info maby something kills the url (but why?) ? |
@hudecitydave @jensihnow I've also started a fresh Docker container on my NAS running 0.84.6, but still get Update: I've started a Docker container using the |
It's in the external library that is used by the component: https://github.com/fabaff/python-luftdaten/blob/master/luftdaten/__init__.py#L15 |
@mattsches Ah, thanks! Now I understand the whole chain. I think I can wait for 0.85. I cannot find a hook to this error for the moment, and with a fix in 0.85 there is no need to go deeper. :-) For me this was another chance to get deeper into the ha universe... thanks, great community! |
It looks like the webserver is blocking specific HA version strings (0.84.3 through 0.84.6)
|
Interesting catch and I just sent an email to Jan from the luftdaten.info project to see if there are any specific reasons for this. |
@jensihnow @jvanderneutstulen After all this updates, I think I reopen this issue to see where we are endig up. |
Was there any response from their side ? Are there any visible work-arounds ? |
Not yet, continue to wait and will follow up if they don't get back in 7 days.
Question is if they are just going to block the next version of HA as they see high number of requests for this User-Agent. They actually should block by IP and user-agent, unless there is a clear issue on the implementation. |
One more... Home Assistant is actually documented as a PlugIn on the luftdaten.info page, see https://luftdaten.info/faq/#toggle-id-8 |
I got the following response :
As test/workaround I changed the luftdaten api url in the library and pass it through a proxy which alters the User-Agent. In the last couple of days I see a normal request rate at 1 request every 10 minutes, which is the default for the integration. (running HA 0.84.6) |
@fabaff You are aware of the bug and/or fix? |
Today I've upgraded to the latest version of Home-assistant 0.85 on my hass.io instance. The Luftdaten integration now seems to work correctly after the upgrade. Looking forward for the Lovelace UI to become standard in 0.86, it is awesome :) |
Same here. Works as charme with 0.85 |
It seems as they have blacklisted 0.85 too.. Probably caused by the issue in #18838 :( The manual configured one worked so well for months :( |
Can confirm this for 0.85.0:
However, 0.85.1 does work:
But I would expect it's just a matter of time to have this one also blacklisted unless the luftdaten component is fixed. |
Not good - see also this topic: #19981 |
This fixes home-assistant#18838, and also fixes the root cause of home-assistant#19981 and home-assistant#19622.
This fixes home-assistant#18838, and also fixes the root cause of home-assistant#19981 and home-assistant#19622.
This fixes home-assistant#18838, and also fixes the root cause of home-assistant#19981 and home-assistant#19622.
This fixes home-assistant#18838, and also fixes the root cause of home-assistant#19981 and home-assistant#19622.
This fixes home-assistant#18838, and also fixes the root cause of home-assistant#19981 and home-assistant#19622.
This fixes home-assistant#18838, and also fixes the root cause of home-assistant#19981 and home-assistant#19622.
This fixes home-assistant#18838, and also fixes the root cause of home-assistant#19981 and home-assistant#19622.
Home Assistant release with the issue:
0.84.6
Last working Home Assistant release (if known):
0.83.x
Operating environment (Hass.io/Docker/Windows/etc.):
hass.io on Raspi3
Component/platform:
Luftdaten: https://www.home-assistant.io/components/luftdaten/
Description of problem:
I had some problems showing my Luftdaten.info sensors. After deleting them on the frontend I am not able to re-enter my values.
When I try to add an sensor I always get the message (German hass.io):
"Keine Kommunikation mit Lufdaten API möglich" (Luf-t-daten is misspelled here)
The message is shown VERY fast, so I think there is no "real" try to connect... In my opinion it is too fast for every "DNS or something" timeout...
The Logfiles says:
ERROR (MainThread) [luftdaten] Can not load data from luftdaten.info
I am sure my sensors and the Luftdaten API is working, I can see all data via Browser.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):YAML Config is disabled - using frontend only!
Traceback (if applicable):
Additional information:
I know about problem #19591 and I have the same problem. With both issues Luftdaten in unusable for me in 0.84.6 now.
The text was updated successfully, but these errors were encountered: