Newbie - Simple Lights on Piston not working at all


#1

1) Give a description of the problem
Designed a simple LIGHTS ON with motion, turn off after 4 min but it doesn’t work at all

2) What is the expected behavior?
In testing, I wanted to see the lights turn on when I entered the room. I use IRIS Motion Sensors which blink green when it sees motion and it’s blinking. I can control the lights with the HUE App or the ST app so it appears the components are working.

3) What is happening/not happening?
Doesn’t appear anything is happening at all

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
Shoot, I see the logs but I have no idea what I’m looking at to capture the events of that room.


#2

I am having similar issues, my lights turn on and adjust to where I set in the initial IF statement. but turning off does not work at all after trying a few different configurations.


#3

Suggestions:

  • Set the Piston to Disable Automatic Piston State (done by clicking on your title of the piston)
  • Your WITH statement for the wait I would change the settings of the WITH to Never Cancel Tasks
  • Remove your Only When statement as you want this to trigger when motion happens. I use Time as my second IF statement after I detect motion.

IF Motion Then
If time is between 1 & 2 then
All my stuff


#4

I just did another test. First I cleared the logs on the Piston Page and after the test, I didn’t see any log entries. However, it does appear that “something” happened based upon the Quick Facts2018-02-07_7-33-412018-02-07_7-34-04.


#5

I guess I didnt give it enough time. Does this tell us anything2018-02-07_7-38-59?

Also Prayer, I couldn’t figure out how to Disable Auto Piston state. :frowning:


#6

Here is a very simple piston using lux an motion to trigger it but the principle is the same for what you are trying to achieve.
Just import and amend accordingly if you wish.


#7

Thank you - I’ll give that and then maybe build on it for what I need. Thx.


#8

Maybe Pistons aren’t for me. This should be the most basic piston in the world and its not working.


#9

Let’s back up… I don’t think there’s anything wrong with the piston…but are you 100% certain that the motion sensor works?

From the logs that you’ve posted there are no events from when the motion sensor changes to active.

Does it show in the ST app that it is detecting motion? Does it show int he ST IDE that there are motion events?

Also, what stopped the piston in the logs on post 5? If the piston is not running (paused) then it won’t detect any motion events.

image


#10

You can’t nest the “inactive” part inside the “active” part. Move it out to it’s own IF.

Also, you might run into issues if you’re using a Trigger like that and “All of”. You’d have to look at the logs to see whether or not it evaluates properly. There’s no way for both of them to go inactive in the exact same millisecond. Not positive on that one though. But where you have the IF block is never going to work.


#11

In the category of “Smack my big dam head”…

I must have accidentally pressed this right after installation. The lights turn on so now I’ll wait 4 min and see if they turned off. Sorry everyone.


#12

How do i seperate that IF from the rest? I think i see what you mean, that the second if is in the same sequence. How do I push the second if statement to the left as it’s own entity? Sorry about the newbie questions haha. I feel like it’s gettig close.


#13

Why not do it as I have shown in post 6 above?
It’s very simple and everything is contained in a single IF.


#14

image

Enable moving and then grab the little hook on the side and move it out back to the root.

image