[OBSOLETE] Universal Virtual Device Type and Translator

Mike, can you add to every action if it’s already on, don’t turn it on, or if it’s off don’t turn it off? Or do you think I should do that via a custom app? I’d like to use Smart Lighting, but I notice that for motion, for example it fires the switch on constantly.

So for the inputs (on/off ect), do not send the output events unless the input state has changed?
If that’s the case, yea, let me know.

@SBDOBRESCU, I just pushed a patch for this, dorrrrr… this was the “intended” function all along.

1 Like

This is awesome! I see many uses for this… Thank you!

May I make a feature request for all those who connected their hard wired smoke alarms to open/close sensors and can’t use them in SHM? Capability for command “Smoke Detector”, attribute “alarmState”. (Hope I got this right and it is not more complicated than this…)

1 Like

Thanks Mike, couple more things. First would you be able to add versioning. Ive updated the device, but it still fires with every motion event see pic. Also, would it be possible to turn off the capabilities that are not used/enabled? I set one for garage control and it shows in the ‘Family’ section. This is esthetic more than functionality, really so no big deal if not possible.

alarm could be an input since it has commands (strobe, siren etc)
however contact only has attributes (open, close)
a device can read the attributes of another device (probably not intended), but it can’t subscribe to any device attribute changes like a smart app.
Now having said that, this DTH could in fact do this, but would require something to poll it, when the device is polled, it would then have a look at the contact sensor state, and then set the alarm attribute.

This isn’t ideal obviously, and the ability of one device to retrieve attributes from another device that’s been selected in the preferences section I believe is something of an unintended “feature”, that I’m guessing ST will prevent in the future.

The device capabilities that the device presents can’t be modified programmatically.
I can ignore any commands, but there’s no way to change them after the device is published.
The only way to remove them is to comment them out.

Can you tell me what you’ve got configured there?
is that a switch to motion converter?

I have the specific setup that you do, I hacked the contact DTH specifically to make it act like a smoke/CO device.
Depending on the contact that you have, these DTH’s may work for you too.
Let me know which DTH your contact sensors are currently using.

I love it. Turning what the security researchers call a risk, into a killer feature. Nice job Mike! This is awesome.

5 Likes

I use an old Schlage Sensor RS100HC V N N SL and a slightly modified a “z wave Door/Window Sensor” DTH. It has contact sensor, sensor, and battery capabilities (even though the Schlage sensor does not support battery)

@SBDOBRESCU, the repo sync on my side may have been screwed up. in any event version info added, will show in the device preferences and device detail in the IDE. current version is 1.0.1

1 Like

Using it directly as virtual presence, motion to switch.

Yeah, I noticed it said there was a conflict between local file and github directory.

totally confused buddy!, pm me a screen shot of your preferences?

I added my contact → smoke and contact → co to the above repo. I built them for the monoprice contacts, but they may work since it was based off the ST stock zwave sensor, and I didn’t make any zwave command changes.

1 Like

Thank you! I will test and report back…

I noticed that with many installations from github recently. It is usually a return character at the last line of code. No impact on functionality.

1 Like

@Mike_Maxwell This is beautiful – Thanks for sharing! I’m thinking using the switch->presence as a way for visitors to activate/deactive SHM by a simple Alexa voice command. Out of curiosity, what other use cases are people coming up with?

Thank you! The DTH works great for the Schlage sensor. I just need to flip open/close for my relay setup. Problem solved!

2 Likes

really neat.

What scenarios are folks using this for?