# Schedule Event based on calendar entry?

**URL:** <https://community.smartthings.com/t/schedule-event-based-on-calendar-entry/148967>\
**Category:** SmartApps & Automations\
**Created:** [January 4, 2019, 6:20pm UTC](https://community.smartthings.com/t/schedule-event-based-on-calendar-entry/148967 "2019-01-04T18:20:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg\_Dufour](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/greg_dufour/32/141550_2.png) [@Greg\_Dufour](https://community.smartthings.com/u/Greg_Dufour)\
**Post date:** [January 4, 2019, 6:20pm UTC](https://community.smartthings.com/t/schedule-event-based-on-calendar-entry/148967/1 "2019-01-04T18:20:59Z")

</div>

Ok I’ve been trying to figure this out for a while. How can I execute a routing (like guest arriving) from a calendar event or schedule. For example if I have cleaning service coming to my house on February 6th at 9AM, how can I schedule the routing “Guest Arrival”, which turns on the water heater, water valve, unlocks the door and turns on heat. I would ove to put all these events (that are not predictable but random) on a calendar.

i’ve experimented with IFTTT but have not been able to find the right triggers plus I can’\t control a routine

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [January 4, 2019, 6:24pm UTC](https://community.smartthings.com/t/schedule-event-based-on-calendar-entry/148967/2 "2019-01-04T18:24:59Z")

</div>

If you’re just using IFTTT, you can use Google calendar for the “this” and a smartthings virtual switch for the “that” and then trigger smartthings events to happen because of the switch coming on:

> **[Google Calendar Integrations - Connect Your Apps with IFTTT](https://ifttt.com/google_calendar)**
>
> Integrate Google Calendar with over 900 of your favorite apps & devices to unlock powerful automations on IFTTT. Get started today!

> [@FAQ 2017: Have Alexa/Google Home/IFTTT run a routine, change a mode, or arm/disarm Smart Home Monitor (SmartThings Classic)](https://community.smartthings.com/t/faq-2017-have-alexa-google-home-ifttt-run-a-routine-change-a-mode-or-arm-disarm-smart-home-monitor-smartthings-classic/82122):
>
> Echo and Google home only recognize some device classes, specifically lights, switches, thermostats , and maybe locks. The official SmartThings/Alexa integration can run routines, but only routines that are limited to the device classes above. IFTTT has the same issue. The SmartThings service/channel can turn a single device on or off, but it doesn’t show routines or modes or smart home monitor status. So how can you use your voice assistant or IFTTT to change your mode, unlock a lock, or change smart home monitor armed status if the voice assistant/IFTTT won’t work with those kinds of devices? Fortunately, it’s easy. sunglasses All you need to do is create a virtual switch and then have that virtual switch coming on turn on whatever routine you want. The echo/GH/IFTTT won’t even …

But these days I think most people would use webcore:

> [@FAQ: What is WebCoRE? (And what was CoRE?)](https://community.smartthings.com/t/faq-what-is-webcore-and-what-was-core/59981):
>
> CoRE (now WebCore) is a very powerful community – created rules engine for SmartThings. It allows you to set up stacked conditionals like “If A then B but only while C and not if D.” Setting it up can be quite complex, but there are many community members who will be glad to help you. For example, here is a piston that one member created to notify him if the dog had already been fed twice that day and he picked up the dog bowl for a third time. He needed this because he has a large family and people didn’t always remember whose turn it was to feed the dog. dogblush [image] The original version of CoRE Has now been replaced by a new version, WebCoRE, which moves the data entry to a web interface. This allows for flexibility and an architecture that requires more memory than is av…

You might also find the following FAQ helpful:

> [@How to Get Started Creating Complex Rules in SmartThings](https://community.smartthings.com/t/how-to-get-started-creating-complex-rules-in-smartthings-2017-smartthings-classic/110612):
>
> (This is a wiki post: feel free to edit it or add to it as needed. Also, I can’t take any screenshots since I can’t use the app at this time due to its incompatibility with voiceover, so feel free to add screenshots where they would be helpful.) At one point, one of the biggest advantages of using the SmartThings platform was the wide variety of devices that it supported. However, by the end of 2017 several competing platforms had caught up in that regard. Where SmartThings still holds a significant advantage over some of the other low-cost home automation solutions is in the ability to really build really complex rules in a fairly simple manner. You won’t have to be a programmer, but you may need the help of other community members to get the logic constructed just right. Also, you …

---

<div class="post-metadata">

**Author:** ![viguera](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@viguera](https://community.smartthings.com/u/viguera)\
**Post date:** [January 4, 2019, 7:10pm UTC](https://community.smartthings.com/t/schedule-event-based-on-calendar-entry/148967/3 "2019-01-04T19:10:02Z")

</div>

I set up the GCal integration with webcore and it works great so far, even though it requires jumping through quite a few hoops.

But the end result is a virtual sensor that is on / off whenever a particular event occurs. I have a shared Google family calendar and I create “no school” all day events. The GCal SmartApp flips the sensor as “on” when the event starts and “off” when it ends.

I then have a piston that monitors that sensor to figure out if it’s a school day or not, and start the daily routines at a specific time (or later).

The good thing is that you can set up multiple searches based on event title, so this can be expanded to monitor multiple events that create multiple sensors for things like expecting guests or packages or whatever.

I still wouldn’t unlock my door using this method though. Maybe send me a push notification so I can remember to unlock the door for them… 🙂

---

<div class="post-metadata">

**Author:** ![MarkTr](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/marktr/32/76583_2.png) [@MarkTr](https://community.smartthings.com/u/MarkTr)\
**Post date:** [January 4, 2019, 7:46pm UTC](https://community.smartthings.com/t/schedule-event-based-on-calendar-entry/148967/4 "2019-01-04T19:46:34Z")

</div>

> [@Greg\_Dufour](#):
>
> Ok I’ve been trying to figure this out for a while. How can I execute a routing (like guest arriving) from a calendar event or schedule. For example if I have cleaning service coming to my house on February 6th at 9AM, how can I schedule the routing “Guest Arrival”, which turns on the water heater, water valve, unlocks the door and turns on heat. I would ove to put all these events (that are not predictable but random) on a calendar.

I use GCal Search for exactly this purpose. The cleaners are shown on there for a 6-hour window on their scheduled days; during that time I have a virtual presence sensor which becomes active and keeps the thermostat in “home” mode.

Separately, I use @ethayer’s Lock Manager to schedule the keypad code for the cleaners to only be active during that time; currently I don’t have a way to combine those two schedules but I’m hoping the next release will do incorporate a feature like that. In the meantime, the lock code is active one day each week, even though they come alternate weeks.

> [@\[UPDATED 3/27/18\] GCal Search](https://community.smartthings.com/t/updated-3-27-18-gcal-search/80042):
>
> GCal Search 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 …

> [@\[OBSOLETE\] Lock Manager](https://community.smartthings.com/t/release-lock-manager/63022):
>
> Lock Manager Incomplete List of features: Manage user codes on locks. Manage Keypads. Review and manage active lock codes. Set lock access based on schedules. Receive notifications when a user used their code. Run Hello Home phrases based on lock/unlock events. Manage Hello Home phrases based on keypad inputs. This app works using 3 child apps and 1 parent app. It is recommended that you install all 4 apps, however if you do not use keypad devices, it is not required to install the keypad child app. Note: If upgrading from any beta version, it is required to uninstall the app completely before installing. The architecture of this app has changed in a way that is incompatible with previous versions. How To Install User guide has old information. There is now only one app to insta…

---

<div class="post-metadata">

**Author:** ![Glen\_King](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@Glen\_King](https://community.smartthings.com/u/Glen_King)\
**Post date:** [January 4, 2019, 10:18pm UTC](https://community.smartthings.com/t/schedule-event-based-on-calendar-entry/148967/5 "2019-01-04T22:18:56Z")

</div>

[quote=“MarkTr, post:4, topic:148967, full:true”]

> [@Greg\_Dufour](#):
>
> Separately, I use @ethayer’s Lock Manager to schedule the keypad code for the cleaners to only be active during that time; currently I don’t have a way to combine those two schedules but I’m hoping the next release will do incorporate a feature like that. In the meantime, the lock code is active one day each week, even though they come alternate weeks.

I am using Webcore to do this. My cleaning service comes once every two weeks, and webcore handles it. I set up a Boolean week-alternator global variable that works well.

You don’t need to combine the two schedules. A well designed piston can accommodate this.
