I noticed on the last update (couple days ago), that now if I have 2 events ending in the same day, I get a notification for the first (proper time), and then immediately I get a second notification with the first and second event (co listed in the event) at the first events time.
IE: Kid1 ends works at 7:00 PM. Kid2 ends work at 7:15PM.
I get one notification that says "kid1 ends at 7:00PM" and then a second that says "kid1, kid2 ends at 7:00PM".
Sorry, I meant I just noticed the update and did that a couple days ago (3.4.2).
This was what was in the calendar (same day):
Job1: 11:15AM - 7:00PM
Job2: 11:30AM - 7:15PM
I have it set to notify me 30 minutes before the end of their jobs. I got one notification at 6:30PM that says "Job1 ends at 7:00PM" and then a second that says "Job1, Job2 ends at 7:00PM". I never get one specific for Job2 (the later event), and it doesn't have the right end time.
Looks to be something when they overlap in the calendar.
OK cool just wanted to make sure something wasn't missed
I haven't been able to reproduce this issue in my testing. How frequently are you polling your calendar? I ask because this app by design only fires for the first matching item found so overlapping items can get tricky unless you are polling more frequently. But this said with offsets in place it might fire an event late. Still doesn't explain the odd text you received but I haven't been able to reproduce.
Hmmm, no, I don't have that set. Right now I configured it for:
Include all day Events: True
Calendar field to search: title
Search string: *
Run: Perdiodically
Frequency: Hours
Range: 1
Start at: 5:00 AM
Search range: end of day
Expand end date for sequential events? True
Delay to Calendar Event start: True
Set offset? True
Start offset: -20
End offset: -20
If you want individual details I would recommend turning off this setting. With this enabled on overlapping events your end notification would be delayed based in the second overlapping event end time.
Has there been similar overlapping schedules before? Curious examples of the notifications you received. With the above mentioned setting set to true and hourly polling I don’t see how you received 2 notifications for the overlapping events. If you recall what version you were on prior to 3.4.2 I can roll back and try to reproduce there.
Please go to the apps code and ensure both GCal apps have 3.4.2 at the top and same for the GCal driver.
If the desire is to have notifications for both kids schedules, separate search triggers is the best solution.
It would have been the last HPM version just before this one (assuming you didn't release a bunch in between). I had been logging in to check, and other apps got updates, but I must have stopped before you released 3.4.2
I unchecked the "expand date for sequential events" to see if that is it. I've never seen this issue before, but I'm not 100% sure that the kids ever had overlapping schedules that close together before. I want to say "no" there was always 30+ minutes between start/end, and this time it was 15 minutes. Could have been one of those unicorn cases!
Cool please let me know how things go. If you go get an odd notification again please check your log for errors and report those here. Hopefully this is just a unicorn case!
Getting back to this: I'm having trouble using the "eventStartTime" attribute in WebCoRE because it isn't in ISO 8601 format. Is it possible to add two new attributes to the child switch, one for start and one for end time, that exposes them either in ISO 8601 format, or as a millisecond epoch timestamp?
It does using Other which allows you to put in whatever you want. Example using: yyyy-MM-dd HH:mm:ss
Which I believe is what you need
I have never used Webcore but honestly surprised it doesn't provide formatting capabilities for dates. Dates are always my nemesis when coding as they are a huge pain in the rear.
Edit: Maybe you need to use the following format instead. This is what Google uses behind the scenes in their APIs: yyyy-MM-dd'T'HH:mm:ss
Using "Other" you can enter whatever format is required by Webcore including time formatting. Again I have no experience with Webcore so you might for help in that community thread.
Sorry about the late response. This is all good with once I unchecked that box. Looks like previously, I never had 2 schedules that would be within my search window before.
Import of the indicated code failed, with error message when I attempt to save:
No signature of method: Script1.definition() is applicable for argument types: (java.util.LinkedHashMap) values: [[name:GCal Search Trigger, namespace:HubitatCommunity, author:Mike Nestor & Anthony Pastor, cometfish, ritchierich, ...]] on line 25
I then read in your revision history, that as of version 3.1.0, "Child switch is now optional".
I then thought, "Maybe we go ahead and try making a custom trigger..?".
Finally, when I attempt to use the application, "GCal Search", by creating a new search, I receive error:
App type not found for namespace: HubitatCommunity and name: GCal Search Trigger
The parent application code installed and configured (Seemingly?) just fine. Can anyone elucidate me regarding proper installation, usage?
Are you using HPM? If so it makes the code installation much easier. All 3 components are necessary even though the child switch is now an optional component because of the way Groovy compiles all the code. Please make sure you have the two apps and the one driver installed.