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

Add new source from Hungary/Erd #1341

Closed
5ila5 opened this issue Oct 21, 2023 Discussed in #1339 · 6 comments · Fixed by #1344
Closed

Add new source from Hungary/Erd #1341

5ila5 opened this issue Oct 21, 2023 Discussed in #1339 · 6 comments · Fixed by #1344
Labels
source request Request to add a new source

Comments

@5ila5
Copy link
Collaborator

5ila5 commented Oct 21, 2023

Discussed in #1339

Originally posted by sthevenp October 19, 2023
Dear All,

Is there any chance to add this waste collection schedule service:

https://www.eth-erd.hu/hulladeknaptar

This page looks similar to this one:
FKF Budapest, HU (tahnks @tmshader)

Thanks in advance.

@5ila5 5ila5 added the source request Request to add a new source label Oct 21, 2023
@tmshader
Copy link
Contributor

Added it with PR #1344 :)

@5ila5 5ila5 linked a pull request Oct 22, 2023 that will close this issue
@5ila5
Copy link
Collaborator Author

5ila5 commented Oct 22, 2023

Source will be part of release 1.44.0 or is available now as master (git) version

@judgetom
Copy link

Hi, I tried to use this provider, but unfortunately it doesn't work. I also tried to change the API_URL in eth_erd_hu.py from "https://www.eth-erd.hu/trashcalendarget" to ""https://www.eth-erd.hu/hulladeknaptar", but it still does not work. Can you please check it? Thanks in advance.

@5ila5
Copy link
Collaborator Author

5ila5 commented Apr 27, 2024

The test cases do return entries:

    "Test_1": {"city": "Diósd", "street": "Diófasor", "house_number": 10},
    "Test_2": {"city": "Érd", "street": "Hordó", "house_number": 3},
    "Test_3": {"city": "Sóskút"},

What exactly do you mean with "it doesn't work"? Do you see anything in your logs?

@judgetom
Copy link

judgetom commented Apr 28, 2024 via email

@5ila5
Copy link
Collaborator Author

5ila5 commented Apr 28, 2024

Which entity is unknown, the calendar or the sensors you created? "unknown" sensors mostly indicate an incorrect configured sensor. Is your calendar entity unknown? Are there entries in the calendar tab of HA? If so, make sure your type attribute (if used) of your sensor configuration actually matches the name of the returned entries in your calendar tab.

waste_collection_schedule:
  sources:
    - name: eth_erd_hu
      args:
        city: Diósd
        street: Diófasor
        house_number: 10

If you still encounter any problems, please post your configuration (feel free to use example configuration instead of real address)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source request Request to add a new source
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants