From e764329c2633a4ea18e65d9b090ce0592b5d10a5 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 6 Dec 2020 11:18:28 +0000 Subject: [PATCH] 10_MQTT2_DEVICE.pm: better getList documentation (Forum #116477) git-svn-id: https://svn.fhem.de/fhem/trunk@23299 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_MQTT2_DEVICE.pm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fhem/FHEM/10_MQTT2_DEVICE.pm b/fhem/FHEM/10_MQTT2_DEVICE.pm index d9ce44acf..3dbee6754 100644 --- a/fhem/FHEM/10_MQTT2_DEVICE.pm +++ b/fhem/FHEM/10_MQTT2_DEVICE.pm @@ -944,16 +944,17 @@ zigbee2mqtt_devStateIcon255($;$$) disabledForIntervals
-
  • getList cmd [topic|perl-Expression] ...
    - When the FHEM command cmd is issued, publish the topic, wait for the - answer (the specified reading), and show it in the user interface. - Multiple triples can be specified, each of them separated by newline, the - newline does not have to be entered in the FHEMWEB frontend.
    +
  • getList cmd reading [topic|perl-Expression] ...
    + When the FHEM command cmd is issued, publish the topic (and optional + message, which is separated by space from the topic), wait for the answer + which must contain the specified reading, and show the result in the user + interface.
    + Multiple triples can be specified, each of them separated by newline. Example:
      attr dev getList\
        temp temperature myDev/cmd/getstatus\
    -     hum hum myDev/cmd/getStatus +     hum humReading myDev/cmd/getHumidity now

    This example defines 2 get commands (temp and hum), which both publish the same topic, but wait for different readings to be set.