bruxy70 / Garbage-Collection

🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
382 stars 90 forks source link

No First date field in "every-n-days" #420

Closed WiktorBuczko closed 1 year ago

WiktorBuczko commented 2 years ago

Before you submit a new bug report, please check that

Describe the bug

On step 1 configuring new garbage collection I chose every-n-days. On step 2 there should be First Date field but it is not there. Clicking submit shows error message User input malformed: Could not parse date for dictionary value @ data['first_date' Zrzut ekranu 2022-07-29 o 10 46 31 Zrzut ekranu 2022-07-29 o 10 46 05 Zrzut ekranu 2022-07-29 o 10 45 48 ]

Configuration

There is no Garbage collection device here, it redirects me to create new helper.

Debug logs

In logs there is no mention of new added sensor, only of already added and working sensors.
2022-07-29 11:04:23 DEBUG (MainThread) [custom_components.garbage_collection] Setting Wywóz śmieci segergowanych (every-n-weeks) from ConfigFlow
2022-07-29 11:04:23 DEBUG (MainThread) [custom_components.garbage_collection] Setting Wywóz śmieci zmieszanych (every-n-weeks) from ConfigFlow
2022-07-29 11:04:23 DEBUG (MainThread) [custom_components.garbage_collection] Setting test śmieci (weekly) from ConfigFlow
2022-07-29 11:04:23 DEBUG (MainThread) [custom_components.garbage_collection.sensor] Creating garbage_collection calendar
2022-07-29 11:04:36 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci segergowanych) Calling update
2022-07-29 11:04:36 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci segergowanych) Dates loaded, firing a garbage_collection_loaded event
2022-07-29 11:04:45 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform rest is taking over 10 seconds.
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called remove_date 2022-05-03 from sensor.wywoz_smieci_segregowanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci zmieszanych) Calling update
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci zmieszanych) Dates loaded, firing a garbage_collection_loaded event
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (test śmieci) Calling update
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (test śmieci) Dates loaded, firing a garbage_collection_loaded event
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (test śmieci) Looking for next collection
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (test śmieci) next_date (2022-08-03), today (2022-07-29)
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (test śmieci) Found next collection date: 03-Aug-2022, that is in 5 days
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called remove_date 2022-05-03 from sensor.wywoz_smieci_zmieszanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called remove_date 2022-11-01 from sensor.wywoz_smieci_segregowanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called remove_date 2022-11-01 from sensor.wywoz_smieci_zmieszanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called add_date 2022-05-05 from sensor.wywoz_smieci_segregowanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called add_date 2022-05-06 from sensor.wywoz_smieci_zmieszanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called add_date 2022-11-03 from sensor.wywoz_smieci_segregowanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called add_date 2022-11-04 from sensor.wywoz_smieci_zmieszanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection] called update_state for sensor.wywoz_smieci_segregowanych
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci segergowanych) Looking for next collection
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci segergowanych) next_date (2022-08-09), today (2022-07-29)
2022-07-29 11:04:45 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci segergowanych) Found next collection date: 9 Aug, that is in 11 days
2022-07-29 11:04:45 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 403
2022-07-29 11:04:46 DEBUG (MainThread) [custom_components.garbage_collection] called update_state for sensor.wywoz_smieci_zmieszanych
2022-07-29 11:04:46 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci zmieszanych) Looking for next collection
2022-07-29 11:04:46 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci zmieszanych) next_date (2022-08-09), today (2022-07-29)
2022-07-29 11:04:46 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Wywóz śmieci zmieszanych) Found next collection date: 9 August, that is in 11 days
bruxy70 commented 2 years ago

Interesting, I have that on the second screen, cannot replicate the issue.

image
WiktorBuczko commented 2 years ago

I have tried different browser (Firefox on Mac) and it worked. First date field didn't showed up in companion app on iOS and macOS and in Safari.

ZuluWhiskey commented 1 year ago

I am also having this issue, Companion App and Chrome on my iPhone image image

ND1988 commented 1 year ago

me too image

bruxy70 commented 1 year ago

Interesting. Can you please try 4.10.2b1? This should fix it. Thanks!

ND1988 commented 1 year ago

Worked from iPhone now, But my issue came up on a Windows PC with Chrome, will check that tomorrow.

ND1988 commented 1 year ago

Worked from Windows PC with Chrome, can be closed from my side.