Page 1 of 1

MQTT, added option to specify devices to be published to MQTT

Posted: Sunday 15 September 2024 11:11
by Eucli090
Version : 2024.7
Platform: Ubuntu 22.04.4 LTS
Plugin: MQTT Client Gateway with LAN interface
Description:

Hello, I come to you to understand the new mode added on version 2024.1 "MQTT, added option to specify devices to be published to MQTT"

I use the MQTT Client Gateway with LAN interface Configuration plugin. In this plugin I would like to avoid activating the Prevent Loop false option, I understood with the new version of the plugin we could choose the messages that will be published on domoticz/out.

Unfortunately no matter what I do I have the impression that it does not change anything.

I tried with prevent loop: true, and I added my peripherals but nothing comes out on domotic/out.

Re: MQTT, added option to specify devices to be published to MQTT

Posted: Sunday 15 September 2024 21:59
by waltervl
Here is the instruction https://www.domoticz.com/wiki/MQTT#Filt ... _Topic_Out

Please post a screenshot of the screen:
Setup - Hardware - Setup button of your MQTT gateway

Re: MQTT, added option to specify devices to be published to MQTT

Posted: Monday 16 September 2024 7:55
by Eucli090
Image
Image

I tried selecting all or nothing, but nothing works, I don't see any difference. I have a lot of virtual devices, is that where it comes from?

Re: MQTT, added option to specify devices to be published to MQTT

Posted: Monday 16 September 2024 8:46
by waltervl
I don't see images, only the text image..
But it depends how those virtual devices are updated. Do you do that with MQTT, script, Http JSON API calls?

Edit: thinking back, you dont see any Domoticz action in MQTT. Is your MQTT setup correctly? Do you see in the domoticz log that it connects to your MQTT server? Do you see in the MQTT server log it gets connection with the Domoticz server?

Re: MQTT, added option to specify devices to be published to MQTT

Posted: Monday 16 September 2024 13:29
by Eucli090
I think I expressed myself badly at the beginning sorry ...

I have outputs on domoticz/out, but I would like to choose the outputs thanks to the new option on MQTT

Domoticz and the center of everything, I use HA to make a dashboard. My light button works well when the domoticz mqtt is on prevent loop false.

for example: Ha sends to domoticz idx 66 on on domoticz/in
domoticz sends it back to me on domoticz/out/66

this allows me if I have conditions or other to know which switch is really on or off.

Now I would like to avoid using proven loop false because on certain devices it creates a loop for me.

I saw that an option had been added on domoticz. and I told myself that it must work for my use.

My MQTT works well, the problem no matter what devices I add in Hardware controller: MQTT

it doesn't change anything, if I do prevent loop: true, and I add lum (idx 66) nothing comes out on domoticz/out

if I put prevent loop: false it works again but it's not optimized

Re: MQTT, added option to specify devices to be published to MQTT

Posted: Monday 16 September 2024 13:35
by waltervl
I suppose this filter only works when something from Domoticz is being updated.
What happens if you switch ID 66 from Domoticz User interface? As this is the normal use case for Domoticz...