You can also try creating a DO piston. You can call it from other piston or create a Tap button to execute it.
What is the difference between Speak text and resume or Speak text and restore?
I am in UK and use centigrade for my temperature settings.
I have just created a piston to turn my heating on/off during certain times of the day if I am home and at various temperatures depending on time.
Unfortunately I can only input whole numbers.
e.g. I can put in 22 but not 22.5.
Any ideas if this can be done somehow?
Doesn’t have to be this way but maybe setting a variable. I have had a rummage but am unsure how to do it.
@ady624 I appreciate this is a minor thing, but would it be possible for you to change your code to allow an input of a point in a value.
i.e. 22.1 through to 22.9 instead of whole numbers. i.e. 22, 23, 24 etc.
Question about motion sensors and conditions vs. triggers…
What’s the difference between IS active/inactive and CHANGES TO active/inactive? Are they interchangeable?
Ok, I’m taking a stab at it. IS is a condition (empty circle) and Changes To is a trigger (filled circle). Someone correct me if that is wrong 
Correct. A trigger only fires when something changes. A condition can be used to check a device at any piston evaluation. Very important distinction to understand.
“If garage door is closed, send text”, will send a text whenever the piston is evaluated. The door IS closed, every time it evaluates. Whereas “If garage door changes to closed” will only send a text when the door actually closes. The door only did this WHEN it closed, it’s not constantly doing it.
Yes, that is correct.
But, I am wondering how triggers and conditions differ using a motion sensor to trigger lights on and all situations. Does it matter if I say
motion sensor is active/inactive
or
motion sensor changes to active/inactive
to turn on/off a light?
I think it might depend on how you use it.
e.g. I use a motion sensor to turn on lights so I use:-
If Motion Sensor IS active,
Turn on light. (The piston is true).
Wait for false state. (Motion sensor is inactive).
Wait 1 minute.
Turn off.
Can attach it if you wish.
Motion sensor is active means you could be already there moving around.
Motion sensor changes to active means there was no motion and now all of the sudden somebody could be moving around in your house.
Just my thinking.
It really depends on the situation… I use a combo of both.
Hey guys. I’ve been trying to figure out the best way to program this to no avail. Here’s what I’m trying to do. I have a ceiling fan in my bedroom, and a motion sensor at my feet to trigger stuff. I have a newborn, so when I get up in the middle of the night I want the fan to turn off for 5 mins while I get the diaper changed and get her situated, and then I want it to come back on. Programming this is easy in smart lighting but the problem with that is that if the fan was already off (ie we didn’t want it on that night) motion will trigger the 5 min timer and then turn the fan back on. So I figured I’d try a core piston to figure that out. Here’s my current Piston:
Type: Then-If
If: Ceiling fan switch is on
and
bedroom motion is active
Then
Turn ceiling fan off (this works fine)
Then if…
ceiling fan switch is off
then
wait 5 mins
turn ceiling fan on
The current problem is that the fan isn’t turning back on. I’m guessing my boolean is off but I’m not sure where. Maybe it is not the correct piston? Any help is appreciated. Thanks.
I would use a simple piston…
IF
The time is between X & Y.
&
The fan is on
&
Motion is active
THEN
> Turn off fan
Wait 5 minutes
> turn fan on
You could simplify your second piston to a basic/simple one by doing the following.

I have to play with ‘wait for false state’. I don’t remember ever using it any piston.
Yeah… I’m thinking it would be used in place of cancel on piston state change. You could use it to trigger more actions.
Kind of a if - then scenario
Ditto @eibyer and @bamarayne ; I’ve not used false state. It does the same as cancel on piston state change? What else could false state be used for, @bobbles?
@imacellist how about a basic piston? If all you want to do it turn it off, if it is on if motion is detected, then turn on after 5 minutes. Only problem is you are away more than 5 minutes, it turns back on, you come back and set off motion again and turn it off for 5 more minutes.
Type: Basic
If: Ceiling fan switch is on
and
bedroom motion is (or changes to) active
Then
Turn ceiling fan off
wait 5 mins
turn ceiling fan on
Perfect. Looks like I was just overthinking it. Thanks
On the surface CoRE looks insanely complex. And that’s because it is.
But in that complexity comes the beauty of simplicity.
When I start a piston I build it the way it comes to mind first. Then I rebuild it over and over until it is at the most basic form. Almost every time I’ve been able to do more with less by following this idea.


