-
Notifications
You must be signed in to change notification settings - Fork 262
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
"next_alarm" not updated for timers with recurrence #566
Comments
Every 10 minutes or on hearing a command. |
That's not the case as I can clearly see "3 hours ago". Simone |
Please provide logs (check wiki for info). We'll be looking for the following lines:
We'll also need to see the json output from https://alexa.amazon.com/api/notifications (fix the region) for the specific alarm that isn't updating. |
First, you'll need to update the url to the domain you are using to connect to Amazon (e.g., alexa.amazon.it if you're in Italy). Second, if you are seeing that on the correct domain, you have connectivity issues to Amazon and of course the component won't work. |
I see the GET (with 200 OK) but not the "udpated notifications" in my debug log. Simone |
Can you please provide the json from the notifications page for the missing alarm? |
Sure, how should I capture it ? Simone |
|
taken at 09:36 (Rome) {"notifications":[{"alarmTime":1584057600000,"automationId":null,"createdDate":1583795024866,"deferredAtTime":null,"deliveryType":null,"deviceName":null,"deviceSerialNumber":"xxxxxxxxxx","deviceType":"A1RABVCI4QCIKC","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A1RABVCI4QCIKC-xxxxxxxxx-8a3e70ce-c774-4909-98b6-082681e25c4b","lastOccurrenceTimeInMilli":0,"lastUpdatedDate":0,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"8a3e70ce-c774-4909-98b6-082681e25c4b","originalDate":"2020-03-13","originalTime":"08:00:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurrenceEligibility":false,"recurringPattern":"XXXX-WD","remainingTime":0,"reminderAppLabel":null,"reminderLabel":null,"reminderSubLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"tmwNotificationProperties":null,"triggerTime":0,"type":"Alarm","version":"19"},{"alarmTime":1583798400000,"automationId":null,"createdDate":1581459338506,"deferredAtTime":null,"deliveryType":null,"deviceName":null,"deviceSerialNumber":"xxxxxxxxx","deviceType":"A1RABVCI4QCIKC","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A1RABVCI4QCIKC-xxxxxxx-9ef5918c-06ba-4a54-ba93-b7f1ab9d538f","lastOccurrenceTimeInMilli":0,"lastUpdatedDate":0,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"9ef5918c-06ba-4a54-ba93-b7f1ab9d538f","originalDate":"2020-03-10","originalTime":"07:00:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurrenceEligibility":false,"recurringPattern":"XXXX-WD","remainingTime":0,"reminderAppLabel":null,"reminderLabel":null,"reminderSubLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"tmwNotificationProperties":null,"triggerTime":0,"type":"Alarm","version":"81"},{"alarmTime":0,"automationId":null,"createdDate":1581717987717,"deferredAtTime":null,"deliveryType":null,"deviceName":null,"deviceSerialNumber":"xxxxxxx","deviceType":"A1RABVCI4QCIKC","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A1RABVCI4QCIKC-xxxxxx-ac4f1bee-cd90-33b4-bbbe-4c20c1d191f1","lastOccurrenceTimeInMilli":0,"lastUpdatedDate":0,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"ac4f1bee-cd90-33b4-bbbe-4c20c1d191f1","originalDate":"2020-02-15","originalTime":"09:00:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurrenceEligibility":false,"recurringPattern":null,"remainingTime":0,"reminderAppLabel":null,"reminderLabel":null,"reminderSubLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"tmwNotificationProperties":null,"triggerTime":0,"type":"Alarm","version":"3"},{"alarmTime":1583798400000,"automationId":null,"createdDate":1582700396167,"deferredAtTime":null,"deliveryType":null,"deviceName":null,"deviceSerialNumber":"xxxxxxxx","deviceType":"A1RABVCI4QCIKC","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A1RABVCI4QCIKC-xxxxxxx-f76fc3fc-768d-490d-afb0-a9ec92ce0e4f","lastOccurrenceTimeInMilli":0,"lastUpdatedDate":0,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"f76fc3fc-768d-490d-afb0-a9ec92ce0e4f","originalDate":"2020-03-10","originalTime":"07:15:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurrenceEligibility":false,"recurringPattern":"XXXX-WD","remainingTime":0,"reminderAppLabel":null,"reminderLabel":null,"reminderSubLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"tmwNotificationProperties":null,"triggerTime":0,"type":"Alarm","version":"81"}]} |
Thanks, can you identify which ones wasn't showing up that should've been showing up? |
Alarm was 8:00 am for working days Simone |
Can you please provide the attributes for the next_alarm sensor in HA for that item? Is sorted_active empty? Also, can you confirm whether at the time you took the notifications info, whether the date was in the past for you? "originalDate":"2020-03-13","originalTime":"08:00:00.000" |
Never mind. Was able to reproduce it and have a fix. |
As a further note, Amazon does update the alarm json at midnight so any timers will show the next day's timers. |
fix: fix next timer for recurrence alarms
Describe the bug
After a alarm fire, value show past data, like "2 hours ago".
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After a alarm fire, I would epect "next_alarm" to show the next one.
I think this is down to the way refresh is done.
Screenshots
If applicable, add screenshots to help explain your problem.
System details
const.py
or HA startup): 2.5.5pip show alexapy
or HA startup):The text was updated successfully, but these errors were encountered: