Should this rule work?

I’ve set up this rule, but it’s not firing. Would appreciate a second set of eyes on it. Thanks!

Which part isn’t working as expected and what do the Rule Logs say?

Hi Josh… Nothing works and there’s nothing in the logs.

Have you verified the the exact device referenced in the rule (Bruce’s iPhone) had the presence attribute report an updated present status after the rule was created?

I wanted to do that, but I can’t figure out where I can see the location status of that device.

I tested in the Smartthings app to confirm presence was updating for the device. I created a virtual switch for when the device is present. I then created a routine that turned on a couple of lights when that virtual switch was turned on. That worked as expected, however I can’t successfully set the routine to only run before sunset. Some sort of bug in Smartthings where that setting won’t stick and reverts to after.

I gave up on trying to use a Smartthings routine for this. Right now, I have two rules for myself and wife to turn on certain lights before and after sunset. I’m using Pushover for notification and noticed that I receive a notification for both rules when it runs. Any idea why this may be happening? Thanks

Without seeing the rule(s) or the associated logs, it’s hard to say.

:ring_buoy: Effective Ways to Seek Help and Troubleshoot

Thanks Josh, here’s the rule.

I don’t follow. I thought your message implied there were multiple rules and you were receiving multiple notifications.

I would recommend taking a closer look at how those rules are configured and check the Rule Logs to better understand what’s happening with the rules that are sending notifications.

I have another rule just like this one except it’s for my wife. I’ve disabled all rules except this one. When I arrive home I get two notifications. One for this rule and the other for a disabled rule when I arrive after sunset.

Without more details, I’m unable to help further. I would encourage you to read through the Effective Ways to Seek Help and Troubleshoot link I shared previously as it has important guidelines around getting help.

It looks like the last ‘double’ notification was on 8/28 at 11:33:27 AM CDT from the rules:

  • Bruce Arriving Home Lights After Sunset (kOOQiQiE7suSkdSGXFBR)
  • Bruce Arriving Home Lights Before Sunset (ViSDg0g2OFbmILpEPea0)

And the ‘Arriving Home Lights After Sunset’ rule appears to have been updated ~15 seconds after that at 11:33:42 AM CDT and there haven’t been any ‘double’ notifications since then.

Also note that in your rule design, you are always sending the pushover notification whenever the presence changes to ‘present’. Based on the text of the message in your screenshot, I suspect you probably want it to be the first action inside the THEN path of the condition so it’s only sent when it’s actually before (or after) sunset.

You would need to delete the existing Pushover notification and recreate it inside the THEN path.

1 Like

Josh, I appreciate your help with this. I’ll working on updating these rules later this evening.