# How to update default device presentation?

**URL:** <https://community.smartthings.com/t/how-to-update-default-device-presentation/254846>\
**Category:** Writing Edge Drivers\
**Created:** [December 27, 2022, 7:10pm UTC](https://community.smartthings.com/t/how-to-update-default-device-presentation/254846 "2022-12-27T19:10:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![w35l3y](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/w35l3y/32/109618_2.png) [@w35l3y](https://community.smartthings.com/u/w35l3y)\
**Post date:** [December 27, 2022, 7:10pm UTC](https://community.smartthings.com/t/how-to-update-default-device-presentation/254846/1 "2022-12-27T19:10:39Z")

</div>

I got the default device presentation using this command

```auto
./smartthings devices:presentation --yaml --output=presentation.out.yaml

```

I modified it manually just as I wanted and now I want to update it.

How can I update the device presentation ?  
What is the line command ?

> **[GitHub - SmartThingsCommunity/smartthings-cli: Command-line Interface for the...](https://github.com/SmartThingsCommunity/smartthings-cli#smartthings-devicespresentation-id)**
>
> Command-line Interface for the SmartThings APIs. Contribute to SmartThingsCommunity/smartthings-cli development by creating an account on GitHub.

  

**UPDATE:**  
I think I got it. It seems I can’t update device presentation, but creating a new one.

> **[GitHub - SmartThingsCommunity/smartthings-cli: Command-line Interface for the...](https://github.com/SmartThingsCommunity/smartthings-cli#smartthings-presentationdevice-configcreate)**
>
> Command-line Interface for the SmartThings APIs. Contribute to SmartThingsCommunity/smartthings-cli development by creating an account on GitHub.

---

<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:** [December 27, 2022, 7:57pm UTC](https://community.smartthings.com/t/how-to-update-default-device-presentation/254846/2 "2022-12-27T19:57:52Z")

</div>

> [@w35l3y](#):
>
> I modified it manually just as I wanted and now I want to update it.

Hi, @w35l3y!  
By “default device presentation”, do you mean the one automatically generated in Edge drivers?

If so, first, you need to get the device-config used to generate that presentation which can be retrieved with this command:

```auto
smartthings presentation:device-config VID --yaml --output=devConfig.yaml

```

That output is the one you need to modify using the supported options as shown in the [API reference](https://developer.smartthings.com/docs/api/public#operation/createDeviceConfiguration).  
The difference is that the device presentation is the result of the device config, this means the first gathers the presentation from each capability so, you cannot use it to create a new presentation.

After you modify the device config, you need to execute the `create` command:

```auto
smartthings presentation:device-config:create --yaml -i devConfig.yaml

```

> Note: This won’t update the current device presentation, you would need to add the new `VID` and `mnmn` to the device profile’s metadata \> package the driver again \> and maybe, reinstall the device to force a refresh, but you can also check if it’s auto-updated after 12 hrs.

What kind of changes are you trying to make? There are certain options that can be applied directly in the device profile. Take a look at this thread: [Smartthings Beta Edge drivers, Device profiles with value ranges defined. How to use this?](https://community.smartthings.com/t/smartthings-beta-edge-drivers-device-profiles-with-value-ranges-defined-how-to-use-this/252531)

As a reference, here’s more info about device presentation vs device configuration:  
[https://developer.smartthings.com/docs/devices/device-configurations-and-presentations](https://developer.smartthings.com/docs/devices/device-configurations-and-presentations)

---

<div class="post-metadata">

**Author:** ![w35l3y](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/w35l3y/32/109618_2.png) [@w35l3y](https://community.smartthings.com/u/w35l3y)\
**Post date:** [December 27, 2022, 8:02pm UTC](https://community.smartthings.com/t/how-to-update-default-device-presentation/254846/3 "2022-12-27T20:02:18Z")

</div>

> [@nayelyz](#):
>
> What kind of changes are you trying to make?

I would like to group/composite many switches (child switches) in a single card.

---

<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:** [December 27, 2022, 8:06pm UTC](https://community.smartthings.com/t/how-to-update-default-device-presentation/254846/4 "2022-12-27T20:06:53Z")

</div>

> [@w35l3y](#):
>
> I would like to group/composite many switches in a single card.

Are those switches from different devices? If so, that is not supported.  
If you’re referring to showing all the switch capabilities included in the components of the **same device** , you can show their status grouped in the dashboard view as shown in this section of the doc: [https://developer.smartthings.com/docs/devices/device-configurations-and-presentations#grouping-components-in-the-dashboard-view](https://developer.smartthings.com/docs/devices/device-configurations-and-presentations#grouping-components-in-the-dashboard-view)

Those options are not supported to include directly in the device profile.

---

<div class="post-metadata">

**Author:** ![w35l3y](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/w35l3y/32/109618_2.png) [@w35l3y](https://community.smartthings.com/u/w35l3y)\
**Post date:** [December 27, 2022, 8:08pm UTC](https://community.smartthings.com/t/how-to-update-default-device-presentation/254846/5 "2022-12-27T20:08:00Z")

</div>

> [@nayelyz](#):
>
> Are those switches from different devices?

Same device. Thanks!
