pinkywafer / Anniversaries

Anniversary Countdown Sensor for Home Assistant
MIT License
169 stars 26 forks source link

calendar.anniversaries entity not updating #158

Open tcbailey239 opened 10 months ago

tcbailey239 commented 10 months ago

The attributes under calendar.anniversaries entity are only showing the last entry added, not the next upcoming date.

I added 55 anniversary entries spanning the entire year. Looking in developer tools at the calendar.anniversaries entity, the attributes listed include the details of the last anniversary I added (which is for someone in November) as opposed to the next anniversary (which is this week). I went through and added another "test" entry for the end of this month and now that shows in the attributes but it still isn't the next one up. I then added one for the end of February and it shows up in the attributes. Shouldn't the one in January, show instead of the one in February?

The individual anniversary sensors for each entry appear correct.

SebastianLarsson commented 3 weeks ago

Same issue. I guess this is the intended purpose? But now rereading the docs I am unsure. "calendar.anniversaries entity, which shows information about the next configured anniversary. N.B. At the moment, only the next occurence of the anniversaries are added to the calendar". The use would be to not have to loop over each entity or go through the calendar and do a check against todays or tomorrows calendar day