SmartThings Community

[RELEASE CANDIDATE] CoRE (Community's own Rule Engine)


( I hate Mondays) #1

UPDATE DEC 19 2017:

If you are still using CoRE, please update to the latest version as soon as you can. Here’s what changed:

v0.3.16e.20171219 - RC - Replaced recovery safety nets using unschedule() with a much more optimized method that does not affect ST as much as unschedule() does

This is important as CoRE has been identified as a major choke point on a certain method that it uses (ST describes that as expensive in their documentation. As it turns out, it is. With ST’s help, CoRE is now able to recover from timeouts much faster and with a lot less resources than by using its own recovery safety net. You should also consider moving on to webCoRE instead, as CoRE is no longer actively maintained and only gets critical updates.

Thank you

Continuing in the BETA process of CoRE (milestone 1 topic here and milestone 2 topic here), we’ve now moved to RELEASE CANDIDATE. This is the last step before a full release and it’s going to focus on taking CoRE through the publishing process, making all necessary changes to make it compliant with SmartThings’s requirements. While necessary additions will occur here and there, adding features is NOT the main focus of this RC stage.

WARNING: As mentioned before, this SmartApp is in a BETA development stage and may be quirky. It may also change rapidly and drastically, involving a full reset of the app in order to upgrade.

It is not recommend to install this SmartApp in a “production” environment, but we encourage people to try it out.

Official wiki is here. It’s still a work in progress, but it’s a good starting point.

IMPORTANT: This topic addresses bugs and errors encountered while using CoRE. If you need general assistance with setting up a piston, please do so at CoRE - Get peer assistance here with setting up Pistons

IMPORTANT: When posting a possible bug/error - please post the version of your CoRE, a picture of your piston and any logs if available. When confirmed as a bug, a new issue should be created in github to ensure it gets tracked down and resolved. It is recommended that you always run the latest version of CoRE to ensure that the bug you may be experiencing hasn’t already been fixed.

The SmartApp can be installed via GitHub integration into your IDE or can be found here

To install the SmartApp using GitHub integration, go to your IDE, go to SmartApps, tap on Settings and Add new repository with ady624 / CoRE / master in the three fields. Then use the Update from Repo button. Make sure you either tick the Publish option while updating from the repository, or publish the app after each update.

NOTE: It is not required, nor necessary to donate to use this SmartApp. This is a free open source software and it is my way to pay my dues to those before me. But if you feel like it, you can donate here.

Thank you

Door Open Alert - does this exist?
Anyone having CoRe Pistons failing?
New user struggling with automating switch with presense
I need help setting up a anon multisensor v6 to turn on and off a dehumidifier
Rule Machine app installation availability
Sonos Party Switch
Error trying to view "My Device Handlers" in Web IDE
Is there any way to check if a smartthings outlet is on or off?
How to override motion?
Disarm SHM when Door Unlocks?
Rountines - One routine turns lights on and off?
Dim Hue Bulb when turned on at night
Christmas 2016 smart home products
Flash lights?
Routine Hours Filter
Presence sensor status not event based (on arrival)?
Getting started with Core (for Dummies)
Custom Door Chime App
Text when Mode change or routine run?
Event notification lamp
Another laundry monitor question 2Gig / Alexa Update Possibility?
Brighten light with motion then dim after motion stops
[DEPRECATED] - Universal ZigBee Lock DTH with Lock Codes
Colour Temperature setting in routines
Notify When Mode Change? Or Routine is made?
Just a particular thermostat based on the presence of a particular user?
Additional/missing automation options
Multiple switch on/off with smartthings & ifttt
Separate Dimmer Levels for Different Devices in Automation Routine
Modify Ramp Rate on GE (Jasco) Dimmers
Switch turn off every hour for 1 minute?
Smart app to set maximum or minimum level on lights
How to turn on a switch based on humidity and temperature
Help setting up routines
Change bulb dimmer levels throughout the day?
[OBSOLETE: [BETA MILESTONE 2] CoRE (Community's own Rules Engine)
Activate siren if switch/light left on for X minutes
Can SmartThings make a color loop with Philips Hue bulbs?
Can I have a routine trigger another routine?
Beep Smart Things Arrival Sensor from Amazon Echo?
Calling a URL when Switch is Turned on?
Connect door sensor to socket?
[RELEASE] HomeSeer Dimmer and Switch (HS-WD100+ / HS-WS100+) Device Handlers
Smoke Detector/Switch
Hello, Home HomeKit (and Siri!) control via homebridge
2 doors open (not 1) triggers immediate Echo/Google voice warning?
New user struggling with automating switch with presense
How to Use HVAC Thermostat FAN MODE as Trigger in Automations?
Is there a neutral door status so a routine open/close option will always fire?
Use smarthing to turn on camera recording through http request
Lightify Gardenspot sale $27
Need help with a Motion Senson SmartApp
[RELEASE] Aeon Labs Multifunction Siren
Question about routine triggers
[Release] Updated Open Source Ecobee Device Type and SmartApps
Lock door if is closed and mode is not party?
SmartApp bounty? Can/will you write code for others?
Change Color With Time (SmartApp Request)
Schlage FE599--some questions
[RELEASE] Lock Manager
Notify me when switch on for X minutes?
Multi Water Valves and Multi Moisture sensor
Samsung Smart Outlet - know when an appliance is plugged in
Set Limit on Thermostat for Vacation Rental Property
Armed Away
Entry delay for Intrusion alert
Improved UI for Aeon Minimote
New to home automation, recommendations on devices/approach for monitoring vacation property
Heating Control for Newbie
Voice Notifications (Simple Integration)
Robust Software/App
Recurring Schedule
Newbie questions... any help appreciated for conditional programming
[RELEASE] Fibaro Dimmer 2 (FGD-212) - Advanced DTH (V2)
Problem with False Alarms
FAQ Routine, routines: How do you use them? (SmartThings Classic)
Whole house fan smart app help please
GoControl/Linear GD00Z-4 Z-Wave Garage Door Opener--close at sunset?
[SUSPENDED] Blink Camera Device Handler with Motion Sensor, Live Video Streaming, Integration with SmartThings/SHM, Temperature, Signals and Push Notifications
[RELEASE] Ultimate Mode Based Thermostat - Control Multiple Thermostats Temperature / Remote Temperature Sensors when Changing Modes
How do I schedule two sets of lights independently?
Run Routine when Dismissing SHM Alarm?
Home Activity Simulator (Make it look like i'm home App)
[REMOVED] Nest Manager 4.0
[DEPRECATED] - Hive (Connect) V2.6 (British Gas Hive)
[Release] Fibaro Wall Plug (Old version, not zwave+)
Osram/Sylvania Lightify (it works)
[OBSOLETE: [BETA MILESTONE 2] CoRE (Community's own Rules Engine)
Nexia One Touch
Power Cycle Connected Device
[RELEASE] Enhanced ZigBee Keypad Lock - Centralite Keypad, Lowe IRIS Keypad, UEI Keypad and Xfinity Keypad Device Handler
How to turn off GE Z Wave Led Indicator after certain hour
Notify me when
Smartthings Rules, Triggers, Conditions
Smartthing Dashboard
IDE showing CoRE but not smartapps
Flic button
Bulbs not turning off
For hire, need a mode changing app
Changing mode manually by virtual device
New to SmartThings, Routine question about Bose
Core Piston not working after reinstall
Virtual Thermostat explanation
Next project, Geo arm/disarm and light?
Lights on 20% at dusk, 100% doorbell for 5 mins, back to 20% off midnight
Looking for an app to change bulb color between red and green every few seconds
Where do i start?
Is it possible to delay garage overhead door sensor and garage/house man door from setting off alarm?
Create pulsating 'sleep mode' outdoor lighting (like the Macbook light)?

damn does that mean no more feature requests??? RC’s are usually feature complete :grin:

keep up the good work Ady!!

( I hate Mondays) #3

We’ll always add features, as needed. But I think we’re pretty done with the features at this point, anything pending?


just kidding mate - just sent another crate your way for all the effort!!

need to get back to testing the dim to on and off procedures but find me some time to doing so :slight_smile:


For Action Restrictions, isn’t the “Cancel execution on condition state change” option pending? :wink:

(Bobby) #7

I remember a guy who popped his head out of nowhere on the Rule Machine thread and he was bragging that he can do better. Like many, I really underestimated his capabilities:

Adrian, you are a scholar, you did it! Thank you for all your work and countless hours you put in designing this! You did an awesome job.


( I hate Mondays) #8

I thought that was done, but there was a bug in v0.2.14d or so…?


The fix (v0.2.150) was for “Only execute on condition state change” :slight_smile:

( I hate Mondays) #10

THANK YOU - cheers :smiley:


You are welcome mate buy another device and create a good device handler for it or just drink it :slight_smile:

(Marc) #12

Pushbullet integration?


@ady624 are we able to detect which unlock code was used on a smart lock?

(Bobby) #14

Yeah @ady624 now that the basic things have settled, can you add this to your list. The stock DH gives out which code was used, not the numbers, but at least the code # would be super helpful to use in CoRE (maybe as variable?)

(El Zurdo) #15

This is great. Setting up some pistons.

Quick question: after creating a couple of pistons and leaving the CoRE interface, I can’t get back to the “main” CoRE screen (where it shows you your pistons list and you can choose to make more). Instead, selecting CoRE from the My SmartApps menu takes me straight to the details of one of my pistons. Going “back” from the piston skips the main screen and goes all the way out to My SmartApps menu again. Is there a way to get to the main screen that I’m not seeing? Or is this a bug?


( I hate Mondays) #16

Access CoRE fromthe Automations tab, not the Marketplace…

( I hate Mondays) #17

Is that code present anywhere in the event? Data parameter?

(El Zurdo) #18

Duh. Perfect. Thanks!

(El Zurdo) #19

I am currently running “User Lock Manager” to set/enable lock codes. From those, I can trigger virtual switches/routines (unlock, disarm, panic mode, etc).

The User Lock Manager code for the SmartApp and Handler is available in github, and probably shows where the codes are coming from and how to manage them (in the event, state, or otherwise).


yup it should be “usedCode” and the position of the code (1st code, 2nd code etc…) is what it should be. Is this what you are looking for? here is an example from the logs

"zw device: 09, command: XXX, payload:XXXXX " parsed to ['name':'lock', 'value':'unlocked', 'descriptionText':Front Door Lock was unlocked with code 1, 'data':['usedCode':1, 'type':'keypad'], 'isStateChange':true, 'displayed':true, 'linkText':'Front Door Lock']

( I hate Mondays) #21

Yep,just tested on my Kwikset, data: { “usedCode” : 1 }

Will implement it.