And as such that is fine, however if I update the alarm from Homey mobile app, or from a flowCard in my app fi.oh2th.alarmutils using getAlarm({ id: alarm.id }) the result has nextOccurance always one update behind.
For example if I now update the time to 19:04 and repetition for Wednesdays, the next getAlarm({ id: alarm.id }) will result in:
On app start I fetch all alarms with HomeyAPIV2.alarms.getAlarms and have a result:
And as such that is fine, however if I update the alarm from Homey mobile app, or from a flowCard in my app fi.oh2th.alarmutils using getAlarm({ id: alarm.id }) the result has nextOccurance always one update behind.
For example if I now update the time to 19:04 and repetition for Wednesdays, the next getAlarm({ id: alarm.id }) will result in:
where everything else is correct except nextOccurance is still the old value. Now of I update again, nextOccurance becomes the previous value.