Error when adding a channel to my Hub

When I try to enroll one of my hubs it’s showing me a list with channels. When I choose a channel to enroll, I’m getting this error :

Error: Request failed with status code 500: {“requestId”:“4DAE41FD-753C-4F47-A7C8-62C83350C410”,“error”:{“code”:“UnexpectedError”,“message”:“A non-recoverable error condition occurred.”,“details”:}}

I’m using my Hub ID in the command line. I have multiple Hubs in my account. When I don’t add the Hub ID in the command line it adds the channel to one specific Hub in my account.

Any idea what this can be and how to solve it?

Hi!

Can you provide the following info, please?

  1. Does the channel you’re trying to enroll in belong to you? This means you used the edge:channels:create command
  2. Have you accepted using that specific hub?
    You might be having issues because of the defaults set, you can reset that config using the command:
    smartthings config:reset

This is related to this post, right?

Hi Nayelyz,

No I’m a shared user for this hub. My wife is the account holder for this hub.

Yes both posts are related as for some reason the system doesn’t recognize that I have multiple hubs in my account. I never received the option to select a specific hub when I put in a command.

Hi Nayelyz, the reset command worked!

two questions:

I see two virtual hubs in my account. What are those?
How can I send commands to hubs that are under my wife’s account?

1 Like

Have you recently entered the IDE and run the simulator?

It sometimes creates virtual Hubs as part of the simulated test.

In order to perform actions in a Hub, you need to be the location owner, but in the CLI you can:

  • Configure different profiles and when you execute a command, you need to select the corresponding one. Here are the instructions to create the required file.
  • Use a Personal Access Token created in her account as a parameter in the command. For example:
smartthings devices --token=xxxx-xxxx-xxxx

Not that I’m aware but I found that I could remove the virtual device by using command smartthings virtualdevices:delete .

They’re gone now.

1 Like

Hi Nayelyz,

things getting better. The list with hubs is showing, the channels are there and I can install drivers. One problem I can’t solve is the labels on the app.

I want to change the names in the yellow circles.

I have done the thing with the deviceConfig.json. I’ve added the the lines
“key”: “ThermostatcoolingSetpoint”,
“label”:“Temp 2”

“key”: “ThermostatheatingSetpoint”,
“label”:“Temp 1”

I tried coolingSetpoint, and ThermostatcoolingSetpoint, both with and without .value after the capability name but it doesn’t change. Any suggestions?

The syntax and name aren’t correct. The value you must set there is “attributeName.value”, you can copy the values from the capability (ID, attribute name, command names) directly from the capabilities reference.
Here’s what it should look like:

"detailView": [
    {
        "component": "main",
        "capability": "thermostatCoolingSetpoint",
        "version": 1,
        "values": [
            {
                "key": "coolingSetpoint.value",
                "label": "Temp 2"
            }
        ],
        "patch": []
    },
    {
        "component": "main",
        "capability": "thermostatHeatingSetpoint",
        "version": 1,
        "values": [
            {
                "key": "heatingSetpoint.value",
                "label": "Temp 1"
            }
        ],
        "patch": []
    }
    //...
]

This is the complete file how it should be :

{
“mnmn”: “SmartThingsCommunity”,
“vid”: “ba1b30f7-dad6-3c19-9ae0-de69ee6ea504”,
“version”: “0.0.1”,
“type”: “profile”,
“dashboard”: {
“states”: [
{
“component”: “main”,
“capability”: “temperatureMeasurement”,
“version”: 1,
“idx”: 0,
“group”: “main”,
“values”: ,
“composite”: false
}
],
“actions”: ,
“basicPlus”:
},
“detailView”: [
{
“component”: “main”,
“capability”: “temperatureMeasurement”,
“version”: 1,
“values”: ,
“patch”:
},
{
“component”: “main”,
“capability”: “thermostatHeatingSetpoint”,
“version”: 1,
“values”: [{
“key”:“heatingSetpoint.value”,
“label”:“Temp 1”}],
“patch”:
},
{
“component”: “main”,
“capability”: “thermostatCoolingSetpoint”,
“version”: 1,
“values”: [{“key”:“coolingSetpoint.value”,
“label”:“Temp 2”}],
“patch”:
},
{
“component”: “main”,
“capability”: “thermostatMode”,
“version”: 1,
“values”: ,
“patch”:
},
{
“component”: “main”,
“capability”: “thermostatFanMode”,
“version”: 1,
“values”: ,
“patch”:
},
{
“component”: “main”,
“capability”: “thermostatOperatingState”,
“version”: 1,
“values”: ,
“patch”:
},
{
“component”: “main”,
“capability”: “refresh”,
“version”: 1,
“values”: ,
“patch”:
}
],
“automation”: {
“conditions”: [
{
“component”: “main”,
“capability”: “temperatureMeasurement”,
“version”: 1,
“values”: ,
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatHeatingSetpoint”,
“version”: 1,
“values”: [{
“key”:“heatingSetpoint.value”,
“label”:“Temp 1”}],
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatCoolingSetpoint”,
“version”: 1,
“values”: [{“key”:“coolingSetpoint.value”,
“label”:“Temp 2”}],
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatMode”,
“version”: 1,
“values”: ,
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatFanMode”,
“version”: 1,
“values”: ,
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatOperatingState”,
“version”: 1,
“values”: ,
“patch”: ,
“exclusion”:
}
],
“actions”: [
{
“component”: “main”,
“capability”: “thermostatHeatingSetpoint”,
“version”: 1,
“values”: [{
“key”: “heatingSetpoint.value”,
“label”:“Temp 1”}],
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatCoolingSetpoint”,
“version”: 1,
“values”: [{“key”:“coolingSetpoint.value”,
“label”: “Temp 2”}],
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatMode”,
“version”: 1,
“values”: ,
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “thermostatFanMode”,
“version”: 1,
“values”: ,
“patch”: ,
“exclusion”:
},
{
“component”: “main”,
“capability”: “refresh”,
“version”: 1,
“values”: ,
“patch”: ,
“exclusion”:
}
]
},
“presentationId”: “ba1b30f7-dad6-3c19-9ae0-de69ee6ea504”,
“manufacturerName”: “SmartThingsCommunity”
}

I imported back the new deviceConfig.json

I updated all the profiles (folder has about 10) with the new VID and mnmn

Then package, publish and install but nothing has changed on the screen.

What do you mean by this?
Did you use the command smartthings presentation:device-config:create -i deviceConfig.json?
That needs to be executed so the new changes to the file “deviceConfig.json” are considered.

I queried your presentation using the VID and the label change isn’t included, so that’s why you keep seeing the same in the app.
Here’s the comparison of both presentations:
Yours: ba1b30f7-dad6-3c19-9ae0-de69ee6ea504

And mine: 7677e6fa-493f-394f-a886-c58da6b1c282

yes that’s what I meant. I ran the command that you mentioned.

I’ve added a copy of the driver that seems to be connected to the device :

I added the VID and the Smarthingscommunity to each driver at the bottom.

this is the return that I get after running the command smartthings presentation:device-config:create -i deviceconfig.json

{
“mnmn”: “SmartThingsCommunity”,
“vid”: “2960bfca-1b39-312e-aabd-a81cf6a11e36”,
“version”: “0.0.1”,
“type”: “profile”,
“dashboard”: {
“states”: [
{
“component”: “main”,
“capability”: “temperatureMeasurement”,
“version”: 1,
“idx”: 0,
“group”: “main”,
“values”: ,
“composite”: false
}
],
“actions”: ,
“basicPlus”:
},
“detailView”: [
{
“component”: “main”,
“capability”: “temperatureMeasurement”,
“version”: 1,
“values”: ,
“patch”:
},
{
“component”: “main”,
“capability”: “thermostatHeatingSetpoint”,
“version”: 1,
“values”: [
{
“key”: “heatingSetpoint.value”,
“enabledValues”: ,
“label”: “Temp 1”
}
],
“patch”:
},
{
“component”: “main”,
“capability”: “thermostatCoolingSetpoint”,
“version”: 1,
“values”: [
{
“key”: “coolingSetpoint.value”,
“enabledValues”: ,
“label”: “Temp 2”
}
…more

aah, ok, the VID is different, I was using the one you shared above. I can see 2960bfca-1b39-312e-aabd-a81cf6a11e36 has the change included.
So, when you made this change, did you reinstall the device?
We need to make sure the device is using this VID:

  1. Query the devices list
smartthings devices
  1. Copy the Device ID of the corresponding one and add it at the end of the first command
smartthings devices device-id

There is a property named presentationId that should have this value.

If the device is using the correct VID and you’re working with an Android device, you can clear the app’s cache:

  1. Go to your mobile phone settings
  2. Select “apps” and look for the SmartThings App
  3. Enter the app’s config and tap on “storage”
  4. Click on “clear cache”

Note: Be careful with the other option (“clear data”) as it will erase your config from the ST app.

this is the return after running smartthings devices addf94e0-40d4-4b0d-b968-ca9dc2148ee3

Main Info
─────────────────────────────────────────────────────────
Name base-thermostat-without-battery
Type ZWAVE
Id addf94e0-40d4-4b0d-b968-ca9dc2148ee3
Label Z-Wave Pool Thermostat
Manufacturer Code 0010-0001-0009
Location Id b8b4b578-8ce8-45c3-9fd3-141e7b6e39d4
Room Id 3490d9a2-4d16-471f-8a16-fbb5e6c94a7c
main component temperatureMeasurement
thermostatHeatingSetpoint
thermostatCoolingSetpoint
thermostatMode
thermostatFanMode
thermostatOperatingState
refresh
Child Devices
Profile Id b410470a-eeb6-3f7e-a546-5771509acf57
─────────────────────────────────────────────────────────

Device Integration Info (from zwave)
──────────────────────────────────────────────────────────────
Network Id 0A
Driver Id 47b40d50-ae23-4e9f-a948-a85fdcf5a5b2
Executing Locally true
Hub Id 12f37f19-58c1-47b7-b95f-50613638ff6c
Network Security Level ZWAVE_LEGACY_NON_SECURE
Provisioning State NONFUNCTIONAL
──────────────────────────────────────────────────────────────
I don’t see a presentationID in this part unless I run smartthings devices addf94e0-40d4-4b0d-b968-ca9dc2148ee3 -j

Where do you want me to add the presentation ID? I’ve added it in the deviceConfig.json. I hope that’s right.

Aaah, yes, I forgot it was only shown when we got the complete details using -j to print it in JSON format.
Have you confirmed the value of the presentationId in that result? it should be the fifth property in the list.

It’s the 7th line in my device information :

smartthings devices addf94e0-40d4-4b0d-b968-ca9dc2148ee3 -j
{
“deviceId”: “addf94e0-40d4-4b0d-b968-ca9dc2148ee3”,
“name”: “base-thermostat-without-battery”,
“label”: “Z-Wave Pool Thermostat”,
“deviceManufacturerCode”: “0010-0001-0009”,
“manufacturerName”: “SmartThingsCommunity”,
“deviceModel”: “0001-0009”,
"presentationId": “ba1b30f7-dad6-3c19-9ae0-de69ee6ea504”,
“locationId”: “b8b4b578-8ce8-45c3-9fd3-141e7b6e39d4”,
“roomId”: “3490d9a2-4d16-471f-8a16-fbb5e6c94a7c”,
“sharedLocations”: ,
“components”: [
{
“id”: “main”,
“label”: “main”,
“capabilities”: […more

I used that code to add to the profile information for each .yml file

It’s still not showing me the changed labels.

Ok, the device isn’t using the correct VID which is 2960bfca-1b39-312e-aabd-a81cf6a11e36, and instead it’s using an incorrect one ba1b30f7-dad6-3c19-9ae0-de69ee6ea504.
And you configured the correct one in the profile:

So, what we can do now, is:

  1. Clear the app’s cache o see if it forces the device profile’s configuration as I mentioned above.
  2. Reinstall the devices.

Hi Nayelyz,

I found the profile with the wrong VID which I changed and I did the whole process again :

smartthings presentation:device-config:create -i deviceconfig.json
smartthings edge:drivers:package
smartthings edge:drivers:publish
smartthings edge:drivers:install

I removed the device, cleared the cache and reinstalled the device but it’s still showing the wrong labels.

OK, please provide the corresponding permissions for me to check your device:

1.Go to the SmartThings Web (my.smartthings.com)
2. Log in to your Samsung Account
3. Select Menu (⋮) and choose Settings
4. Toggle on Account Data Access
5. Select the time period and confirm - In this step, please select “Until turned off”, once we finish checking this issue, you can disable it again.

Also, please confirm if your SmartThings account is the same email as the one you use here in the forum. If not, please send me the correct one over DM