relay question


koal01
 

Howard,
I intend to use relay 4 to monitor heating in the box when it's freezing.
This relay was designed for heating an observatory but  i'm not going to use it in the near future.
The relay to be used seems to be this one :
#define HEAT_RELAY 4                // Relay# for heating

What does the parameter _MEMORY_ON/OFF in the Power panel section means in the config.h ?

Thanks
Koal01


Howard Dutton
 
Edited

On Thu, Jan 16, 2020 at 02:27 PM, koal01 wrote:
I intend to use relay 4 to monitor heating in the box when it's freezing.
This relay was designed for heating an observatory but  i'm not going to use it in the near future.
The relay to be used seems to be this one :
#define HEAT_RELAY 4                // Relay# for heating
Relay 4 isn't specific to anything.  The HEAT_RELAY in this case just happens to be #4, it could be any supported relay.  Observatory or box shouldn't really matter the feature is for thermostatic heat control.

What does the parameter _MEMORY_ON/OFF in the Power panel section means in the config.h ?
The memory setting if enabled preserves the relay state across power cycles.  If you turn the relay on and the power is lost... when the power comes back on it'll be turned on again.

You should take a look with the OCS version 2... the Config.h file is much more intuitive.

// POWER PANEL ---------------------------------------------------------------------------------------------------------------------
#define POWER                          ON //    OFF, ON to enable the OCS website power panel display.                        Option

#define POWER_DEVICE1_RELAY             1 //    OFF, n. Where n=1..14 (Relay#) with _NAME below.                              Option
#define POWER_DEVICE1_MEMORY          OFF //    OFF, ON to enable memory (across power cycles) for this relay state.          Option
#define POWER_DEVICE1_NAME "RELAY 1"

#define POWER_DEVICE2_RELAY             2 //    OFF, n. Where n=1..14 (Relay#) with _NAME below.                              Option
#define POWER_DEVICE2_MEMORY          OFF //    OFF, ON to enable memory (across power cycles) for this relay state.          Option
#define POWER_DEVICE2_NAME "RELAY 2"
.
etc.
.

// THERMOSTAT PANEL ----------------------------------------------------------------------------------------------------------------

// See Thermostat.ino for user inside temperature and humidity sensor functions
#define THERMOSTAT                    OFF //    OFF, ON to enable the OCS website thermostat panel display.                   Option
#define HEAT_RELAY                    OFF //    OFF, n. Where n=1..14 (Relay#) for indoor heat.                               Option
#define COOL_RELAY                    OFF //    OFF, n. Where n=1..14 (Relay#) for cooling/venting.                           Option
#define THERMOSTAT_HUMIDITY           OFF //    OFF, ON displays indoor humidity.                                             Option

// LIGHTING PANEL ------------------------------------------------------------------------------------------------------------------
#define LIGHT                         OFF //    OFF, ON to enable the OCS website lighting panel display.                     Option
#define LIGHT_WRW_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Warm room white lights.                    Option
#define LIGHT_WRR_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Warm room red lights.                      Option
#define LIGHT_ORW_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Observing room white lights.               Option
#define LIGHT_ORR_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Observing room red lights.                 Option
#define LIGHT_OUTSIDE_RELAY           OFF //    OFF, n. Where n=1..14 (Relay#) for Outside flood.                             Option
#define LIGHT_SW_SENSE                OFF //    OFF, n. Where n=1..6 (Sense#) for switch to turn WRW lights on/off.           Option