I created a custom Direct Connected device that includes a custom capability, and when I try to add that device to a Scene, I get an error upon saving that says, “There was a problem connecting. Try again later. If this problem continues, contact us.”
The device works fine from the Devices dashboard and from the details view, it’s only the automation part that is not working.
Here is my presentation code for the custom capability:
"automation": {
"conditions": [{
"label": "Current Source Status",
"displayType": "list",
"list": {
"alternatives": [{
"key": "MPLAY",
"value": "Media Player",
"type": "active"
}, {
"key": "GAME",
"value": "Game",
"type": "active"
}, {
"key": "SAT/CB",
"value": "Cable/Sat",
"type": "active"
}, {
"key": "BD",
"value": "Blu-ray",
"type": "active"
}, {
"key": "DVD",
"value": "DVD",
"type": "active"
}, {
"key": "CD",
"value": "CD",
"type": "active"
}, {
"key": "BT",
"value": "Bluetooth",
"type": "active"
}, {
"key": "TUNER",
"value": "Tuner",
"type": "active"
}, {
"key": "AUX1",
"value": "Aux 1",
"type": "active"
}, {
"key": "AUX2",
"value": "Aux 2",
"type": "active"
}, {
"key": "PHONO",
"value": "Phono",
"type": "active"
}],
"value": "mode.value",
"valueType": "string"
}
}],
"actions": [{
"label": "Current Source",
"displayType": "list",
"list": {
"command": "setMode",
"alternatives": [{
"key": "MPLAY",
"value": "Media Player",
"type": "active"
}, {
"key": "GAME",
"value": "Game",
"type": "active"
}, {
"key": "SAT/CB",
"value": "Cable/Sat",
"type": "active"
}, {
"key": "BD",
"value": "Blu-ray",
"type": "active"
}, {
"key": "DVD",
"value": "DVD",
"type": "active"
}, {
"key": "CD",
"value": "CD",
"type": "active"
}, {
"key": "BT",
"value": "Bluetooth",
"type": "active"
}, {
"key": "TUNER",
"value": "Tuner",
"type": "active"
}, {
"key": "AUX1",
"value": "Aux 1",
"type": "active"
}, {
"key": "AUX2",
"value": "Aux 2",
"type": "active"
}, {
"key": "PHONO",
"value": "Phono",
"type": "active"
}]
}
}]
},
Everything shows up correctly and the functionality otherwise works fine. What can I do to troubleshoot this connectivity error?