Skip to content

How to customize UI #2 (list items)

Kwang-Hui edited this page Jan 19, 2021 · 3 revisions

Default UI Display configuration has created when Default Profile is created by Developer Workspace. This document describe how to customize UI - especially number of listed items.

  1. Prerequisite.
    Create Project → Create Device Profile (including Activity Lighting Mode capability for example) → Create Device Onboarding → Deploy to Test → Add Test Devices

  2. Downloading device_configuration.json
    Go to Project → Device Profile → UI Display tab
    Download device_configuration.json
    download device configuration

  3. Editing device_configuation.json file

    • find activityLightingMode section at "detailedView", "automation / conditions", "automation / actions"
    {
      "component": "main",
      "capability": "activityLightingMode",
      "version": 1,
      "values": []
    },
    • specify wanted-items for this capability - use reading, writing, day and night mode only while this capability has additional computer, sleepPreparation items also - at values array
    {
      "component": "main",
      "capability": "activityLightingMode",
      "version": 1,
      "values": [
          {
            "key": "lightingMode.value",
            "enabledValues": [
                "reading",
                "writing",
                "day",
                "night"
            ]
          },
          {
            "key": "setLightingMode",
            "enabledValues": [
                "reading",
                "writing",
                "day",
                "night"
            ]
          }
      ]
    },
    
  4. Uploading device_configuration.json
    Check Use customized Device Configuration
    check use customized device configuration
    Upload edited device_configuration.json file
    upload device configuration

  5. Loading updated UI at mobile client
    Updated UI configuration will be downloaded to device automatically after some time (12~24 hours depends on system) You can force download UI configuration by refreshing AppData

    [Android/Galaxy client] Go to System settings → Apps → find "SmartThings" → Storage → Clear data → Launch SmartThings Applincation & Select Device Card

  6. You can find more information from below links