[OBSOLETE] Universal Virtual Device Type and Translator

@SBDOBRESCU, I would love to know how and what you are doing with the presence as I use life 360 and presence is still the number 1 thing I have issues with. I cant use it for automation as it has not been stable…with the exception of mine!

I am testing integration of 360 to ST via IFTTT, using 2 recipes for each 360 user. So I created a UDTH for each user and I use it in ST as presence sensor and in IFTTT as switch. So far so good, but we will see if it turns out more reliable than 360 connect…

Sorry for the question but I am trying to find this. I am in my IDE under Device Handlers. I click Settings to add new repositories. I add under Owner “MikeMaxwell” and for Name “dth” but for the last field of Branch: I don’t know what to put there? Am I in the right place?

I thought if I played with it , it might make more sense how I can use it.

that should default to master

Yes that is what it did. I didn’t realize I was supposed to leave that? I learn something new everyday. :grin: Thanks!

1 Like

I added the repo (MikeMaxwell, dth, master), but there’s nothing in it. I’ve done this many times before and it’s worked. What am I doing wrong?

I think the “destructions” :wink: are correct… You need to go to “Device Handlers” not “SmartApps” to install it.

1 Like

True, I suppose I take a few things for granted from time to time :slight_smile:, did I say smartApps?

1 Like

D’oh! Of course. My bad. It shows up when I add a new device. The repo does appear to be “dth”, BTW.

1 Like

arggg, I’m getting all confused now
the device name is uDTH, the repo is dth…
Everything I wrote in the destructions was accurate…

3 Likes

Forgive me, I can’t see well today so I can’t read what’s on the screen shots… Can you set this up so that it would report “motion inactive” when a contact sensor is open and “motion active” when that contact sensor is closed?

I know this is opposite the way that most people would think of it, but there’s a specific use case I have in mind.

1 Like

Yes, through Smart Lighting. You set uDTH for motion inactive when switch is on. And then you create a Smart Lighting instance when contact opens, switch uDTH to on.

1 Like

I just found another use case today:

In case of a smoke/CO2 alarm I want to turn on all lights, turn off thermostats (Nest), turn off hot water heater (Aeon relay), open garage door (Linear relay) and unlock the front door (Schlage Connect lock).

  • My garage door opener is a smartthings multi and a “momentary contact” relay (used to be 1 device before v2, now unfortunately 2 devices)
  • I have connected my hard wired smoke alarm to a schlage open/close sensor with device type (see post 27 above)
  • I have added the smoke alarm in SHM to turn on all lights in the home and unlock the front door in case of Alarm
    *SHM does not support: thermostats, momentary switches and turning off switches
  • Rule Machine does support smoke alarm as trigger but the app is not supported anymore (who knows how long it will work reliably)
  • SmartRules does not support smoke alarm as a trigger
  • The CoRE app will be great but will still take some time.
  • I created a mode called “ALARM” that sets thermostats to Away mode (NestManager), triggers the garage door controller relay (momentary contact) and turns off the water heater. However modes can only be triggered by motion/time/open-close.

Solution (instead of using multiple virtual switches and SmartRules):

  • SHM turns on virtual uDTH (input: on/off switch)
  • ALARM mode is triggered by “something opens” = uDTH (output: open close sensor)

[Correction: I just noticed that SmartRules does support smoke detectors as triggers. I just did not set it up right I will continue use the above setup though]

3 Likes

@mike_maxwell feature request, can you add luminance to your magic devices? Something like when on set illuminance to x lux? That would make Smart Lighting a killer app…

1 Like

Cool idea, use case?

I can, but how does that make fart light…, er smart lighting killer?

Smart lighting recently added the ability to use luminance level as a condition.

1 Like

ah, ok, so this is to allow control of the only if illuminance section by using the uDTH, I get it…

2 Likes

Like @JDRoberts said. It would add a conditional aspect that it currently lacks. Say turn the lights on if motion active AND door is unlocked (uDHT lux below x ). or Turn lights on if contact opens but not when light was aleardy on…

2 Likes

boom… 1.0.4 2016-05-21 added LUX capability

2 Likes