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 = )
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 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
Kevin - Can I get access to your new channel? Iβd like to try out a few more devices!
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β¦
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?
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.