# Cloud to Cloud - How to update devices periodically / trigger device data update

**URL:** <https://community.smartthings.com/t/cloud-to-cloud-how-to-update-devices-periodically-trigger-device-data-update/282220>\
**Category:** Support\
**Created:** [May 22, 2024, 12:38pm UTC](https://community.smartthings.com/t/cloud-to-cloud-how-to-update-devices-periodically-trigger-device-data-update/282220 "2024-05-22T12:38:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [May 22, 2024, 4:45pm UTC](https://community.smartthings.com/t/cloud-to-cloud-how-to-update-devices-periodically-trigger-device-data-update/282220/2 "2024-05-22T16:45:26Z")

</div>

> [@romrom21](#):
>
> When I refresh manually the device on the app, nothing is triggerred, and I don’t know how to update the station periodically

Hi, @romrom21  
I checked your profile `29a6f358-b677-4918-9fa5-437aa9e61a26` and I see it doesn’t include the capability “refresh” which is “triggered” when we pull down the screen. It sends a “stateRefreshRequest” where you can send the new values.

To trigger this `stateRefresh` automatically, you could create a [Rule](https://developer.smartthings.com/docs/automations/rules) that calls the refresh capability every 15 mins for example:

```auto
{
    "name": "Refresh Interval",
    "actions": [
        {
            "every": {
                "interval": {
                    "value": {
                        "integer": 15
                    },
                    "unit": "Minute"
                },
                "actions": [
                    {
                        "command": {
                            "devices": [
                                "deviceId"
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "refresh",
                                    "command": "refresh"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

```

Or, create a [SmartApp](https://developer.smartthings.com/docs/connected-services/create-a-smartapp) that creates a schedule and calls the corresponding API to update the capabilities’ status.

---

_[View the full topic](https://community.smartthings.com/t/cloud-to-cloud-how-to-update-devices-periodically-trigger-device-data-update/282220)._
