mampfes / hacs_waste_collection_schedule

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

[Bug]: Multiple sensors remain in state 'unknown' after switching to UI config #2517

Closed Kurisutian closed 3 weeks ago

Kurisutian commented 3 weeks ago

I Have A Problem With:

Sensor configuration, The integration in general

What's Your Problem

I recently switched from the yaml configuration to the UI based one. I took each sensor one by one from the yaml file and re-created them in the UI. It all seemed fine at first but later on I noticed something when I did receive my notification to take out the trash the evening before trash day. This collects all sensors starting with 'abfall*' and extracts the days remaining till it needs to go out. When the day shows the next day I will get notified. However for the Lovelace Card I have a sensor showing all entries at once following the instructions I found for that. While the card is showing all trash types correctly I noticed that the push message was missing on a bunch of them. So I checked and except one sensor each individual sensor showed "unknown" for the remaining days. I configured them identically and all came from the yaml file which worked before. Don't know why two are working and the others won't despite they are configured the same. So I presume there is something just not right. I don't really know if it is a bug or me missing something though.

Source (if relevant)

abfallwirtschaft_germersheim_de

Logs

"no relevant logs"

Relevant Configuration

Configured through UI; don't know how I can extract the config

Checklist Source Error

Checklist Sensor Error

Required

5ila5 commented 3 weeks ago

Could you check if this is the same issue as #2325 and #2506? Trailing spaces in sensor types configuration. If so, you can just open the configure page and select the sensors and remove and re-add the type and everything should be good to go

Kurisutian commented 3 weeks ago

It surely does exactly sound like that. Sorry I was unable to find that up front. I will close this one and check as mentioned there. Thanks a bunch and again sorry for the inconvinience.

ckarrie commented 3 weeks ago

Got the same Issue with abfallwirtschaft_germersheim_de, fixed it in #2506

Kurisutian commented 3 weeks ago

Thanks, figured it out. Had to literally type in the sensor name which I did not get in the first place. Worked after doing that. Should have gone through the instructions more carefully... ;-)