[RELEASE] Enerwave ZWN-RSM2 (v1 & v2) & RSM2-Plus —Smart Dual Relay Switch Module

You are right, all the time in manual, and sometimes with the ST App, they are in metal gang boxes, status as well is an issue,

I have not change the parameters, I am using the last code from Eric that change the parameters automatically.

Refer to this post and go down to around post #118. You will find the step for changing the parameters.

As for losing connection because of metal gangbox. You can try sticking the little antenna out of the metal box.

I just tried sticking the antenna out of the metal on some of the devices , and now is doing better. Let me do several attempts and I will come back with the results. There are some of my devices with the Antenna Inside and others outside now.

Forgot to mention to do a z-wave repair as well.

Hi @erocm1231 thanks again for sharing this with me on another thread. After testing it, here are a few issues that I noticed. However, you are the only game in town that auto-refreshes the ST app w/o having to poll or refresh.

  1. Amazon Echo turns both switches on but I can easily just point to the first switch in the code and comment out the second call. Echo always runs the on() and off() functions from my experience.
  2. This installs a single device for two switches. Making it impossible for me to do any automation (SmartLights or Rule Machine) with the second switch.
  3. The default device that ST uses (and that I’ve been using for a while, which does not report the status to children) has source available from ST via “create from template”. This begs the question of what your secret is for accurately reporting switch state and whether the default ST device code can be hacked up to be as respectful since it has one thing that I feel is needed which is creating/having child devices to make any automation possible.
  4. If you’re aware of any other device/smartapp that will help in automating that SECOND switch, I’m all ears. I wish there was some way to “subscribe” to a Device function call like your on2() or off2() which would make this super-easy. There may be a way with SmartApps to do so but I’m way more experienced with Device Handlers.

Thanks again, awesome device implementation and worked just like you said when I manually flip the physical switch… ST was QUICK to update the tile.

You essentially need to create two virtual switches and use an app to sync the virtual switches with the physical switches. Use the “Simulated Switch” device type with the app in this thread:

This lets you use the two virtual switches in automations and with things like the Echo to have individual control.

Let me know if you have any questions.

You are DA MAN! I will so be trying that out and it opens up a whole new world for me. Thank you so much for sharing!!! I’ll give it a go and report any problems (or success) :slight_smile:

If I only read your first post completely, heh? :slight_smile:

I can’t believe what you’ve accomplished for me and let me know how much more I have to learn with my rinky-dink HTML parsing device handler for Raspberry Pi :slight_smile:

ZERO issues, everything works as expected. Created two virtual devices, let the smartapp point the physical to the two virtuals and voila. Everything works: auto-update of switch status, rule machine/smart lighting, Echo…

The only thing I don’t understand or see any behavior with are the ON/OFF buttons on the right. They don’t seem to do anything. I’m guessing that it’s for other subscribers to be notified.

Thank you very much!!!

Eric, so does this work for the Monoprice 11990 Dual Relay Module as well? You mention it in the virtual switch device handlers only so I assume not?

I think the best device handler for the Monoprice is here:

1 Like

I was about to use the same one I have for the Enerwave’s, got the Monoprice’s coming real soon, glad I saw this, and thanks again Eric for all the work you’ve done on these relay DHT’s, they have been rock solid with your handler!

For some reason I keep getting code errors when trying to add the handler.
Has this project been dropped? Does the Enerwave not work?

Are you adding as DHT or SmartApp? Verify you’re doing the right one. The code and devices still work great.

I’m trying to add as a device handler. I was able to get enerwaves version to compile and publish, but I cannot get Eric’s version to compile. Even with everwaves, it’s published but I don’t know how to tie things together in the app.
Any ideas?

Make sure you are using the raw view in GitHub so you don’t accidentally cut/paste anything extra. Then the second bit of code in the first post is a smart app that will create and sync virtual switches appropriately. You don’t want to use that original Enerwave code, it’s very limited.

Any chance you might give me the step by step?

I was able to get the raw version which worked. Ibwas able to publish it.

The enerwave is on the network as its base config (showing only one switch).

I will go back and add the smartapp.

Then what do i do?

Create two virtual switches in the IDE with the DTH in post 1. Fire up the smart app, select the relay, add the virtual switches. Profit.

I name the relay “xxxxxxx Relay” to easily differentiate from the virtual switches.

I’ve done all, including adding the simulated switches, but when I run the smart app it throws back “make sure you have added the virtual device handlers”. I have no idea where that is done.

You have to follow the links in the first post. One of them is for a simulated switch creator, you don’t actually create the simulated switches yourself, the smart app will do all of that for you if you’ve installed all the correct stuff in IDE. So you should have 2 device handlers installed and one smart app.


Smart App


Device Handlers

2 Likes

Hi, I’m with problems to use Enerwave ZWN-RSM2 since the last week. When I try to turn on/off the lights sometimes have a big delay (2/3 minutes) and at other ST ignore the command.

Anyone with this problems?

PS: I tried to remove and install it again but the problem persist.

Thank you!