Relays can be added to any powered (radio)module or gateway and should be controlled using the threshold indicated for Alarms (relay setting / unsetting should result from an alarm on a given value). Conflicting alarms should be solved by specifying a priority (how?). An Hysteresis is also needed on value and/or time (15 seconds fixed time for now). As this is urgent, I suggest the relays settings to be queried periodically by the gateway and enforced by itself (locally for now). The query result would be a list of sensors with associated threshold values, comparator and relay ID and value (1=set/0=unset) and priority (0,1,2,3...) if multiple sensors are affecting the same relay.
Relays can be added to any powered (radio)module or gateway and should be controlled using the threshold indicated for Alarms (relay setting / unsetting should result from an alarm on a given value). Conflicting alarms should be solved by specifying a priority (how?). An Hysteresis is also needed on value and/or time (15 seconds fixed time for now). As this is urgent, I suggest the relays settings to be queried periodically by the gateway and enforced by itself (locally for now). The query result would be a list of sensors with associated threshold values, comparator and relay ID and value (1=set/0=unset) and priority (0,1,2,3...) if multiple sensors are affecting the same relay.