Duplicate notifications (SmartThings)

New to SharpTools – have setup a few test rules and they appear to be triggering twice…It’s almost as if SharpTools is seeing the event twice simultaneously and, hence, sending two notifications.

Has anyone else experienced this? Any suggestions to mitigate this?

Hi @CrazyCanadian, welcome to the community. Can you verify in the Rule Logs if the rule was actually executed twice and if they were triggered by the same event? See screenshots below for example.

If so, the next step would be checking the SmartThings IDE site, if the device generated the same event twice. Logging with your SmartThings account, select Location, and go to My Devices, find the specific device you are looking for, and tap “List Events”.

I remember I had ran into something similar in SmartThings, and had to delete and re-create the device in SmartThings to fix the duplicated event issue.

1 Like

Thanks for the reply.

I checked on the SmartThings side and there’s only one event happening.

2021-11-14 10:11:42.000 AM EST
xx hours ago	DEVICE		switch	on	

In SharpTools, I’m seeing two events:

Person's light turned on Logs
Rule Id
kxwyXnC9hEqxxQlLbAyc

11/14/2021 EST

10:11:57 AM
Triggered by state-stays event: Person Main Light switch is on

10:11:57 AM
Sending email notification: to me@mydomain.com with subject: [HOME] Person's Light Turned On

10:11:57 AM
Rule execution is completed.

10:11:57 AM
Triggered by state-stays event: Person Main Light switch is on

10:11:57 AM
Sending email notification: to me@mydomain.com with subject: [HOME] Person's Light Turned On

10:11:57 AM
Rule execution is completed.

First Entry:
Log Details
Resource Type
trigger
Resource Subtype
device
Level
info
Insert Id
c4278308-dd8c-4bd6-b4ca-6831530260eb
Timestamp
11/14/2021, 10:11:57 AM EST
(2021-11-14T15:11:57.219Z)
Execution Id
41a1f00e-3103-41ce-aadf-8897917cf4bc
Step Id
c1998c67-2f99-4622-9e45-2cd6cb6f6d2b
Message
Triggered by state-stays event: Person Main Light switch is on

Runtime Data
[
  {
    "type": "event",
    "subtype": "device",
    "data": {
      "platform": "smartthings",
      "locationId": "81eff6a7-0096-4952-a4f0-12bc5dc8833b",
      "objectId": "e12effcb-b767-480d-8936-8c0802419b4a",
      "source": "DEVICE",
      "description": "Person Main Light was on",
      "descriptionText": "Person Main Light was on",
      "eventID": "2c871c90-455d-11ec-9f44-a7ce7e68a2fb",
      "value": "on",
      "isPhysical": false,
      "isDigital": false,
      "isStateChange": true,
      "datetime": "2021-11-14T15:11:42.797Z",
      "attribute": "switch"
    }
  },
  {
    "type": "state",
    "subtype": "device",
    "data": {
      "platform": "smartthings",
      "locationId": "81eff6a7-0096-4952-a4f0-12bc5dc8833b",
      "deviceId": "e12effcb-b767-480d-8936-8c0802419b4a",
      "attribute": "switch",
      "state": {
        "attribute": "switch",
        "value": "on",
        "timestamp": "2021-11-14T15:11:42.297Z",
        "isStateChange": null
      }
    }
  }
]

Second Entry:

Log Details
Resource Type
trigger
Resource Subtype
device
Level
info
Insert Id
f5d26267-b217-4f02-b464-6ffacac6ec53
Timestamp
11/14/2021, 10:11:57 AM EST
(2021-11-14T15:11:57.219Z)
Execution Id
6a07eeda-910e-4e4a-a065-d6d867e83aba
Step Id
775c3fdf-0c21-4afe-b5f7-af8898b22f62
Message
Triggered by state-stays event: Person Main Light switch is on

Runtime Data
[
  {
    "type": "event",
    "subtype": "device",
    "data": {
      "platform": "smartthings",
      "locationId": "81eff6a7-0096-4952-a4f0-12bc5dc8833b",
      "objectId": "e12effcb-b767-480d-8936-8c0802419b4a",
      "source": "DEVICE",
      "description": "Person Main Light was on",
      "descriptionText": "Person Main Light was on",
      "eventID": "2c871c91-455d-11ec-9f44-a7ce7e68a2fb",
      "value": "on",
      "isPhysical": false,
      "isDigital": false,
      "isStateChange": true,
      "datetime": "2021-11-14T15:11:42.797Z",
      "attribute": "switch"
    }
  },
  {
    "type": "state",
    "subtype": "device",
    "data": {
      "platform": "smartthings",
      "locationId": "81eff6a7-0096-4952-a4f0-12bc5dc8833b",
      "deviceId": "e12effcb-b767-480d-8936-8c0802419b4a",
      "attribute": "switch",
      "state": {
        "attribute": "switch",
        "value": "on",
        "timestamp": "2021-11-14T15:11:42.297Z",
        "isStateChange": null
      }
    }
  }
]

I hope that came out somewhat clearly… :slight_smile: