Try Mike maxwells universal device type translator. It is awesome.
This has got to be the sickest DTH everā¦
The uDTH
Ever wished you could turn on a presence sensor with a switch?, or maybe take a lock command and send a motion event?
Basically this bad boy accepts these commands:
on
off
open
close
lock
unlock
and can turn them into these attribute states:
open
closed
present
not present
active
inactive
The following capabilities are presented on the command side:
switch
door control
garage door control
lock
The following devices are presented on the attribute side:
Contact
Motion
Presence
Door
Acceleration
Illuminance
Smoke
Water
Sound
You wire up an instance of this device to two separate apps, and off you go.
Add to your repo, and select the device MikeMaxwell : uDTH
the repo is
owner: MikeMaxwell
name: dth
[image]
[image]
[imageā¦
If you havenāt used custom code before, itās pretty straightforward. Basically you copy the authorās code and paste it into your account. The following FAQ describes the general process, and then go back to Mikeās thread and it will have the exact steps for that particular code.
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTHās or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, Iām afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use āEdge Drivers,ā written in the LUA programming language. Hereās the official announcement on those:
The process for using a custom Edge Driver in the new ā¦
Sorry I donāt know the answer to the zones question, but hopefully someone who has the Fibaro and is using it with sensors can comment on that.