Overview Shelly Plus 2 PM relay

The Shelly Plus 2 PM contains two relays that can be switched separately, with power and energy measurement per channel. This function block is used when the device is operated as a relay in the device menu. For operation as a roller shutter drive there is the separate block Shelly Plus 2 PM 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 W Present active power in watts.
P2 Relay 2 power W Present active power in watts.
E1 Relay 1 energy Wh Energy meter reading of channel 1 in watt hours.
E2 Relay 2 energy Wh Energy meter reading of channel 2 in watt hours.
AI Addon analogue input Voltage at the analogue input of the addon. Only present when the addon is enabled.
DI Addon digital input State of the digital input of the addon. Only present when the addon is enabled.
T1 Addon temperature 1 Temperature of the first DS18B20 sensor, or of the DHT22 if that one is selected. Only present when the addon is enabled.
T2 Addon temperature 2 Temperature of the second DS18B20 sensor. Only with the setting "+Addon DS18B20".
T3 Addon temperature 3 Temperature of the third DS18B20 sensor. Only with the setting "+Addon DS18B20".
F1 Addon humidity in % Relative humidity of the DHT22 sensor. Only with the setting "+Addon DHT22"; the output then takes the place of T2.

Parameters


MQTT topic Topic of the device, exactly as in the MQTT settings of the device. Example: shellyplus2pm-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.

Addon Evaluation of the optional Shelly addon. None hides the additional outputs. +Addon DS18B20 shows three temperature outputs, +Addon DHT22 one temperature and one humidity output.
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.