Preview | SmartThings-managed Edge Device Drivers

Please add your learnings to my post here: Developing for Edge - What I've Learned So Far

1 Like

That’s right. The Driver Sharing mechanism is a layer that will improve the method to share our solutions and, IMO will help a lot to the way driver developers engage their “communities” because in the past it happened that people used to share/publish DTHs which its maintenance wasn’t part of the plan, and then users had to either hire someone else for customization or just give up their appliance.

Also, it doesn’t replace sharing driver source code repositories but it will help a lot of those that struggle with coding or are not familiar with terminal commands to set up drivers from scratch.


Check if this helps = )

Yes, I referenced that in my post. My comment was that a driver-level preferences mechansim would also be useful (the topic you referenced is done at device-level, if I understand correctly)

Something like dynamic profile/metadata support? I believe this kind of model-based preference can be handled via subdrivers.

If you have a specific use case for this inquiry, share it below to see if we can figure something out = )

1 Like

My driver needs to be configured with an IP address of a physical device. The device doesn’t support any kind of discovery, and I can’t modify it. The device is actually a ‘conduit’ to multiple devices ‘behind’ it, so yes, perhaps subdrivers is an option, although I’ve found it much easier so far not to go that route. I may need to rethink things…

3 Likes

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:
echo Publishing Driver to Channel...
smartthings edge:drivers:publish %driverId% --channel %channelId%

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

echo:
pause

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%

echo:
pause
4 Likes

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

2 Likes

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?
Thanks

@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.