Z-wave momentary switch using Alexa

Anyone have a Groovy script that can trigger a Z-wave relay ?

What i want to do : wire up a w-wave relay module to an existing intercom system so i can buzz someone in using an Alexa command. Alexa : open the door.

The script would send the ‘ON’ command’ to the z-wave relay , wait a few seconds , then send the ‘off’ command.

You should be able to do that with Webcore, although smartthings does not guarantee that instructions that are less than one minute apart will be executed. But there are quite a few people who are using sub minute communications in Webcore, Pistons (a “piston” is what webcore calls a rule).

See the logic FAQ (this is a clickable link)

If you’re willing to have the commands at least one minute apart, you should be able to use the “power allowance” official feature. This allows you to set a switch to always turn itself off a specified time after it is turned on. But the minimum time is one minute.

I don;t want to go through yet another service and yet another thing i have to learn …

I found an answer though. it turns out that Smartthings has already published such a device handler and it works like a charm including millisecond accurate timing.

Smartthings Z-wave momentary button is now my friend.

1 Like