fhem mqtt_bridge

Begonnen von bend94, 09 April 2020, 08:44:41

Vorheriges Thema - Nächstes Thema

bend94

Hi all,

I am using fhem with mqtt.
All my devices have a mqtt_bridge.

i would like to know is it possible to disable mqtt publish from fhem by cli for a while and then be able to reactivate it?
Thanks

jbraeu

mqtt server eintrag in fhem.cfg auskommentieren?

bend94

Hi
sorry i don't speak Dutch ! can you reply in English please ?
i don't understand your reply

thx

bend94

please find my fhem.cfg

best regards

bend94

in fact, my issue is :

each time when my python script publish a message to fhem.
I don't know why but fhem each time it receives mqtt message , it re-publish another mqtt message

how can i avoid to re-publish from fhem ?

thanks in advance

ToKa

Hi Bend,

you have to set the attribute "mqttForward" in every device to "none". In that case the received message isn't forwarded (re-published).

Kind regards
Torsten
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight

rudolfkoenig

Zitatsorry i don't speak Dutch ! can you reply in English please ?
I like your humor.

Note: the MQTT module is not as actively supported as the MQTT2* ones, the same is true for MQTT_GENERIC_BRIDGE vs. MQTT_BRIDGE.
As far as I see neither MQTT nor MQTT_BRIDGE have any disable capabilities, as opposed to MQTT2* and MQTT_GENERIC_BRIDGE.
I recommend upgrading to these modules.

@ToKa: I found the mqttForward attribute only in MQTT_GENERIC_BRIDGE, whereas bend94 is using MQTT_BRIDGE.
Am I missing something?

ToKa

Hi Rudi,

no you are right. I didn't realized the missing "generic"  :-[

Regards
Torsten
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight

bend94

hi

i am not sure to really understand.
In my config i create for each object a MQTT_BRIDGE like this:
define mqtt_pirsalon MQTT_BRIDGE pirsalon

so you want me to used instead that :

define mqtt_salon MQTT2_BRIDGE pirsalon
or
define mqtt_salon MQTT_GENERIC_BRIDGE pirsalon

it is correct ?
thanks

ToKa

Hi,

you should use MQTT_GENERIC_BRIDGE instead of MQTT_BRIDGE.

Regards
Torsten
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight