Preview | SmartThings-managed Edge Device Drivers

3 posts were split to a new topic: [ST Edge] - Driver Lifecycle Inquiries

I’m not sure if this will be helpful to anyone else, but I’ve been saving the following as a batch file for each of my drivers so that I I can double click it and execute all those commands…

@echo off

set driverPath=C:\Users\...
set driverId=
set channelId=
set hubId=

cd c:\smartthings

echo Packaging Driver...
smartthings edge:drivers:package "%driverPath%"

echo Publishing Driver to Channel...
smartthings edge:drivers:publish %driverId% --channel %channelId%

echo Installing Driver...
smartthings edge:drivers:install %driverId% --channel %channelId% --hub %hubId%


This is the one I use for logging:

@echo off

set driverId=
set hubAddress=192.168.x.x

cd c:\smartthings

smartthings edge:drivers:logcat %driverId% --hub-address=%hubAddress%


Kevin - Can I get access to your new channel? I’d like to try out a few more devices!

1 Like

I’ve sent the invite, but I currently only have drivers posted for the ZSE41 and ZSE42


Thank you sir!

2 posts were split to a new topic: [ST Edge] Issues with channels in iOS

Thanks Kevin, thanks just the biscuit👍

2 posts were split to a new topic: [ST Edge] - Local HTTP Requests

Thanks, I think…:confused:

Kevin , can I get access to your channel, please.

I just sent you an invite, but I only have drivers posted for the Zooz ZSE41 and ZSE42.

I have modified an edge driver following the tutorial of @jody.albritton and everything has gone well up to the edge: channels: enroll.

C: \ smartthings>. \ Smartthings edge: channels: enroll
┌───┬─────────┬─────────────────────────────────── ───┐
│ # │ Name │ Channel Id │
├───┼─────────┼─────────────────────────────────── ───┤
│ 1 │ Mariano │ aa9ae2b2-38c3-4666-a395-xxxxxxxxxx │
└───┴─────────┴─────────────────────────────────── ───┘
? Select a channel. 1
│ # │ Label │ Name │ Device Id │
│ 1 │ SmartThings Hub │ SmartThings v3 Hub │ d6c3122b-1c8b-423c-add4-xxxxxxxxxxx │
? Select a hub. 1
Error: Request failed with status code 403: {“requestId”: “1ACCE928-FFFF-410E-82F4-42D5C003781F”, “error”: {“code”: “ForbiddenError”, “message”: “Forbidden”, “details” : }}

  • I try to answer with the Hub id, that he shows me and gives the same error

I have the PAT, with all the permissions, in the config.yaml. If I delete it, nothing works, therefore it seems that it uses the PAT correctly.

My Hub is enrolled in Beta driver.
I have rebooted the Hub.

I don’t know what’s going on, any recommendations?

@nayelyz can you help regarding this?

1 Like

If I ask him to show me all my edge drivers, he shows me drivers that I have never made or created, in fact only the zigbee smoke sensor heiman is the one that I have uploaded.
The other 3 drivers are groovy DTH drivers that I made a long time ago and deleted them from the IDE

C:\smartthings> .\smartthings edge:drivers
│ # │ Driver Id │ Name │ Version │ Package Key │
│ 1 │ 7c13984b-8bb8-4c7e-a0ce-cf237526e9da │ smartthings/SmartSense Moisture Sensor+TimeRep+TempChangeRep │ 2021-03-03T19:58:59.427973 │ │
│ 2 │ 51209c7d-ed9c-410b-8f78-caf7f2b06e63 │ smartthings/SmartSense Motion Sensor-Prueba │ 2021-01-07T12:25:11.490997 │ │
│ 3 │ c674c3fa-9a55-45b8-8715-4e8455fe3b4e │ smartthings/SmartSense Multi Sensor-Prueba │ 2021-01-07T10:54:28.829639 │ │
│ 4 │ b397d7a3-fb49-463e-8e96-6aa971ca62b3 │ smartthings/ZigBee Valve │ 2020-12-07T11:22:35.068884 │ │
│ 5 │ a2f7ec78-14c8-492d-9965-xxxxxxx │ Zigbee Smoke Detector Heiman │ 2021-08-26T23:10:09.624676 │ zigbee-smoke-detector-heiman │

Tag him here so that you can let him know.

Yes, I had that. Unfortunately I got rid of them before the account could be inspected.

You can try disabling your current config.yaml with the PAT (changing the file name will do the work) and use the default OAuth flow to get the corresponding permissions.
Once you disable the file, a web browser page will open automatically when you execute a CLI command and it will ask you to authorize the access.

More info here:

BTW, I already reported this to Caleb, I’ll let you know the feedback.


Thank you, I will try it as soon as I can and inform you

A post was merged into an existing topic: [ST Edge] - Local HTTP Requests

@orangebucket, I deleted them a long time ago from the IDE, and they are groovy, not edge