[OBSOLETE: [BETA MILESTONE 2] CoRE (Community's own Rules Engine)

In the action tab, choose repeat the action every 1 min, but instead of keep sending notification, you can consider do something else, like flashing a lights, that will be obvious.

I would stay away from repeat whole action. That tends to give you a runaway loop that you can’t stop.

I recommend that you choose β€œfollow up with piston” after one minute. That will loop until the piston is no longer true and it will turn itself off.

2 Likes

Right, it repeats and I can’t figure out how to stop it

I figured it out the last time I used that function… delete piston…

I have something very similar set up. Try this, change times to 1 minute or whatever time you need.

1 Like

Pausing doesn’t work?

@ady624, I have this piston that turns on the Living Room Fan when the AC is actively cooling. I set it to execute only on piston change but the log shows it still trying to execute the tasks even though the piston state has not changed. It does the same for when the AC is off.

Is the motion affecting the state of the piston? I added those to make sure the piston gets evaluated

Edit: Hmm, scratch that. I though the restriction reads β€œOnly execute on piston state change” when in fact it is β€œOnly execute on condition state change” which is why it is executing. Back to drawing board :smiley:

Here’s part of the log.

37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace ╔═══ Piston done in 837ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace ║╔══ Task processing took 220ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Removing any existing ST safety nets 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: info β•‘β•‘β–‘β–‘ Executing virtual command sendNotification (7ms) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: info β•‘β•‘β–‘β–‘ Preventing execution of command [Living Room Fan].on() because current value is the same 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Installing ST safety net 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Rescheduling time triggers 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace β•‘β•šβ•β• Processing tasks (v0.2.14f.20160916) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace ║╔══ Event processing took 416ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž39β€Ž β€ŽPM: trace β•‘β•šβ•β• Processing event motion for device Living Room Motion with id 7f630652-d1dc-493d-a49a-23166a470c74, value inactive, generated on Sun Sep 18 23:02:38 UTC 2016, about 224ms ago (v0.2.14f.20160916) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž38β€Ž β€ŽPM: trace β•šβ•β•β• Received a dual block device event 

37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: trace ╔═══ Piston done in 854ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: trace ║╔══ Task processing took 257ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Removing any existing ST safety nets 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: info β•‘β•‘β–‘β–‘ Executing virtual command sendNotification (7ms) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: info β•‘β•‘β–‘β–‘ Preventing execution of command [Living Room Fan].on() because current value is the same 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Installing ST safety net 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Rescheduling time triggers 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: trace β•‘β•šβ•β• Processing tasks (v0.2.14f.20160916) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž19β€Ž β€ŽPM: trace ║╔══ Event processing took 402ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž18β€Ž β€ŽPM: trace β•‘β•šβ•β• Processing event motion for device Living Room Motion with id 7f630652-d1dc-493d-a49a-23166a470c74, value active, generated on Sun Sep 18 23:02:18 UTC 2016, about 196ms ago (v0.2.14f.20160916) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž02β€Ž:β€Ž18β€Ž β€ŽPM: trace β•šβ•β•β• Received a dual block device event 

37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž38β€Ž β€ŽPM: trace ╔═══ Piston done in 2344ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž38β€Ž β€ŽPM: trace ║╔══ Task processing took 1724ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž38β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Removing any existing ST safety nets 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž38β€Ž β€ŽPM: info β•‘β•‘β–‘β–‘ Executing virtual command sendNotification (463ms) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž38β€Ž β€ŽPM: info β•‘β•‘β–‘β–‘ Executing command: [Living Room Fan].on() (1068ms) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž36β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Installing ST safety net 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž36β€Ž β€ŽPM: trace β•‘β•‘β–‘β–‘ Rescheduling time triggers 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž36β€Ž β€ŽPM: trace β•‘β•šβ•β• Processing tasks (v0.2.14f.20160916) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž36β€Ž β€ŽPM: trace ║╔══ Event processing took 423ms 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž36β€Ž β€ŽPM: info β•‘β•‘β–‘β–‘ ♦ Latching Piston changed state to true ♦ 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž36β€Ž β€ŽPM: trace β•‘β•šβ•β• Processing event motion for device Oenzbee with id 2623468b-456a-4f51-9a35-781d8399daa9, value inactive, generated on Sun Sep 18 23:01:36 UTC 2016, about 210ms ago (v0.2.14f.20160916) 
37be0ac7-ca29-42bf-a74a-2812fe4cbd34  β€Ž4β€Ž:β€Ž01β€Ž:β€Ž36β€Ž β€ŽPM: trace β•šβ•β•β• Received a dual block device event

I find this very elegant.Thank you very much.

2 Likes

@ady624

I love the IFTTT integration and it looks like ST can allow us to create arbitrary http requests, etc… if that is the case… any chance we can get such ability within CoRE?

My use case is pretty specific and can fill you in on details, but I think something like this can provide utility for those that can’t / won’t program their own app to control an arbitrary device using CoRe actions…

Perhaps something along the lines of what the IFTTT Maker channel can do for output:
URL
Method
Content Type
Body

Pretty please.

Admittedly I can do this today by sending something to IFTTT then having it send something back per my spec… but that has two issues for me I can forsee. 1) Latency, 2) This comes from the IFTTT Cloud, ideally if I could originate such output from the hub, that would be better/less complex…

Okay, good chat.

Have you checked out the Make HTTP request task? :wink:

are you starting a new thread for the CoRE - RC?

I have already :wink:

oh yeah… I posted in that one… told you… blond day…

Nice! does this request originate from the hub or the cloud?

Cloud. May implement an automatic system that uses the hub for local IPs…

Would be very useful.

:wink:

I’m having a weird issue where if I choose the Condition Capability type of Routine, all I get is the option, β€œComparison * executed” and no option to choose which Routine I want to use. It just doesn’t populate for some reason. Anyone else seen this happen? It defaults to β€œRoutine β€˜null’ was executed” in the Overview.

Is there any way for me to get around this by manually specifying which Routine I want to use by changing wherever it’s storing β€˜null’?

Re-select the comparison β€œexecuted” and the Value field will show up. Issue has already been fixed and will be rolled out in the next release. Thanks

1 Like

Trying that, I get an β€œError refreshing page” error and I can’t turn the comparison back on. It’s not a huge deal, as everything else seems to be working for me. I can wait for the next release.

Keep up the great work! I’m really excited about this project.

I have installed the firefox addon to access in Firefox. How do I open the CoRE dashboard in Firefox on my computer?