mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
988 stars 631 forks source link

[Bug]: Not able to configure Golemio #2344

Open fumantsu opened 1 month ago

fumantsu commented 1 month ago

I Have A Problem With:

A specific source

What's Your Problem

I'm trying to add golemio.cz from the GUI and after submit I get "The source returned an empty response. Please check the provided arguments and try again." The values are working because I tested in the same time in https://api.golemio.cz/docs/public-openapi/#/%E2%99%BB%EF%B8%8F%20Waste%20Collection%20(v2)/getWCStations. I tested also the "example" lan/lot (which are real) and neither these are working. Unfortunately logs are not very helpful and I tried with tcpdump to capture the request but not helpful also.

Source (if relevant)

golemio.cz

Logs

2024-07-27 15:44:25.868 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Setting suggested value for lat to 50.124935 (previously filled in)
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for lat: <class 'inspect._empty'>
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Required: lat as default type: str
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Setting suggested value for lon to 14.457204 (previously filled in)
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for lon: <class 'inspect._empty'>
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Required: lon as default type: str
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Setting suggested value for radius to 50 (previously filled in)
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for radius: <class 'inspect._empty'>
2024-07-27 15:44:25.869 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Required: radius as default type: str
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Setting suggested value for api_key to xxxxxxx (previously filled in)
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for api_key: <class 'inspect._empty'>
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Required: api_key as default type: str
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Setting suggested value for only_monitored to False (previously filled in)
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for only_monitored: <class 'bool'>
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Setting suggested value for ignored_containers to [] (previously filled in)
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] ignored_containers UnionType: <class 'list'>, <class 'type'>
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] ignored_containers UnionType: <class 'NoneType'>, <class 'type'>
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for ignored_containers: <class 'NoneType'>
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Setting suggested value for auto_suffix to True (previously filled in)
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for auto_suffix: <class 'bool'>
2024-07-27 15:44:25.870 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] suffix UnionType: <class 'str'>, <class 'type'>
2024-07-27 15:44:25.871 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] suffix UnionType: <class 'NoneType'>, <class 'type'>
2024-07-27 15:44:25.871 DEBUG (MainThread) [custom_components.waste_collection_schedule.config_flow] Default for suffix: <class 'NoneType'>

Relevant Configuration

50.124935,14.457204
Radius 500, auto-suffix enabled

Checklist Source Error

Checklist Sensor Error

Required

5ila5 commented 1 month ago

You config actually causes some issue not quite sure what exactly went wrong @sairon do you want to look into this (as you wrote the original code) "lat": 50.124935, "lon": 14.457204, "radius": 500,

but the example configuration works for me: image

fumantsu commented 4 weeks ago

Sorry for a long reply, indeed the once that you have in your example are working which is strange. btw: the "example" which I mention are from the page and bit different (50.124935,14.457204)