Replies: 3 comments 5 replies
-
Generally if you would want to show Today instead of the date you could use a value_template like But if the sensor gets Unknown, this probably means that there is no collection in the calendar (probably because the source does not get dates for the current date for some reason). If you could say which source you're using, I could take a look at the code. |
Beta Was this translation helpful? Give feedback.
-
The source is:
It did seem odd that the dates prior to and after the collection day were normal. |
Beta Was this translation helpful? Give feedback.
-
Adding to this post as i have exactly the same issue and was looking for an answer. I have tried to incroporate the day switch trigger, but it has not made any difference My calendar is showing a collection today: It is this "unknown" i would like to change so it reads "Today". so i think @Spookster was onto something with the value template. waste_collection_schedule:
sources:
- name: wealden_gov_uk
args:
uprn: "10033417169"
customize:
- type: Rubbish
- type: Recycling
day_switch_time: 23:59
sensor:
- platform: waste_collection_schedule
name: Rubbish
details_format: upcoming
value_template: 'Due in {{value.daysTo}} days'
types:
- Rubbish
- platform: waste_collection_schedule
name: Recycling
details_format: upcoming
value_template: 'Due in {{value.daysTo}} days'
types:
- Recycling |
Beta Was this translation helpful? Give feedback.
-
With the standard code, if today is the collection day, the output is 'unknown'
Im no expert in code, so how do we make it show 'Today' instead of unknown?
Beta Was this translation helpful? Give feedback.
All reactions