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

[Bug]: ICS Sensor Not longer working #2180

Closed
7 tasks done
bluenazgul opened this issue Jun 22, 2024 · 7 comments
Closed
7 tasks done

[Bug]: ICS Sensor Not longer working #2180

bluenazgul opened this issue Jun 22, 2024 · 7 comments

Comments

@bluenazgul
Copy link

bluenazgul commented Jun 22, 2024

I Have A Problem With:

Sensor configuration

What's Your Problem

Waste Collection ICS Sensor stopped working

Sadly i dont know since when it is Not working, but it worked Like this for a Long time

Source (if relevant)

Stadt Detmold - Abfuhrkalender

Logs

HA Error Log:
`Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:366
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 15:49:36 (10 Vorkommnisse)
Zuletzt protokolliert: 15:49:36

Error while setting up waste_collection_schedule platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/waste_collection_schedule/sensor.py", line 82, in async_setup_platform
    raise ValueError(
ValueError: source_index 0 out of range (0--1) please check your sensor configuration`


Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: waste_collection_schedule.source_shell
Quelle: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:208
Integration: waste_collection_schedule (Dokumentation)
Erstmals aufgetreten: 16:10:03 (1 Vorkommnisse)
Zuletzt protokolliert: 16:10:03

source not found: ics

Relevant Configuration

Sensor Configuration (Main Sensor):
`waste_collection_schedule:
  sources:
    - name: ics
      args:
        regex: "Müllabfuhr: (.*)"
        url: "https://abfuhrkalender.detmold.de/icsmaker.php?strid=176&year={%Y}"


Even the older Sensor isnt working:
`waste_collection_schedule:
  sources:
    - name: ics
      args:
        regex: "Müllabfuhr: (.*)"
        url: https://abfuhrkalender.detmold.de/icsmaker.php
       #file: "abfall2021.ics"
        params:
          strid: 176
          year_field: year
`

Checklist Source Error

  • Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
  • Checked that the website of your service provider is still working
  • Tested my attributes on the service provider website (if possible)
  • I have tested with the latest version of the integration (master) (for HACS in the 3 dot menu of the integration click on "Redownload" and choose master as version)

Checklist Sensor Error

  • Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)

Required

  • I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
  • I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
@5ila5
Copy link
Collaborator

5ila5 commented Jun 22, 2024

source not found: ics

sounds like a corrupted install: Try uninstalling and reinstalling this integration (HACS: seems to do this sometimes, not sure why and when)

This probably happened at the last update

@5ila5
Copy link
Collaborator

5ila5 commented Jun 29, 2024

@bluenazgul Did this work? Can I close this now?

@bluenazgul
Copy link
Author

bluenazgul commented Jun 29, 2024 via email

@5ila5 5ila5 closed this as completed Jun 29, 2024
@Clam58
Copy link

Clam58 commented Oct 22, 2024

I’ve just encountered the same problem. I’ve tried uninstalling, rebooting then reinstalling several times but it’s still erroring

Logs:

This error originated from a custom integration.

Logger: custom_components.waste_collection_schedule.waste_collection_schedule.source_shell
Source: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:221
integration: Waste Collection Schedule (documentation)
First occurred: 20:16:44 (1 occurrences)
Last logged: 20:16:44

source not found: ICS

@5ila5
Copy link
Collaborator

5ila5 commented Oct 23, 2024

@Clam58 do you use YAML configuration? source not found: ICS: ICS does not exist, it should be ics

@Clam58
Copy link

Clam58 commented Oct 23, 2024

Yes, YAML config - it was set to ics in lower case, and not working, so I tried changing to upper case. Have reverted back and still not working. It only stopped working yesterday.

thanks

@5ila5
Copy link
Collaborator

5ila5 commented Oct 23, 2024

it's probably the same problem as #2907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants