I am using a custom driver to trigger outputs on my Elk M1 hardware. This is working just fine. However, I would like to tie this into Rule Machine and understand there is no direct support for this. I have tried many different ways but can't seem to make any progress.
Any advice is appreciated!
Here is the code for the child driver.
Child Driver Elk Outputs
The child driver is sending an on/off command to the parent triggering the ControlOutputOn or ControlOutputOff commands. The status updated properly on the child device page.
I thought I tried this but I will try again when I get home and document the steps and results. Do I have to have Actuator capability on both child and parent drivers.
I am so lost here. I can setup ControlOutputOn as a custom command but when I go to rule machine and create a new rule. I need to select a condition capability so I select switch and pick my output switch. When I turn the output switch on this condition never changes to true.
Does that switch turn on and off? It has to for the rule to fire. When you say "no joy", do you mean the rule doesn't fire? Have you looked at the events for the switch (on device page), and the events for the app (on app status page -- gear icon)?
Nothing happens with the trigger! It is one of potential many outputs in the Elk M1 control system. Yeah something funky here but it might not be the device, it could be me. So thanks for your insight thus far!
Here is a definition from the Elk User Manual.
OUTPUTS Provides the ability to view and control individual outputs. An
output may be a relay used to signal or switch a device On or Off. Outputs
are not necessarily a physical form. Outputs must first be assigned and
programmed by the installer before you can utilize them in this menu. A relay
might be used to control a Pool pump motor. When this output is On the
pump would be running. When the output is Off the pump would be off.
Here is a screenshot of the available outputs I exposed to HE: