UPDATED gCal Event Sensor version 20180327.1 :
- eventTime now works for all-day events
- added eventTitle attribute
- added Power capability (toggles between 0 and 1 on each refresh) - for use with webCoRE bc defined subscriptions to custom attributes of virtual devices don’t work
UPDATED gCal Event Sensor version 20180327.2
- added startOffset and endOffset attributes;
- these can be set by new commands setStartoffset() and setEndoffset()
(Keep in mind that if you modify these attribute, they will always override the offSets in the gCal Trigger parent app!)
There are two smartapps:
- Gcal Search (latest version is 20170223.1)
- Gcal Search Trigger (latest version is 20170223.1)
and two DTHs:
- Gcal Event Sensor (latest version is 20180327.2)
- Gcal Presence Sensor (latest version is 20170306.1)
The GCal Search app works by creating Search Trigger sub-apps that in turn create a virtual device with either (i) Gcal Event Sensor: a virtual device with contact and switch capabilities or (ii) Gcal Presence Sensor: a virtual device presence and switch capabilities. This will allow you to select a single calendar per sub-app and also create a search string so that you can have it only look at events that match instead of all events. So you can have a first Trigger app that activates on a calendar event titled “Holiday” on a first calendar and a second Trigger app that activates on a calendar event titled “Son Here” on a second calendar.
I use this in combination with webCoRE and some Routines.
Examples: use to prevent Pistons/Routines from activating if the sensor/switch is open/close, present/not present, or on/off. And since the virtual devices also act as a switch/sensor, you can trigger other Pistons to happen as well. Also used for notifications (SMS, Push, AskAlexa).
Why not just use IFTTT?
- More customization, more accuracy (IFTTT gives you a 15-minute window), 1 less link in the chain that can break, and because its freaking cool.
Installation with GitHub Integration:
To get the latest updates for GCal-Search, the best way is to enable the GitHub Integration in your IDE, and then:
Go to My SmartApps in the IDE
Click on Settings
Click on Add New Repository
Owner=infofiend, Name=GCal-Search, Branch=master
Goto My Device Handlers in the IDE
Repeat steps 2, 3, and 4 for both of the DTHs
Donations always welcome…