Custom Capability and CLI Developer Preview

Dear @erickv,

Thanks for noticing that mistake. I made the change below to the DTH but the device tile still does not render what I specified in the json… Here are screenshots that have me scratching {banging} my head…(I’m using all standard capabilities for now)…

metadata {
    definition (
        name			: "Ambient Weather Station",
        namespace		: "kurtsanders",
        author			: "xxx@xxxxxxxx.com",
        vid				: "5cf77327-f54d-4c2b-be9a-4ec31a3bfcd6",
        mnmn			: "0Av0"
    )
    {
        capability "Temperature Measurement"
        capability "Relative Humidity Measurement"
        capability "Illuminance Measurement"
        capability "Water Sensor"
        capability "Ultraviolet Index"
        capability "Sensor"
        capability "Refresh"
        capability "Battery"

        // Wind Motion Detection
        capability "Motion Sensor"
        // Wind Speed Psuedo Capability
        capability "Power Meter"
        capability "Energy Meter"

Missing Temperature on Dashboard and detail screen

Missing Power Meter, energyMeter, powerConsumptionReport, Refresh

smartthings deviceprofiles

┌───┬───────────────────────────────────────┬───────────┬──────────────────────────────────────┐
│ # │ Name                                  │ Status    │ Id                                   │
├───┼───────────────────────────────────────┼───────────┼──────────────────────────────────────┤
│ 1 │ Ambient Weather Station               │ PUBLISHED │ b905ad36-0398-4954-a788-eb517d9028ee │
│ 2 │ Ambient Weather Station Remote Sensor │ PUBLISHED │ 948c96cb-e96d-4b23-b065-094c78a422a0 │
└───┴───────────────────────────────────────┴───────────┴──────────────────────────────────────┘

device.json file that is published on my ‘0Av0’ account

{
  "mnmn": "0Av0",
  "vid": "5cf77327-f54d-4c2b-be9a-4ec31a3bfcd6",
  "type": "profile",
  "dashboard": {
    "states": [
      {
        "component": "main",
        "capability": "temperatureMeasurement",
        "version": 1
      }
    ],
    "actions": []
  },
  "detailView": [
    {
      "component": "main",
      "capability": "temperatureMeasurement",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "relativeHumidityMeasurement",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "illuminanceMeasurement",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "ultravioletIndex",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "motionSensor",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "waterSensor",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "battery",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "powerMeter",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "energyMeter",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "powerConsumptionReport",
      "version": 1,
      "values": []
    },
    {
      "component": "main",
      "capability": "refresh",
      "version": 1,
      "values": []
    }
  ],
  "automation": {
    "conditions": [
      {
        "component": "main",
        "capability": "temperatureMeasurement",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "relativeHumidityMeasurement",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "illuminanceMeasurement",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "ultravioletIndex",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "motionSensor",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "waterSensor",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "battery",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "powerMeter",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "energyMeter",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "powerConsumptionReport",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "refresh",
        "version": 1,
        "values": []
      }
    ],
    "actions": [
      {
        "component": "main",
        "capability": "temperatureMeasurement",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "relativeHumidityMeasurement",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "illuminanceMeasurement",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "ultravioletIndex",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "motionSensor",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "waterSensor",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "battery",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "powerMeter",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "energyMeter",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "powerConsumptionReport",
        "version": 1,
        "values": []
      },
      {
        "component": "main",
        "capability": "refresh",
        "version": 1,
        "values": []
      }
    ]
  }
}

smartthings presentation 5cf77327-f54d-4c2b-be9a-4ec31a3bfcd6 0Av0

Basic Information
┌──────────┬──────────────────────────────────────┐
│ VID      │ 5cf77327-f54d-4c2b-be9a-4ec31a3bfcd6 │
│ MNMN     │ 0Av0                                 │
│ Icon URL │                                      │
└──────────┴──────────────────────────────────────┘

Dashboard States
┌────────────────────────────────────────────┬──────────────┬───────┐
│ Label                                      │ Alternatives │ Group │
├────────────────────────────────────────────┼──────────────┼───────┤
│ {{temperature.value}} {{temperature.unit}} │ 3            │       │
└────────────────────────────────────────────┴──────────────┴───────┘

No dashboard actions

No dashboard basic plus items

Detail Views
┌─────────────────────────────┬─────────┬───────────┐
│ Capability                  │ Version │ Component │
├─────────────────────────────┼─────────┼───────────┤
│ temperatureMeasurement      │ 1       │ main      │
│ relativeHumidityMeasurement │ 1       │ main      │
│ illuminanceMeasurement      │ 1       │ main      │
│ ultravioletIndex            │ 1       │ main      │
│ motionSensor                │ 1       │ main      │
│ waterSensor                 │ 1       │ main      │
│ battery                     │ 1       │ main      │
│ powerMeter                  │ 1       │ main      │
│ energyMeter                 │ 1       │ main      │
│ refresh                     │ 1       │ main      │
└─────────────────────────────┴─────────┴───────────┘

Automation Conditions
┌───────────────────────────────────────────────────────┬──────────────┐
│ Label                                                 │ Display Type │
├───────────────────────────────────────────────────────┼──────────────┤
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_TEMPERATURE   │ numberField  │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_HEADER_HUMIDITY_CHN  │ numberField  │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_ILLUMINANCE   │ numberField  │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_UV_INDEX      │ numberField  │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_MOTION_SENSOR │ list         │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_WATER_SENSOR  │ list         │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_BATTERY       │ numberField  │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_POWER_METER   │ numberField  │
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_HEADER_ENERGY_METER  │ numberField  │
└───────────────────────────────────────────────────────┴──────────────┘

Automation Actions
┌───────────────────────────────────────────────────┬──────────────┐
│ Label                                             │ Display Type │
├───────────────────────────────────────────────────┼──────────────┤
│ ___PO_CODE_SMARTTHINGS_DREAM_SAC_BUTTON_REFRESH_8 │ list         │
└───────────────────────────────────────────────────┴──────────────┘

Device States/Values

Current States	
ultravioletIndex: 0
energy: 1.1
power: 0
battery: 100 %
humidity: 98 %
water: dry
illuminance: 0 lux
motion: inactive
temperature: 66 F
scheduleFreqMin: 5
location: Xenia, Ohio
humidityin_display: 54%
windspeedmph: 0 mph
moonAge: 14
weeklyrainin_display: 0 in
hourlyrainin: 0 in
winddirection: W
macAddress: 84:F3:EB:67:9D:D2
monthlyrainin: 0 in
baromrelin_real: 30.07
localSunset: 8:05
totalrainin_display: 104.24 in
totalrainin_real: 104.24
city:
weeklyrainin_real: 0
hourlyrainin_display: 0 in
baromrelin_display: 30.07inHg
tempf_real: 66
alertDescription: 1. ...Fog will reduce visibility this morning... Areas of fog forming under humid and calm conditions will reduce visibility to a quarter mile or less in a few spots this morning. Keep an eye out for cha 2. ...DENSE FOG ADVISORY IN EFFECT UNTIL 10 AM EDT THIS MORNING... * WHAT...Visibility one quarter mile or less in dense fog. * WHERE...Portions of East Central and Southeast Indiana, Northeast and North
humidityin: 54 %
monthlyrainin_display: 0 in
eventrainin_display: 0 in
windspeedmph_display: 0 mph
sunsetDate:
tempinf_real: 72.1
lastRainDuration: 2 days, 22 hours, 41 minutes
dailyrainin_real: 0
secondaryControl: (2 Alerts) Humidity is 98% at 6:05 am
feelsLike_real: 66
solarradiation_real: 252.38
solarradiation: 0 lux
ultravioletIndexDisplay: Low (0)
dewPoint: 65.42 F
baromabsin_display: 29.02inHg
windspeedmph_real: 0
tempinf: 72.1 F
humidity_real: 98
baromrelin: 30.07 inHg
dewPoint_real: 65.42
windgustmph_real: 0
monthlyrainin_real: 0
eventrainin: 0 in
forecastIcon:
pwsName: TimberRidge
baromabsin_real: 29.02
lastRain: Sat Aug 29, 7:24 AM
lastSTupdate: V5.0.5 Tile Last Refreshed at Tue Sep 1, 6:05:14 AM
windgustmph: 0 mph
date: Tue Sep 1, 6:04:00 AM
dewPoint_display: 65.42°F
humidity_display: 98%
version:
tempf_display: 66°F
rainForecast: Rain 20%
feelsLike: 66 F
dateutc:
winddir: 278 mph
unitsOfMeasure: Temperature: °F Height: in Wind: mph Barometric: inHg
windPhrase: Forecast: Winds S at 5 to 10 mph.
feelsLike_display: 66°F
weatherIcon: 20
solarradiation_display:
windgustmph_display: 0 mph
weeklyrainin: 0 in
localSunrise: 7:04
maxdailygust_display: 1.1 mph
sunriseDate:
maxdailygust_real: 1.1
alertMessage: 1. SPS - Special Weather Statement until TUE 8:15 AM EDT 2. NPW - Dense Fog Advisory from TUE 5:05 AM EDT until TUE 10:00 AM EDT
hourlyrainin_real: 0
dailyrainin: 0 in
humidityin_real: 54
baromabsin: 29.02 inHg
eventrainin_real: 0
dailyrainin_display: 0 in
maxdailygust: 1.1 mph
tempinf_display: 72.1°F
totalrainin: 104.24 in
1 Like