No First date field in "every-n-days"
See original GitHub issueBefore you submit a new bug report, please check that
- I have read frequently asked questions and limitations
- I’m running the newest version of Garbage Collection, or the next pre-release.
- I have enabled debug logging for my installation.
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’ ]
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:
- Created a year ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
me too
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.