-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dates off from what is set to what is in Attributes #106
Comments
I'm having the same issue, but I am noticing it is only happening to newer entries. Birthdays or anniversaries that I had in there from before are displaying the correct date. |
Unable to reproduce.... Can you give any more info? |
Sensor names shouldn't affect it.... But I'm wondering if timezone could be affecting it... The sensor is based on the date, so effectively the time in the datetime object is 0:00:00. I'm wondering if this is the issue... I'll investigate. Also, just as a check.. can you tell me if the countdown number of days is reporting correctly, ie. It's not also a day off? |
if I ask google how many days until it matched the # of days you display |
Thanks. I'll look into the date... Expect it's timezone related |
The date should not be calculated in attributes ? It should just pull/match from the input? |
Or does it need to be calculated for the half anniversary? |
It's checked and converted to a datetime rather than a text (it could come from a template in the configuration.yaml) so it's most likely to be there. Ie if the date returned to home assistant is 15/7/21@0:00:00UTC, that would equate to 14/7/21@20:00 Washington That's what I'm expecting anyway.... Leave it with me! |
well, so far, I'm drawing a blank. If I add some extra debug lines would anyone who has this issue mind testing and send me back the logs please. |
OK, I've published a beta release with debug logging in an attempt to find out where this issue is coming from. to enable the debug logging, you will need the following in your configuration.yaml: logger:
default: warning
logs:
custom_components.anniversaries: debug reboot home assistant and we should get some logging information |
How long will it take for a debug file to show? I have installed 1b1 added logger: and rebooted, but I do not see anything |
The log entries should appear as soon as you reboot (assuming you have anniversary sensors configured) or whenever you add a new one on the integrations page. The logs should be in your main home assistant log. - on the log page you need to press load full home assistant log |
I was looking in the aniverseries folder. I misspelled test lol anniversaries
|
Ok, so I believe that the issue started when Home assistant started using native types instead of attributes just being text. In the example @tetragram55 gave at the beginning, the date in attributes is now listed as: December 21, 1960 So I have two options:
My reasoning for choosing 2... No-one has raised any issues regarding the lack of formatting in the date attribute, so I'm assuming that it hasn't caused any issues. Also, using the native format should actually make any templating on this attribute easier. Additionally, of the date is formatted by home assistant, it then visually matches all other dates in home assistant. |
well I really have no idea what you just said :) |
I like the sound of option 2 because it will visually match other dates in home assistant |
Any progress on this issue? I do not want to miss my Birthday ;-) |
Can anyone please try the |
Sorry my bad... I used an invalid version number. If not, revert to stable and I'll look again tomorrow |
Yes, I selected count up and I should have not checked anything |
So still just date that's off? |
can you tell me if the sensor is updating at midnight (as it should) or at some other time? |
Midnight |
Thanks - it looks like a frontend issue - I think I'm getting somewhere now! |
can you try the 2022.01.07 beta please? |
Ok, let's try with the full datetime object - can you try 2022.01.07-2 please |
dash 2 is not showing up for me yet |
on hacs, find anniversaries - press 3 dots - update information. |
OK - Home Assistant doesn't like dash in release numbers.... |
working on it |
My bad... in my haste I released from the wrong branch! can you try r3 |
I figured you must not be on my side of the pond. Sleep well and thank you ! |
closed by #114 |
I love this add on, thank you for making it.
I noticed this today, I don't know when it started but it wasn't always like this.
I am using core-2021.6.4 with the latest version of Anniversaries
The date set in the set up is as follows:
But what is shown in Attributes is this:
The text was updated successfully, but these errors were encountered: