GithubHelp home page GithubHelp logo

mampfes / hacs_dwd_pollenflug Goto Github PK

View Code? Open in Web Editor NEW
65.0 5.0 5.0 81 KB

Adds pollen forecasts from DWD to Home Assistant.

License: MIT License

Python 100.00%
home-assistant homeassistant homeassistant-integration dwd pollen pollenflug hacs hacs-integration

hacs_dwd_pollenflug's People

Contributors

doerflt avatar gpsm2 avatar mampfes avatar miggi92 avatar nohn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hacs_dwd_pollenflug's Issues

state_tomorrow_desc and state_in_2_days_desc broken?

I really love this integration, but since the last pull (today 1 o'clock) state_tomorrow_desc is 'null'
and state_in_2_days_desc is also 'null'. The value or 'state_tomorrow' seems to be "broken" too.

Code used:
type: horizontal-stack
cards:

  • type: custom:mushroom-template-card
    primary: Birke
    secondary: '{{ state_attr(''sensor.pollenflug_birke_43'', ''state_tomorrow_desc'') }}'
    icon: mdi:flower-pollen
    icon_color: >-
    {% if is_state_attr('sensor.pollenflug_birke_43', 'state_tomorrow', 0) or
    is_state_attr("sensor.pollenflug_birke_43", "state_tomorrow", 1) or
    is_state_attr("sensor.pollenflug_birke_43", "state_tomorrow", 2) %}

    green

    {% elif is_state_attr("sensor.pollenflug_birke_43", "state_tomorrow", 3)
    or is_state_attr("sensor.pollenflug_birke_43", "state_tomorrow", 4) %}

    yellow

    {% else %}

    red

    {% endif %}
    layout: vertical

Thank you!

Source: helpers/frame.py:77 by Hacs_dwd Pollenflug

Good day,

Today I looked at my Home Assistant log and found this entry in the log:

image

HA - Version: 2023.2.3
HA Operationen System: 9.5

Since Home Assistant pointed this out to me, I thought I'd share it with you so you might be able to provide an update. Thank you in advance for your efforts.

Best regards

Johnnyboy1984

No multiple instance possible

Dear @mampfes,

after installing one instance from your integration, it is not possible to install a second instance.

If i click on (Integration hinzufügen) and search to "DWD Pollenflug" i get no result

image

You can see the first instance in the screenshot.

Is the API down, the value says Unavailable for Pollens

It was working until last night but now it says unavailable and when clicking on it, it shows the message "This entity is no longer being provided by the dwd_pollenflug integration. If the entity is no longer in use, delete it in settings."

no Updates from DwD

Hi,
my data is somehow not updated every hour. My last update was 16 hours ago. With the installation you can not really do much wrong. maybe you can help me?

No config for region_id 40 (NRW)

Dear @mampfes,

i live in NRW, which have the region_id = 40.
But i don't live in the sub-regions with partregion_id 41, 42 or 43

During the customizing, i muss select a sub-region.
Their is no "empty" value.

Use async_forward_entry_setups instead of async_setup_platforms

After installing HomeAssistant 2023.02.0beta a new warning appeared:

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for dwd_pollenflug using this method at custom_components/dwd_pollenflug/__init__.py, line 36: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

This could be resolved similar to HACS change:
hacs/integration@96a1a9e

state_tomorrow always null

The state_tomorrow is always null

state_tomorrow: null
state_in_2_days: null
state_today_desc: keine Belastung
state_tomorrow_desc: null
state_in_2_days_desc: null
last_update: 2022-03-09T11:00:00+01:00
next_update: 2022-03-10T11:00:00+01:00
attribution: Last update: 2022-03-09 11:00:00+01:00
icon: fapro:ambrosia
friendly_name: Ambrosia

die Integration in der aktuellen HA 2024.3.3 installieren

Hi zusammen,

leider lässt sich die Integration bei mir nicht installieren.
Ich habe es auf dem "auto"-Weg und auch auf dem manuellen Weg probiert.

Leider erhalte ich in beiden Fällen, wenn ich dabei bin die Integration meiner HA Instanz (2024.3.3) hinzuzufügen, folgende Fehlermeldung:

Diese Integration unterstützt keine Konfiguration über die Benutzeroberfläche. Wenn du diesem Link von der Home Assistant-Website gefolgt bist, stelle sicher, dass du die neueste Version von Home Assistant ausführst.

Hat jemand eine idee, ob und wenn ja, wie ich das fixen kann ?

Falls von Entwicklerseite da eine Änderung vonnöten ist, würde ich mich sehr freuen, wenn das irgendwie funktionieren kann :)

Danke und viele Grüße
Tardar

integrations and platforms could not be set up

the notification gives:

Invalid config
The following integrations and platforms could not be set up:

dwd_pollenflug.sensor
Please check your config and logs.

the log sas:
Logger: homeassistant.setup
Source: setup.py:317
First occurred: 8:44:38 AM (1 occurrences)
Last logged: 8:44:38 AM

Unable to prepare setup for platform dwd_pollenflug.sensor: Platform not found (cannot import name 'DeviceEntryType' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).

I am running HA core-2021.9.7 and only update according to "don't fix it if it's not broken";-)

Warning in HA 2023.2.0: async_setup_platforms instead of awaiting async_forward_entry_setups

After update on HA 2023.2.0 i get following warning:

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for dwd_pollenflug using this method at custom_components/dwd_pollenflug/init.py, line 36: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

SSL Error

Hello. Dwd Stopped working for me

2022-05-08 23:12:09 ERROR (SyncWorker_1) [custom_components.dwd_pollenflug] fetch data from DWD failed : HTTPSConnectionPool(host='opendata.dwd.de', port=443): Max retries exceeded with url: /climate_environment/health/alerts/s31fg.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)')))

2021-12-19 15:29:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.pollenflug_esche_81 (<class 'custom_components.dwd_pollenflug.sensor.PollenflugSensorEntity'>) implements device_state_attributes. Please report it to the custom component author.

I hope u can fix that spamming my log since 12.1

2021-12-19 15:29:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.pollenflug_esche_81 (<class 'custom_components.dwd_pollenflug.sensor.PollenflugSensorEntity'>) implements device_state_attributes. Please report it to the custom component author.

EDIT:
Sorry, didnt saw theres alreasy a fix merged but not released yet.
Merged it myself and the issue is gone, feel free to release 1.0.1 :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.