Overview Shelly 2.5 relay

The Shelly 2.5 contains two relays that can be switched separately, with power measurement. This function block is used when the device is operated as a relay in the device menu, that is switching two independent loads. For operation as a roller shutter drive there is the separate block Shelly 2.5 roller shutter.

Inputs

S1 Switch 1 Switches the relay. The effect depends on the corresponding parameter, see below.
S2 Switch 2 Switches the relay. The effect depends on the corresponding parameter, see below.

Outputs

S1 Switch 1 status State of the push-button or switch 1 connected to the device.
S2 Switch 2 status State of the push-button or switch 2 connected to the device.
R1 Relay 1 status Actual state of the relay 1 in the device. Is also updated when switching via the Shelly app or the push-button at the device.
R2 Relay 2 status Actual state of the relay 2 in the device. Is also updated when switching via the Shelly app or the push-button at the device.
P1 Relay 1 power Present active power in watts.
P2 Relay 2 power Present active power in watts.

Parameters


MQTT topic Topic of the device. Devices of the first generation automatically prepend shellies/, this part has to be entered here as well. Example: shellies/shellyswitch25-AABBCCDDEEFF

Switch 1 Behaviour of the corresponding input. Toggle (rising edge) for push-buttons: every change from 0 to 1 toggles the relay. Toggle (1/0) for switches and for control from the program: the value is applied directly.

Switch 2 Behaviour of the corresponding input. Toggle (rising edge) for push-buttons: every change from 0 to 1 toggles the relay. Toggle (1/0) for switches and for control from the program: the value is applied directly.
In addition to the outputs listed, the command generate addresses creates an address named timeout. It is set to 1 when the device has not sent a message for a longer period of time.

See also MQTT devices - general.
See also general parameters of all function blocks.