Turn lights off when wife and I leave, or if a guest leaves and we aren't home


#1

1) Give a description of the problem
(My piston executed even though my wife’s phones present and turned off the lights)

2) What is the expected behavior?
(The expected behavior is that if front door sensor or garage door sensor changes to closed then wait 10 minutes and see if either of us are home. If we aren’t home, I want the lights to turn off.)

3) What is happening/not happening?
(I can’t seem to figure out why my lights turned off when my wife was home and ST said she was present and never left.)

4) Post a Green Snapshot of the pistonimage
(

)

**5) Attach any logs
( 11/28/2018, 12:07:01 PM +529ms
+1ms ╔Received event [Home].time = 1543428422684 with a delay of -1156ms
+286ms ║RunTime Analysis CS > 88ms > PS > 150ms > PE > 48ms > CE
+289ms ║Runtime (38765 bytes) successfully initialized in 150ms (v0.3.104.20180323) (287ms)
+291ms ║╔Execution stage started
+341ms ║║Comparison (enum) not present is (string) not present = true (3ms)
+344ms ║║Condition #6 evaluated true (17ms)
+346ms ║║Condition group #5 evaluated true (state did not change) (20ms)
+351ms ║║Cancelling statement #7’s schedules…
+372ms ║║Skipped execution of physical command [Entertainment stand].off([]) because it would make no change to the device. (4ms)
+374ms ║║Executed [Entertainment stand].off (8ms)
+402ms ║║Executed physical command [Entertainment Stand Outlet].off() (23ms)
+405ms ║║Executed [Entertainment Stand Outlet].off (27ms)
+424ms ║║Executed physical command [Front door light].off() (13ms)
+425ms ║║Executed [Front door light].off (17ms)
+442ms ║║Executed physical command [Front door light].off() (13ms)
+444ms ║║Executed [Front door light].off (16ms)
+467ms ║║Executed physical command [Garage door light].off() (20ms)
+470ms ║║Executed [Garage door light].off (23ms)
+486ms ║║Executed physical command [Garage door light].off() (12ms)
+488ms ║║Executed [Garage door light].off (15ms)
+494ms ║║Skipped execution of physical command [Hue color lamp 1].off([]) because it would make no change to the device. (3ms)
+495ms ║║Executed [Hue color lamp 1].off (5ms)
+503ms ║║Skipped execution of physical command [Hue go 1].off([]) because it would make no change to the device. (3ms)
+504ms ║║Executed [Hue go 1].off (7ms)
+512ms ║║Skipped execution of physical command [Hue go 2].off([]) because it would make no change to the device. (3ms)
+514ms ║║Executed [Hue go 2].off (7ms)
+530ms ║║Executed physical command [Kitchen lights].off() (12ms)
+531ms ║║Executed [Kitchen lights].off (15ms)
+547ms ║║Executed physical command [Kitchen lights].off() (11ms)
+549ms ║║Executed [Kitchen lights].off (16ms)
+556ms ║║Skipped execution of physical command [Living room floor lamp].off([]) because it would make no change to the device. (4ms)
+558ms ║║Executed [Living room floor lamp].off (6ms)
+591ms ║║Executed physical command [tree outlet].off() (29ms)
+593ms ║║Executed [tree outlet].off (33ms)
+600ms ║╚Execution stage complete. (309ms)
+603ms ╚Event processed successfully (602ms)
11/28/2018, 11:57:02 AM +526ms
+1ms ╔Received event [garage door].contact = closed with a delay of 1240ms
+121ms ║RunTime Analysis CS > 27ms > PS > 57ms > PE > 38ms > CE
+124ms ║Runtime (38768 bytes) successfully initialized in 57ms (v0.3.104.20180323) (122ms)
+125ms ║╔Execution stage started
+141ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+144ms ║║Cancelling condition #2’s schedules…
+145ms ║║Condition #2 evaluated true (14ms)
+146ms ║║Cancelling condition #1’s schedules…
+148ms ║║Condition group #1 evaluated true (state changed) (16ms)
+151ms ║║Cancelling statement #3’s schedules…
+155ms ║║Executed virtual command wait (1ms)
+157ms ║║Requesting a wake up for Wed, Nov 28 2018 @ 12:07:02 PM CST (in 600.0s)
+163ms ║╚Execution stage complete. (37ms)
+164ms ║Setting up scheduled job for Wed, Nov 28 2018 @ 12:07:02 PM CST (in 599.994s)
+208ms ╚Event processed successfully (208ms))


#2

Was Karli home at the time?
Because when you say ANY OF presense is NOT PRESENT
the system will fire up if either one is not present.

if so,
Try ALL OF instead of ANY OF,
in this case the system will wait until both are out.


#3

Thank you for the reply, greatly appreciated.

What happen was she was home and the lights still turned off. If I look at the activity of “Karli’s iPhones’s” it shows that she never left. Karli got home at 11:52am and at 12:07pm this piston kicked off and shut all the lights off.


#4

Looking at my code again and re-reading what you said I think you’re right. The reason it ran was because ST looked and saw that I was gone, and the rule says “if either of us are gone, shut off the lights.” Like you said, I need to change it to say “if both are gone, turn off the lights.”


#5

I am glad I could help.

My experience with presence sensors (or phones) wasn’t that great. So I stopped depending on those.
Several motion sensors doing that job for me now:)


#6

How does ST then determine if its you coming home/leaving and not a guest? Unless you never let anyone in your place when you aren’t home.


#7

I don’t think ST can do that.
But in my house,
RING Door bell
SCHLAGE door lock
and several POE Cameras
take care of that.

Some one comes around the house, motion sensors are up and running.
I can look up through ring and/or cameras (they are all connected to Action Tiles)
They can use the door lock passcode they have, I can assign a new one on the spot OR
I can unlock the door from my phone.

Yes phone presence is a better way of doing that but where I am (a tiny little island in the middle of Pasific LOL) receptions are not that good. So probably that is why it did not worked with 100% accuracy.


#8

Makes 100% since.

Thanks again!


#9

You’re welcome
any time…
have fun with the smart home.