that worked - thanks!
v3.3.1 has been published to Github and HPM to address both of these issues. Thank you @es_ferret for your help testing!
- During a new install, the parent GCal Search app forces you to click Done so the app shows up in the installed app list.
- Enhanced the Additional Actions code to ensure that actions are scheduled at the correct times and aren't duplicated. Thank you @es_ferret for bringing this issue to my attention and helping with testing.
You did all the work. I just went to my daily meetings and shared results.
v3.3.2 published to Github and HPM. @es_ferret found that notifications still fired after he paused a search trigger child app.
- Refresh button at the top of the search trigger app is now hidden if the app is paused via Pause button
- Clicking Pause will cancel all scheduled jobs.
- If a child switch is present:
- The child switch states will be blanked out and the switch will toggle to the default state.
- If the Poll or Refresh buttons are clicked, a warning in the log will be created letting you know the parent app is paused.
Updated to the latest version a week ago....I knew that I should not have done this. Now,
"If the popup presents an 'Authorization Error, Error 400: redirect_uri_mismatch' please check your OAuth credential in the Google Console to ensure it is of type Web application and that the redirect URI is set correctly."
I have no idea how to do that.
What version were you on? If v2 you must follow these upgrade instructions as listed in post 2 above.
Somehow I missed the "upgrade instructions". It seems to have worked. Thank you!
Calendar events have a reminder feature that you can set when creating a new event which I find incredibly useful with my day job and personal life. As I tell everyone if something isn't on my calendar then I won't remember to be there. Google has a very flexible scheduling of that reminder letting you set it minutes, hours, or even weeks in advance of an event - done via Google Calendar App or web browser (iOS calendar doesn't allow this much flexibility). This reminder can vary from event to event.
Curious if anyone would benefit on bringing this into Hubitat as I can see a few uses:
- Notifications: advanced push or speech notification to a calendar event. Trash collection notifications, holidays, etc. Today there is an offset you can define but this is set for all events that match the criteria versus being dynamic based on the reminder of a calendar event. This could also allow a reminder notification to be sent yet switch could toggle based on event start and end.
- Dynamic offset: have switch toggle or additional actions run dynamically based on the reminder value. Reminders are typically run in advance of scheduled time so could include ability to "delay" start based on this value too. All day events start at midnight but lets say you want to delay the switch toggling 6 hours later at 6 AM.
I am happy to invest some time building this if folks would find this useful. Please let me know your thoughts!
I would find it very useful I have a lot of rules that fire based off of the virtual switches from my calendar and have them firing off notifications through echo speaks for reminders or firing off other routines so this would be very useful to me. I love your app I just started playing around with HA and wish they had something like this as well so thank you for your work.
I was just looking at this app in my system and thinking "this would be great if it would trigger from reminders for bday's"... and speech reminders are exactly where I was contemplating.
v3.4.0 has been published to Github and HPM with these features.
Dynamic Offset based on the reminder setting is found in the Schedule Settings section:
Reminder notification setting is found in the Additional Actions section:
v3.4.1 has been uploaded to Github and HPM updated.
Encountered an issue with one of my calendar searches over night. Basically I am querying my kids calendars for a wake up alarm starting at 2 AM and a default reminder number of minutes wasn't set within their calendar and I started getting errors in my HE logs. This new version will detect this situation and default it to 15 minutes if one isn't set.
You can set a default notification timing within your Google Calendar via web browser:
- Open https://calendar.google.com within a web browser
- Find the calendar you want to edit in My calendars within the left navigation
- Click the 3 dots beside the name and choose "Settings and sharing"
- Scroll to the Event notifications section and click the + Add notification
- This will set the default notification for all calendar events within that specific calendar and you can override this on individual events with a different value.
I for the life of me cannot get the created switch to toggle on or off with events. I can see all the event details in the switch's device page and I can Poll or Switch the device but it will not do it automagically. I used this app pre pandemic and haven't had a need for it since but with things now as normal as they're going to be I need it to perform tasks programmed in Webcore based on the switch's state again. What could I be doing wrong? I deleted all the old apps and updated to the latest 3.4.1.
I am going to need more details on your search trigger settings and what type of event you have in your calendar that matches. Feel free to post here or PM me the details. Might need some debug logs too but let’s first start with your settings.
Sent you a PM.
Thanks @ritchierich!! For posterity and so that others might check for issues, I had v1.0.0 app code still in my Apps Code section and the v3.4.1 searches were attaching to it vs the latest code.
All v3.4.2 has been published to Github and HPM. @es_ferret uses this app for meeting reminder notifications and he found that the notification was duplicating sometimes after a meeting has started. I refactored the code to only duplicate a notification if one of the variables designated in the notification changed vs any attribute of the Google item changing.
@ritchierich I just installed this, and I have a quick question: If "Delay toggle to event start" is turned off, will the value of the "eventStartTime" attribute on the child switch still be set to the actual calendar event time, or will it be set to the time the query runs?
All the event* attributes are set according to the matched Google item. What happens is a scheduled job won’t be created to toggle the switch at the start of the event. It will toggle immediately but you can still reference the actual start time via this attribute.