RSM2-Plus Dual relay

@yhoule64

Create two virtual switches; you'll use these to control each of the relays in the RSM2. In the example below, I've called the RSM2 as "Enerwave" and the virtual switches as "Switch-A" and "Switch-B".

Create 2 separate rules in RM:

Rule - 1:

Trigger:

Switch-A turns *changed*

Actions:

IF (Switch-A is on) THEN
    on1() on Enerwave
ELSE
    off1() on Enerwave
END-IF 

Rule - 2:

Trigger:

Switch-B turns *changed*

Actions:

IF (Switch-B is on) THEN
    on2() on Enerwave
ELSE
    off2() on Enerwave
END-IF 

Add Switch-A and Switch-B to your Dashboard. You'll be able to control each of the relays independently. Also, the actions on1(), on2(), off1(), and off2() are exposed as Custom Actions for the Enerwave device in Rule Machine.

2 Likes