[Support WITHDRAWN] GCal-Search: Google Calendar Event contact sensor/switch

Done. I didn’t think about that since when I see someone has a git repo I just add that to my list and do a pull. Makes updates way easier :slightly_smiling:

Yes, thank you @N8XD. It would have taken me a while to figure that out.

Gave this a try and it appears to be working! Will continue to test it, but this is a fantastic addition to the ST environment.

Thank you all for the kind words! I had no idea if anyone would even find this useful.

…with the update to Gentle Wake Up last (?) week, this is very timely–we have a morning routine that’s kicked off by motion during the work week in a time window. However, sometimes (like this past Monday) we’re not actually getting up when the motion event happens. Now I can use this to say that if there’s a vacation event on the calendar and the motion event triggers gentle wake up, Rule Machine will turn off gentle wake up (which should turn off the lights).

This is what happens when you only code for yourself. You can’t possibly think of all the ways it can go wrong!

I’ve updated the code now to check that the device handler exists and give a better error now.

Thanks @N8XD and @flakhany for pointing this out!

Found a bug in gcal-search-trigger.groovy (I think)…

line 126 def search = (!settings.search) ? "" : setting.search

should be

line 126 def search = (!settings.search) ? "" : settings.search

Otherwise you get a NullPointer on a refresh.

Yeah… It’s just a quick change because you finally learned you can do an inline-if, it won’t hurt anything… Famous last words.

Updated. Thanks @Alyc100

Saw a few forks were created. Go for it people. Happy to accept the pull requests!

Maybe someone will even get us a nice icon instead of the one I pull from amazon. hint hint

I can work on the icon…Did it for Rule Machine and I have a template that will give us something nice!

Mike, forgot to mention that this is an amazing app. Have lots of ideas already about how I can use it.

Couple more little bugs in gcal-event-sensor.groovy

line 168

def DateFormat() {
	return "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
}

should be

def DateFormat() {
	return "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
}

otherwise it doesn’t parse the date.

and

line 84

def closeTime = new Date(device.currentState("closeTime").value)

throws NullPointer the first time open() is run.

I actually can’t parse the date if I change it to ‘Z’ instead of just Z. The other one I could see happening so I’ve got the fix ready to push for that.

Perhaps it’s related to the tz of your calendar or ST?

I am in the UK, so that could be why we have a difference.

Ok, I’ve pushed a fix for you @Alyc100

There was also a bug that it was duplicating devices. If you see that just delete it and recreate it.

This is just so so great. Much appreciation and respect.

Can anyone give an update as to how things are going with this app? I’m not in position to add it this minute, but I’d be interested to hear about stability, simplicity of use, any feedback anyone has…

Thanks!

It’s easy, working great, go ahead and install it.

I’m looking for some usecases for this app. Anyone mind sharing ideas?

Works perfectly, I have three (3) calendars that are being monitored, and it creates typical open/close events on each time that they are activated.

My only enhancement would be that the description of the calendar entry be displayed on the associated tile and accessible by a SmartApp like Rule Machine!

I am biased as I helped with some of the interface items, but this has replaced my calendar entries in IFTTT (like when the maids are going to be in the house) with just this app. Very nice application.

Ok, cool. I’m still not in a position to add it, so a few more questions: does it require a new, different calendar for each entry type? That is, for each action I want, do I need a different calendar, or can if just use my existing google calendar and have the app search for specifically worded entries?