Help setting up my first piston


#1

1) Give a description of the problem
I would like to set up two things to happen in Smarthings and I am unsure as to how to accomplish them, I have already downloaded CORE to my smartphone app but Can not seem to get past there.

First thing I want to have happen is:
I have a Smarthings button with temperature sensor and a smart outlet connected to a window fan. I would like to be able to push the button to turn on and off the fan regardless of the other programs that might be running. I would also like the fan to come on automatically every night between 9:45 pm and 7:45 am and turn on and off based on the temperature.
I did figure out how to create a piston that turns the outlet on and off with the button but thats about it.

Second thing I want to have happen is:
I have a sonos system and a door contact sensor. I would like to have the sonos system make a custom announcement when the door has been left open for more then 30 seconds and then repeat the announcement until the door is shut.

I am truly terrible with this type of thing and have already spent too long messing with settings that I dont fully understand. Any help would be very much appreciated.


#2

Just for clarification, is your new app called CoRE or webCoRE?
Both have the same programmer, but webCoRE is much more powerful, and is where the majority of updates are being focused on

If your answer is CoRE, I can relocate this thread to the right category so others who still use that app can help you easier.

If you are new to both, then I highly recommend dropping CoRE and simply diving in head first into webCoRE instead.


#3

I am new to both - I am happy to use webcore as it sounds to be more powerful


#4

WebCore successfully integrated


#5

As far as I know, webCoRE can do everything that CoRE can do, plus so much more…

The install is perhaps one of the trickiest I have ever seen, but the updates only take a few seconds (if you do the GitHub install method).

Here is a good step-by-step installation guide on the wiki


#6

Got that working - thanks - I am now trying to do a simple if a sensor stays open for 30 seconds I get a notification via sonos.


#7

Ok, I think I am starting to figure it out some: Here is my current piston.

Right now if I leave my senor open for 45 seconds I get a notification via sonos, which is exactly what I wanted.

what would I need to add to this code in order to continue getting notifications until the sensor is closed. Id like to have a notification every 60 seconds for 10 minutes tops.


#8

I believe I figure out how to to the continuous notifications using the while loop.

It would also be great if once the sensor is closed again I could have another message play that says the sensor is closed.


#9

This is one of the best things about webCoRE and SmartHome programming… Our ideas never stop, and our pistons can always grow. Keep up the good work!