Query on adding conditions to a piston


#1

*1) Give a description of the problem
I have a basic piston that reads a sensor for active motion and lux less than 30 and turns on 4 ST bulbs and if no motion is detected for 30 mins the lights turn off.

2) What is the expected behavior?
I have a TV socket with watt reading and want to add that the lights will not turn off after 30 minutes if the wattage is over 100 watts (TV is on) but once the TV is in Standby (20 watts) the 30 minute countdown happens.


#2

post a green snapshot please.


#3

Here is the piston.

On motion all devices turn on and are set to turn off after 60 minutes.

What I want to add is that if Outlet 1 is more than 100 watts do not start the countdown. This means that the TV is on. (the reason for this is sometimes watching a movie there is nt enough movement to trigger the sensor and I dont want to extend the time to 2 or 3 hours.)

And if outlet 1 goes below 100 watts (this means the TV is in standby) that the 60 minute countdown resumes.

One other thing Id like to add is that if dimmer 1 and dimmer 2 is on that the action to turn them on doesnt
run at all. The reason is that if watching a movie we turn the lights to 20% with alexa. But if the motion sensor detects movement it turns the lights to ON which is 100%.

So the piston would be check dimmer 1 and 2 and if on skip action to turn them on and if not on turn them on.

Thanks for the help.


#4

thanks. may be take a stab at making some of the changes you describe and post the modified version? from there we can figure it out together.