diff --git a/fhem/CHANGED b/fhem/CHANGED index 4e8e0abc3..856699774 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 10_MQTT_BRIDGE: fix comandref $device - feature: 74_AMADDevice: add media support for YouTubeKids - bugfix: 74_AMADautomagicFlowset_4.0.9.xml: fix restore volume bug - feature: 73_GardenaSmartBridge: add syntax check for disabledForIntervals diff --git a/fhem/FHEM/10_MQTT_BRIDGE.pm b/fhem/FHEM/10_MQTT_BRIDGE.pm index 5ffce2a7c..3b8d84962 100644 --- a/fhem/FHEM/10_MQTT_BRIDGE.pm +++ b/fhem/FHEM/10_MQTT_BRIDGE.pm @@ -247,7 +247,7 @@ sub onmessage($$$) {

attr <name> subscribeSet [{Perl-expression}] [qos:?] [retain:?] <topic>
configures a topic that will issue a 'set <message> whenever a message is received
QOS and ratain can be optionally defined for this topic.
- Furthermore, a Perl statement can be provided which is executed when the message is received. The following variables are available for the expression: $hash, $name, $topic, $message, $devname (linked device). Return value decides whether reading is set (true (e.g., 1) or undef) or discarded (false (e.g., 0)). + Furthermore, a Perl statement can be provided which is executed when the message is received. The following variables are available for the expression: $hash, $name, $topic, $message, $device (linked device). Return value decides whether reading is set (true (e.g., 1) or undef) or discarded (false (e.g., 0)).

Example:
attr mqttest subscribeSet {fhem("do somethin")} /topic/cmd @@ -258,7 +258,7 @@ sub onmessage($$$) { configures a topic that will issue a 'set <reading> <message> whenever a message is received. see above for Perl-Expression/QOS/retain

Example:
- attr mqttest subscribeSet_cmd {if ($message eq "config") fhem("set $devname getconfig");; 0} /topic/cmd + attr mqttest subscribeSet_cmd {if ($message eq "config") fhem("set $device getconfig");; 0} /topic/cmd