I hate glare on my TV, especially when watching a movie, or playing video games on the PS4.
I had a rule working, but it quickly stopped.
The hardware in question.
#1. Zooz Zen22 Zwave Plus dimmer. Living Room Light.
#2. Jasco 45853 smart switch. Living Room TV.
#3. Iris V2 motion sensor. Living Room Motion.
The only reason for the smart switch is to monitor power.
The logic I am trying for right or wrong is as follows.
#1. Power from Living Room TV >1 watts. The TV draws 100 when up and running. At idle it draws 1.5 watts.
End of trigger event.
IF Power on Living Room TV <50 AND Living Room Motion active THEN set dimmer on Living Room Light for mode:
IF Power on Living Room TV >=50 AND Living Room Motion active THEN set switch on Linving room to off.
I am not sure what I am doing wrong with this. The light with the TV off is simply not coming on.
What could I be doing wrong?
Change your trigger. Make it something higher - like 20-30W. I do something similar with one of my TVs, and I set the trigger to a higher threshold (higher than the highest idle draw).
**TRIGGER:** Living Room Motion becomes active
IF Power on TV > 50 THEN
Set Living Room Switch off
IF MODE = Day THEN
Set Living Room Switch 50%
ELSE-IF MODE = Evening THEN
Set Living Room Switch 90%
ELSE-IF MODE = Night THEN
Set Living Room Switch 30%
Works great, except.... How to get the lights to go off after X min of no activity?
Slip in a wait for condition motion inactive.
Either at the end or in each else depending on the wait time per mode
I've been fighting with the editor to figure out how to get the cancel action part done, but it's done. Trying this now. WIll update y'all once I know if it works or if I totally messed it up.
THIS POST IS NOT A SOLUTION!
Please see post #15 for the solution.
can you post the screenshot of your rule how you have it now?
just want to point out in the second post, the trigger was updated to "motion sensor changed"
Not too familiar with the whole Rule Machine syntax thing. But I have 5 IF statements, and only 3 END-IF statements. I am wondering if that has anything to do with that...
Never mind the dimmer levels. I was playing around with intensities.
I am thinking, perhaps incorrectly that the rule should look something like this...
Living room motion "changed"
IF Living room motion active THEN
Cancel Timed Actions This Rule
IF Power level of Living Room TV is > 50 THEN
Off living room light
IF (Mode is Day) THEN
Dim Living Room Light 95 --> fade 10
If (Mode is Evening) THEN
Dim Living Room Light 70 --> fade 10
If (Mode is Night) THEN
Dim Living Room Light 30 --> fade 5
Off living room light --> delayed 0 02 00 (cancellable)
yea, you're missing a few END-IF statements
instead of using ELSE then IF, use ELSE-IF (conditions) THEN
make those changes then post a new pic to confirm the formatting
you could do it this way, but you could also just have
IF (Mode is Day) THEN
IF (Mode is Evening) THEN
since it's highly unlikely you'll be changing modes during the motion, only one of these should trigger. it accomplishes the same thing as the IF/ELSE-IF
Ultimately the rule breaks down into these types of sections:
- If motion is active
a) if TV is on -> turn off lights
b) if TV is off
i) if mode is day -> set to 70
ii) if mode is evening -> set to 30
- If motion is not active -> turn off lights
So I discovered, and it may be due to some of the Rule Machine updates done recently I don't know, but there appears to now be a modes to dimmer control in rule machine that just made my life SO MUCH EASIER!
It think this might just be it, but I could be wrong...
THIS post is the solution to my issue. If you are following along and looking for a solution to a similar problem please review this post and the several above that gave me the insight of a better logic flow....
Just wanted to let everyone know...