Thank you so much for your help @nayelyz & @Mariano_Colmenarejo
Unfortunately I’m still struggling with this,
I have followed your instructions and recreated the cap, and the presentation for the capability ensuring I set the label like you did.
I have also deleted the device configuration and removed the vid from my profile.
If I try and package my driver now with only my custom capability it refuses to package with error code 400.
If I package with an added stock capability (switch) it then packages fine but the custom capability doesn’t show on the device.
So I think there is something wrong with my capability or capability presentation, but I’m not sure what.
Do you have any more ideas for me?
# harmony-bridge-simple
name: harmony-bridge-simple.v1
components:
- id: main
capabilities:
- id: switch
version: 1
- id: universevoice35900.harmonyCommand
version: 1
categories:
- name: Switch
preferences:
- title: "IP Address"
name: ipAddress
description: "IP address of the HarmonyHub"
required: true
preferenceType: string
definition:
minLength: 7
maxLength: 15
stringType: text
default: ""
metadata:
mnmn: SmartThingsCommunity
{
"name": "Harmony Command",
"ephemeral": false,
"attributes": {
"harmonyCommand": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setHarmonyCommand",
"enumCommands": []
}
},
"commands": {
"setHarmonyCommand": {
"name": "setHarmonyCommand",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "string"
}
}
]
}
}
}
{
"dashboard": {
"states": [
{
"label": "{{harmonyCommand.value}}"
}
],
"actions": [
],
"basicPlus": []
},
"detailView": [
{
"label": "Harmony Command",
"displayType": "textField",
"textField": {
"value": "harmonyCommand.value",
"command": "setHarmonyCommand"
}
}
],
"automation": {
"conditions": [
{
"label": "Harmony Command",
"displayType": "textField",
"textField": {
"value": "harmonyCommand.value"
}
}
],
"actions": [
{
"label": "Harmony Command",
"displayType": "textField",
"textField": {
"command": "setHarmonyCommand"
}
}
]
},
"id": "universevoice35900.harmonyCommand",
"version": 1
}
Thank you