question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ND1988commented, Dec 17, 2022

me too image

1reaction
WiktorBuczkocommented, Jul 31, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bruxy70/Garbage-Collection: Custom Home Assistant ... - GitHub
First date, Yes, Repeats every n days from this first date (date in the international ISO format 'yyyy-mm-dd' ). Period, No, Collection every...
Read more >
[Date] field to only allow current date and future... - ServiceNow
Solved: Hi, I've the following script that allows not to select any past dates. But I would like to modify this to select...
Read more >
Entity Framework Code First Date field creation - Stack Overflow
The following code creates a DATETIME column in the database, but I want to create a DATE column. [DataType(DataType.Date)] [DisplayFormatAttribute( ...
Read more >
FIRSTDATE function (DAX) - Microsoft Learn
Returns the first date in the current context for the specified column of dates. Syntax. DAX Copy. FIRSTDATE( ...
Read more >
SAP: Sales Document Date Fields Demystified
If a customer requests delivery today but product is not available, the “First Date” will be the date that SAP calculates the product...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found