From 4b420bb437d0e3985649319ea0618d881982c850 Mon Sep 17 00:00:00 2001
From: hexenmeister
@@ -3018,7 +3021,7 @@ __END__
MQTT2_CLIENT or MQTT2_SERVER.
The (minimal) configuration of the bridge itself is basically very simple. Definition: In the simplest case, two lines are enough: forceNEXT Only relevant for MQTT2_CLIENT or MQTT2_SERVER as IODev. If set to 1, MQTT_GENERIC_BRIDGE will forward incoming messages also to further client modules like MQTT2_DEVICE, even if the topic matches to one of the subscriptions of the controlled devices. By default, these messages will not be forwarded for better compability with autocreate feature on MQTT2_DEVICE. See also clientOrder attribute in MQTT2 IO-type commandrefs; setting this in one instance of MQTT_GENERIC _BRIDGE might affect others, too.MQTT_GENERIC_BRIDGE
- Only relevant for MQTT2_CLIENT or MQTT2_SERVER as IODev. If set to 1, MQTT_GENERIC_BRIDGE will forward incoming messages also to further client modules like MQTT2_DEVICE, even if the topic matches to one of the subscriptions of the controlled devices. By default, these messages will not be forwarded for better compability with autocreate feature on MQTT2_DEVICE. See also clientOrder attribute in MQTT2 IO-type commandrefs; setting this in one instance of MQTT_GENERIC _BRIDGE might affect others, too.
+
@@ -3165,8 +3168,8 @@ __END__
mqttDefaults
- Here is a list of "key = value" pairs defined. The following keys are possible:
+ mqttDefaults
+
Here is a list of "key = value" pairs defined. The following keys are possible:
mqttAlias
- This attribute allows readings to be mapped to MQTT topic under a different name.
+ mqttAlias
+
This attribute allows readings to be mapped to MQTT topic under a different name. Usually only useful if topic definitions are Perl expressions with corresponding variables or to achieve somehow standardized topic structures. Again, 'pub:' and 'sub:' prefixes are supported (For 'subscribe', the mapping will be reversed). @@ -3203,10 +3206,10 @@ __END__
mqttPublish
- Specific topics can be defined and assigned to the Readings(Format: <reading>:topic=<topic>).
+ mqttPublish
+
Specific topics can be defined and assigned to the Readings(Format: <reading>:topic=<topic>).
Furthermore, these can be individually provided with 'qos' and 'retain' flags.
- Topics can also be defined as Perl expression with variables ($reading, $device, $name, $base or additional variables as provided in mqttDefaults).
+ Topics can also be defined as Perl expression with variables ($reading, $device, $name, $base or additional variables as provided in mqttDefaults).
Values for several readings can also be defined together, separated with '|'.
If a '*' is used instead of a reading name, this definition applies to all readings for which no explicit information was provided.
Topic can also be written as a 'readings-topic'.
@@ -3244,7 +3247,7 @@ __END__
mqttSubscribe
This attribute configures the device to receive MQTT messages and execute corresponding actions.
The configuration is similar to that for the 'mqttPublish' attribute.
Topics can be defined for setting readings ('topic' or 'readings-topic') and calls to the 'set' command on the device ('stopic' or 'set-topic').
@@ -3281,22 +3284,22 @@ __END__
mqttForward
- This attribute defines what happens when one and the same reading is both subscribed and posted.
+ mqttForward
+
This attribute defines what happens when one and the same reading is both subscribed and posted.
Possible values: 'all' and 'none'.
If 'none' is selected, than messages received via MQTT will not be published from the same device.
The setting 'all' does the opposite, so that the forwarding is possible.
- If this attribute is missing, the default setting for all device types except 'dummy' is 'all'
- (so that actuators can receive commands and send their changes in the same time) and for dummies 'none' is used.
- This was chosen because dummies are often used as a kind of GUI switch element.
- In this case, 'all' might cause an endless loop of messages.
+ If this attribute is missing, the default setting for all device types except 'dummy' is 'all'
+ (so that actuators can receive commands and send their changes in the same time) and for dummies 'none' is used.
+ This was chosen because dummies are often used as a kind of GUI switch element.
+ In this case, 'all' might cause an endless loop of messages.
mqttDisable
- If this attribute is set in a device, this device is excluded from sending or receiving the readings.
If this attribute is set in a device, this device is excluded from sending or receiving the readings.
@@ -3417,8 +3420,8 @@ __END__ MQTT2_CLIENT oder MQTT2_SERVER.
Die (minimale) Konfiguration der Bridge selbst ist grundsätzlich sehr einfach.
- -Definition:
+ + Definition:Im einfachsten Fall reichen schon zwei Zeilen:
forceNEXT Nur relevant, wenn MQTT2_CLIENT oder MQTT2_SERVER als IODev verwendet werden. Wird dieses Attribut auf 1 gesetzt, gibt MQTT_GENERIC_BRIDGE alle eingehenden Nachrichten an weitere Client Module (z.b. MQTT2_DEVICE) weiter, selbst wenn der betreffende Topic von einem von der MQTT_GENERIC_BRIDGE überwachten Gerät verwendet wird. Im Regelfall ist dies nicht erwünscht und daher ausgeschaltet, um unnötige autocreates oder Events an MQTT2_DEVICEs zu vermeiden. Siehe dazu auch das clientOrder Attribut bei MQTT2_CLIENT bzw -SERVER; wird das Attribut in einer Instance von MQTT_GENERIC _BRIDGE gesetzt, kann das Auswirkungen auf weitere Instanzen haben.defmod mqttGeneric MQTT_GENERIC_BRIDGE [prefix] [devspec,[devspec]]
@@ -3555,22 +3558,22 @@ __END__
- Nur relevant, wenn MQTT2_CLIENT oder MQTT2_SERVER als IODev verwendet werden. Wird dieses Attribut auf 1 gesetzt, gibt MQTT_GENERIC_BRIDGE alle eingehenden Nachrichten an weitere Client Module (z.b. MQTT2_DEVICE) weiter, selbst wenn der betreffende Topic von einem von der MQTT_GENERIC_BRIDGE überwachten Gerät verwendet wird. Im Regelfall ist dies nicht erwünscht und daher ausgeschaltet, um unnötige autocreates oder Events an MQTT2_DEVICEs zu vermeiden. Siehe dazu auch das clientOrder Attribut bei MQTT2_CLIENT bzw -SERVER; wird das Attribut in einer Instance von MQTT_GENERIC _BRIDGE gesetzt, kann das Auswirkungen auf weitere Instanzen haben.
Für die überwachten Geräte wird eine Liste der möglichen Attribute automatisch um mehrere weitere Einträge ergänzt.
- Sie fangen alle mit vorher mit dem in der Bridge definierten Prefix an. Über diese Attribute wird die eigentliche MQTT-Anbindung konfiguriert.
+ Sie fangen alle mit vorher mit dem in der Bridge definierten Prefix an. Über diese Attribute wird die eigentliche MQTT-Anbindung konfiguriert.
Als Standardwert werden folgende Attributnamen verwendet: mqttDefaults, mqttAlias, mqttPublish, mqttSubscribe.
Die Bedeutung dieser Attribute wird im Folgenden erklärt.
mqttDefaults
- Hier wird eine Liste der "key=value"-Paare erwartet. Folgende Keys sind dabei möglich:
+ mqttDefaults
+
Hier wird eine Liste der "key=value"-Paare erwartet. Folgende Keys sind dabei möglich:
mqttPublish
+ mqttPublish
Hier werden konkrete Topics definiert und den Readings zugeordnet (Format: <reading>:topic=<topic>).
Weiterhin können diese einzeln mit 'qos'- und 'retain'-Flags versehen werden.
- Topics können auch als Perl-Expression mit Variablen definiert werden ($device, $reading, $name, $base sowie ggf. über mqttDefaults weitere).
+ Topics können auch als Perl-Expression mit Variablen definiert werden ($device, $reading, $name, $base sowie ggf. über mqttDefaults weitere).
'topic' kann auch als 'readings-topic' geschrieben werden.
Werte für mehrere Readings können auch gemeinsam gleichzeitig definiert werden,
indem sie, mittels '|' getrennt, zusammen angegeben werden.
@@ -3655,7 +3658,7 @@ __END__
mqttSubscribe
+ mqttSubscribe
Dieses Attribut konfiguriert das Empfangen der MQTT-Nachrichten und die entsprechenden Reaktionen darauf.
Die Konfiguration ist ähnlich der für das 'mqttPublish'-Attribut. Es können Topics für das Setzen von Readings ('topic' oder auch 'readings-topic') und
Aufrufe von 'set'-Befehl an dem Gerät ('stopic' oder 'set-topic') definiert werden.
@@ -3692,8 +3695,8 @@ __END__
mqttForward
- Dieses Attribut definiert was passiert, wenn eine und dasselbe Reading sowohl aboniert als auch gepublisht wird.
+ mqttForward
+
Dieses Attribut definiert was passiert, wenn eine und dasselbe Reading sowohl aboniert als auch gepublisht wird.
Mögliche Werte: 'all' und 'none'.
Bei 'none' werden per MQTT angekommene Nachrichten nicht aus dem selben Gerät per MQTT weiter gesendet.
Die Einstellung 'all' bewirkt das Gegenteil, also damit wird das Weiterleiten ermöglicht.
@@ -3707,8 +3710,8 @@ __END__
mqttDisable
- Wird dieses Attribut in einem Gerät gesetzt, wird dieses Gerät vom Versand bzw. Empfang der Readingswerten ausgeschlossen.
Wird dieses Attribut in einem Gerät gesetzt, wird dieses Gerät vom Versand bzw. Empfang der Readingswerten ausgeschlossen.