CoRE - Get peer assistance here with setting up Pistons

Just read that and was about to delete my post. Thanks Guys :slight_smile:

So I can get all my lights to turn on, but I can’t get them to turn off…

For example this turns on the light upon door opening or motion being active but it never turns off.

The 30 seconds is just a testing number, I had it set to longer but it doesn’t turn off regardless of length of time. I’m probably missing something simple with most of my pistons.

I don’t understand the difference between a simple and latching piston yet either. I used simple with this one because I just want the motion to keep resetting the time, but if the time expires turn out the light. Likewise, if the motion becomes active again, turn the light back on.

The door is just a trigger. Turn light on every time door opens regardless of motion.

I’m trying to set up my first piston. I’d like advice on which type to use. Basically, I’d like changes in Smart Home Monitor alarm mode to arm my alarm accordingly. So

If SHM changes to Armed/Stay, Then Set my alarm to Stay
if SHM changes to Armed/Away, Then set my alarm to Away
If SHM changes to Disarmed, Then disarm my alarm.

Thanks for the help!

Jason

You got the ā€œtriggerā€ meaning wrong. The way you have it, only the door will control the lights. Door opens, lights turn on. Note that motion with the door not changing states will not turn your lights on. Lights will only turn off when the door closes, IF there is no motion (which I think is pretty impossible to do) - use a condition for the door as well: door contact is open, rather than ā€œchanges toā€

In my case the lights don’t go off even if the door is closed.

Do I need 2 pistons? One to turn on the lights and one to turn them off?

Lights will go off when the door closes, IF the motion sensor is inactive, which I assume is impossible… again, you don’t need two pistons, you need ā€œdoor contact is openā€ instead of ā€œdoor contact changes to openā€.

Hi all! Quick one I hope. I’d like my thermostat to increase from its current setting by X degrees, as opposed to being set to a specific temperature, in response to a trigger. I can’t figure out which task to use to accomplish this. Any suggestions?

@ady624 can you help please?

Thanks!

Which function is that? I don’t see any Task called ā€œIncrease set pointā€ or similar.

Is your alarm panel actually integrated with SmartThings? That’s a whole separate project that involves installing hardware into your alarm panel. It works perfectly once set up. Details: https://community.smartthings.com/t/ad2smartthings/

You’re a good beta tester, you try out all the possibilities lol :wink:

Hi Folks

I recently purchased Harmony Elite remote with the hub and have integrated it with smartthings and Alexa. Unfortunately Alexa cannot control the volume of TV using the integration. Short of the Harmony developers updating the integration to have Alexa call pass each of the remote key, it is not going to happen. There are some threads on hacking the volume control. I was wondering if CoRE could come to help.

Basically what I am looking for is to be able to create a virtual dimmer and when I increase or decrease the dimmer setting trigger a CoRE piston to check the current Alexa mode and, somehow figure out whether it is using AMP or TV and then trigger a volume up or down activity and then switches back to the activity it was on.

Wondering is this something doable or if there is any other better option.

Thanks

Ok let’s try this instead.

I want the closet light to come on if either the door opens or if the closet motion sensor is active.

If the door is left open and there is no motion I want the light to turn off.

If the light goes off with the door open and there is motion I want the light to come back on.

I don’t want the light to go off if the door closes and there is motion (walk in close with door closed).

In RM I had 2 rules to make this work. I don’t mind having 2 Pistons if that’s what it takes with core.

Single latching piston:

IF
   Door changes to open
   OR
   Motion changes to active
THEN
   Using light...
      > Turn on

BUT IF
   Motion changes to inactive
THEN
   Using light...
      > Wait 30 seconds (optional)
      > Turn off

Some DTHs allow for step up/down. If not, a combination of save attribute to variable, set variable = variable + x, load attribute from variable should get you going. That attribute is coolingSetPoint

Thanks will check it out

Yes, I have the integration done. But it suddenly hit me that while I can arm the alarm and I can ā€œarmā€ smart home monitor, they don’t actually talk to each other. Ideally, I’d like to be able to arm SHM and have it arm the alarm and vice versa.

I’ve played a little bit now with the idea and this is what I’ve created:




It just seems that I should be able to make this a little more efficient.

Jason

If you setup your alarm using the AD2SmartThings integration then ā€˜it just works’. Simply turn on the syncing in the Alarm Handler smart app (make sure you have latest version).

I’m not using the AD2SmartThings project, exactly. I am using a Raspberry Pi instead of the Arduino. I’m using the AlarmDecoder smartapp (https://github.com/nutechsoftware/alarmdecoder-smartthings).

I’ll take a look at the AD2SmartThings app but I have a feeling it won’t work with this implementation.

Hi, what does the ā€œasSleepā€ and ā€œasHomeā€ tasks do on a Tstat?

Would really like help to fix my piston as my light blinds me at night.
I’ve set it up if bedroom light turns on at night, dim to 10%, which would be fine, but the dimmer FIRST fades up to 100% in 3 seconds, THEN dims down to 10%. Is there a piston so if the bedroom light turns on at night, it goes straight to 10% ?