I am using the PLTS plugin to control a bathroom dimmer. I currently have it so a motion sensor during the day will turn it on to 32% and at night to 12%. I thought the Bypass option not equalling those would make it so if somebody changed it brighter at the switch, it would not shut off, but it still drops it to 32% during the day if they move.
Short question is, how do I make it so if somebody changes the brightness level in the bathroom, that the timer will be disabled and not shut off or change the brightness on them?
Thank you in advance.
If you post your current PLTS Status report, we may be able to suggest how to achieve this.
input/trigger
MasterBathMotion armed is tripped = armedtripped
input/schedule
5-22 = Day
input/property
LoadLevelStatus = Load
condition
interval 1 = 5:00
reset state = off
switchmode = immediate toggle/delayed reset
Arm = Load == 0
Trigger = armedtripped
Restart = armedtripped
Action
on = turns lights to 32%
off = turns lights to off
The nighttime is exactly the same only instead of 32% it is 12% and the time is the opposite of day.
I also have a PLEG setup to arm when the light is at 0, 12 or 32 and disarm when it isn’t one of those three.
That doesn’t quite make sense. Could you post the actual Status report? Print it as a pdf and post that.
Do I understand that you have two separate PLTS devices? One for day and one for night? Is the only difference the dim level? You could probably do it in one PLTS by setting newLoadlevelStatus={(Day?32:12)}
I also have a PLEG setup to arm when the light is at 0, 12 or 32 and disarm when it isn't one of those three.
What is the reason for that?
I’m fairly new to PLEG and PLTS.
Yes, I have two different PLTS “devices” controlling this.
I know there are better ways to do this, but by disarming the motion sensor when the lights change, it won’t start the timer. The problem I have is stopping the timer when it doesn’t equal 0,12 or 32. If I could make this into one device better yet.
In fact I didn’t see the option for status until now.
Maybe it would be easier to say what I want to do and start from scratch
If the motion sensor is armed and tripped
during the day (between 5am and 10pm) to turn to 32
during the night to turn to 12
each for 5 minutes
and then shut off
I want to stop the timer if one of these conditions are met:
humidity sensor is over 30%
the light level does not equal 12 or 32
I want it to switch off if the light is off.
OK - Take a look at the attached PLTS configuration. I think it does most of what you want.
I am using the Delayed Toggle/Explicit Reset mode so that the timer may be stopped with the Reset condition. I am using the conditional expression: Day ? 32 : 12 in the Trigger action so that only a single PLTS is necessary.
I used a MultiSwitch to simulate the motion sensor for testing but it should work just as well with a real sensor.
I did not include the humidity logic. I’ll leave that for you to add. Hint: It needs to be OR’d with the whole of the existing expression in Reset.
Thanks, I will try this tonight. I do have a question with:
(Trigger; Level > 10) and not ((Level == 32) or (Level
== 12))
What is the significance of having the “Trigger;” as how would this change the effect of the programming vs having just (Level > 10)?
I am not much of a programmer, but am very interested in understanding everything I am doing.
Thank you again
This does not effect anything … but I tend to simplify (Using Demorgan’s Theorm) for reading purposes:
(Trigger; Level > 10) AND (Level != 32) AND (Level != 12)
Also, if this is a battery operated motion detector … you need to set your ON time to a small number. But this will run down the battery quicker.
If you have a battery powered motion sensor, with an on time of 300 second (I think this is the default for many) and there is a real motion say every 3 minutes, the detector will only send the first motion … And when motion finally stops … potentially hours later … it will send a NOT motion event.
With battery powered motion sensors, motion is considered to be continuing until a NOT motion is sent from the motion sensor, and will not send intervening motion events.
Because of that, this logic is best handled with PLEG where you have more flexibility.
[quote=“nickman2025, post:8, topic:179625”]Thanks, I will try this tonight. I do have a question with:
(Trigger; Level > 10) and not ((Level == 32) or (Level
== 12))
What is the significance of having the “Trigger;” as how would this change the effect of the programming vs having just (Level > 10)?
I am not much of a programmer, but am very interested in understanding everything I am doing.
Thank you again[/quote]
The term (Trigger; Level > 10) is a sequence expression. It will be true if Level changes more than ten seconds after Trigger was last true. Its purpose is to detect a manual change to the dimmer level. The dimmer level will be changed when Trigger fires as a result of the initial Motion trip. Any change that happens more than ten seconds after this must have been manual.
Thanks again for everything this has ran fairly smooth since being programmed this way. The only thing now that I have been using it that I would change is by adding a 10 second delay to the motion sensor after somebody turns the light off. Is there a way to add that delay?
That depends on whether your dimmer updates Status correctly when turned on and off. They all should but some don’t. If it does, add a Trigger LightOn for the light is turned on and then add this term to the Trigger Condition:
[b]and (!LightOn; Motion > 10)[/b]
Thanks for the reply after fighting with this and not getting anywhere, I decided to pull out the old Vera to see what was different. I went setting by setting and found that the Vera programmed my Aeon 4 in one different on the device options page. I went through and made all the setting the same and now it works. I have no idea why Vera would have done that differently, but it works great now. Thanks for the response.