shellies/{{device}}/relay/0/power
shellies/{{device}}/relay/0
Add
on the properties section. On the dialog, enter the property identifier (i.e., power or relay), select the Device Topic
source, fill the Topic
, and configure the payload, as shown in the following picture:{{payload}}
, which is a placeholder that will be replaced with the contents received from the configured source. In this case, from the MQTT topic configured. So, any information that is received there is saved automatically in each device property. Cool!shellies/shellyplug-s-0C5F11/relay/0
while the topic used in the configuration is shellies/
{{device}}
/relay/0
. In this case, it is used a placeholder with the device
name, so it can capture any device identifier, but it is possible to use the standard single-level MQTT wildcard '+' like shellies/+/relay/0.
Use topic placeholders like {{device}} or single-level wildcards (+) to capture data from multiple devices.
:
to indicate that the payload must be replaced with the contents returned from the function name specified in the following. toBoolean
function is called with the payload contents, and the final payload will be replaced with the value returned by the function. This configuration must be placed inside the Payload
configuration on the Property dialog, as shown in the following picture:true
/false
after processing its payload with the toBoolean
function described above.