Closed TheBassfly closed 1 year ago
What was the problem with ics?
I did a short test with mein-abfallkalender.de and the ics source and it worked: Select your adress in the web page, then go to "Termine iCal / WebCal". Set "Erinnerung" to "keine Erinnerung" and set "Verwendung" to "Termine via WebCal Protokoll abonnieren (Allgemein)". You then get a webcal and a http link. Use the http link with the ics source.
Maybe I need some advanced help.
The Integration got an error in the log:
2023-03-06 18:51:23.153 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration waste_collection_schedule which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-06 18:51:23.157 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-06 18:51:23.159 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-06 18:51:23.161 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration eufy_security which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-06 18:51:23.163 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration ics_calendar which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-06 18:51:23.165 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-06 18:51:23.168 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-06 18:51:34.807 ERROR (MainThread) [homeassistant.setup] Error during setup of component waste_collection_schedule Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 256, in _async_setup_component result = await task File "/config/custom_components/waste_collection_schedule/init.py", line 109, in async_setup api.add_source_shell( File "/config/custom_components/waste_collection_schedule/init.py", line 202, in add_source_shell SourceShell.create( File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 196, in create source = source_module.Source(**source_args) # type: ignore File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py", line 146, in init raise RuntimeError("Specify either url or file")
Here is my config:
waste_collection_schedule: sources:
Try:
waste_collection_schedule:
sources:
- name: ics
args:
url: "http://eppstein.mein-abfallkalender.de/ical.ics?sid=19799&cd=inline&ft=noalarm&fu=webcal_other&fp=next_30&wids=494,495,496,498,497,499,502,500,513,501&uid=263834&pwid=d9caede3b1&cid=80"
Replace the URL with the one that you get from the webpage for your location.
Thank you
So the Calendar looks Imported, but the Sensor thing is still not working. The Sensors are shown as Unavailable.
Here the config:
waste_collection_schedule:
sources:
- name: Abfallkalender
args:
url: XXX
customize:
- type: Papier
alias: papier
icon: mdi:file-outline
- type: Gelber Sack
alias: gelber
icon: mdi:recycle
fetch_time: "04:00"
day_switch_time: "13:00"
sensor:
- platform: waste_collection_schedule
name: Abfall Papier
details_format: "upcoming"
types:
- papier
- platform: waste_collection_schedule
name: Abfall Gelber Sack
details_format: "upcoming"
types:
- gelber
looks like it should work. this gives me the two sensors with the time till pickup
waste_collection_schedule:
sources:
- name: ics
args:
url: "http://eppstein.mein-abfallkalender.de/ical.ics?sid=19799&cd=inline&ft=noalarm&fu=webcal_other&fp=next_30&wids=494,495,496,498,497,499,502,500,513,501&uid=263834&pwid=d9caede3b1&cid=80"
customize:
- type: Papier
alias: papier
icon: mdi:file-outline
- type: Gelber Sack
alias: gelber
icon: mdi:recycle
sensor:
- platform: waste_collection_schedule
name: Abfall Papier
details_format: "upcoming"
types:
- papier
- platform: waste_collection_schedule
name: Abfall Gelber Sack
details_format: "upcoming"
types:
- gelber
Thank you
I used the same config and HA shows me that the created sensors are not available.
There are 2 read icons in your screenshot at the end of the line. This means that the integration doesn't provide these items any more. Did you remove the sensor
part from your configuration or rename the sensors?
Please share your configuration again.
No serious changes:
waste_collection_schedule:
sources:
- name: ics
args:
url: "http://eppstein.mein-abfallkalender.de/ical.ics?sid=19799&cd=inline&ft=noalarm&fu=webcal_other&fp=next_30&wids=494,495,496,498,497,499,502,500,513,501&uid=263834&pwid=d9caede3b1&cid=80"
customize:
- type: Papier
alias: papier
icon: mdi:file-outline
- type: Gelber Sack
alias: gelber
icon: mdi:recycle
- type: Biomüll
alias: bio
icon: mdi:bio
- type: Restmüll
alias: rest
icon: mdi:trash-can-outline
- type: Sperrmüll
alias: sperr
icon: mdi:sofa-outline
- type: Wertstoffhof
alias: wert
icon: mdi:recycle-variant
sensor:
- platform: waste_collection_schedule
name: Abfall Papier
details_format: "upcoming"
types:
- papier
- platform: waste_collection_schedule
name: Abfall Gelber Sack
details_format: "upcoming"
types:
- gelber
- platform: waste_collection_schedule
name: Abfall Restmüll
details_format: "upcoming"
types:
- rest
- platform: waste_collection_schedule
name: Abfall Biomüll
details_format: "upcoming"
types:
- bio
- platform: waste_collection_schedule
name: Abfall Sperrmüll
details_format: "upcoming"
types:
- sperr
- platform: waste_collection_schedule
name: Abfall Wertstoffhof
details_format: "upcoming"
types:
- wert
The only thing I notice ist, that the integration sometimes works and sometimes not. At one day I see Dates in the sensors, and on the other day the sensors aren't available again.
This sounds like a problem with the service provider. I have heard that mein-abfallkalender.de limits the access, so if you restart your Home Assistant multiple times a day, it could be that you're blocked for one day or so.
Oh, good point. Thank you for the information.
Could I maybe avoid it to go via a Google calendar with it, or is google same with blocking?
Not sure, but as I know, Google doesn't have that strict blocking philosophy.
I would love to see an integration for the "mein-abfallmalender.de"
I couldn't make the ICS Import to work correct.
Thank you:
https://eppstein.mein-abfallkalender.de