Requesting a garage door sensor type.
-
@172pilot
yes it is a sensor/device to open and close, which is controlled via my Vera Lite Controller. I'm using the Door-Window Sensor (with simple Reed Switch) to detect the Door Status, and that works for me, but my issue is with the Relay-Actuator Sensor , it needs tot turn on and then immediately turn off, and it does not do that. I can have it turn on and then immediately turn off using a Scene on my Vera Controller, but it would me way more reliable if it was written in the code. We need the Gods of Mysensors Website to add it to the code.@RoushRS3 said:
it needs tot turn on and then immediately turn off, and it does not do that.
If you look at the code for my garage door node, mine does that. Everything for that is handled by the node This is the code in the main loop that does that:
//If the relay is on, shut it off if ( digitalRead( DOOR_ACTUATOR_RELAY ) == 1) { relayOff(); }In the relayOff method the relay is shut off and then informs the controller that it has been shut off:
/** * relayOff - Used to turn off the door opener relay after the TOGGLE_INTERVAL */ void relayOff() { digitalWrite( DOOR_ACTUATOR_RELAY, RELAY_OFF ); //Added this to tell the controller that we shut off the relay send( msgOpener.set(0) ); } //End relayOffSo on the controller, you should see the switch turn on, and then immediately shut off.