Page 1 of 1

Custom sensors not publishing status to mqtt domoticz/out

Posted: Friday 08 April 2022 15:04
by calania
Hello! A few days ago I decided to update and completely reinstall Domoticz ( version 2022.1). It has so far worked nicely but I have encountered a issue. I have a few customs sensors (type general) that I send value to using mqtt. This works without issue and Domoticz updates the value without problem. The issue however is that Domoticz then doesn't seems to be publishing the device change to the domoticz/out topic. Is this a known issue? It seems to be working for all the other sensors except for theses custom sensors. Any ideas?

Re: Custom sensors not publishing status to mqtt domoticz/out

Posted: Friday 08 April 2022 15:45
by jvdz
It is a known feature to avoid an endless loop of messages. I think you can set it in the mqtt hardware definition to send anyways... Just check there.

Re: Custom sensors not publishing status to mqtt domoticz/out

Posted: Friday 08 April 2022 16:02
by calania
Disabling the "Prevent loop" did indeed fix the issue for me. So thanks for that! I however don't really understand how Domoticz publishing the status would start a loop. Could you explain how this loop would start?

Re: Custom sensors not publishing status to mqtt domoticz/out

Posted: Friday 08 April 2022 21:45
by FireWizard
Hi @calania,

For a brief explanation, see viewtopic.php?p=280055#p280055

Regards