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

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Eucli090
Posts: 4
Joined: Sunday 15 September 2024 10:49
Target OS: Linux
Domoticz version: 2024.7
Contact:

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

Post 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.
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Eucli090
Posts: 4
Joined: Sunday 15 September 2024 10:49
Target OS: Linux
Domoticz version: 2024.7
Contact:

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

Post 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?
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Eucli090
Posts: 4
Joined: Sunday 15 September 2024 10:49
Target OS: Linux
Domoticz version: 2024.7
Contact:

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

Post 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
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: RonkA and 1 guest