MQTT issue? Change of text sensor not published

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
wimd1908
Posts: 2
Joined: Tuesday 08 March 2016 22:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: BE
Contact:

MQTT issue? Change of text sensor not published

Post by wimd1908 »

Hi,

I noticed that an change of text sensor (in my case with a lua script event) is not published on domoticz/out.

Is there anything in my settings that I overlooked?


My work around for this is to have an extra switch sensor that changes state together with the change of the text sensor and use node red to trigger a 'getdeviceinfo' command but have a 2 seconds delay with this work around.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: MQTT issue? Change of text sensor not published

Post by waaren »

wimd1908 wrote: Thursday 03 January 2019 22:25 I noticed that an change of text sensor (in my case with a lua script event) is not published on domoticz/out.
Is there anything in my settings that I overlooked?
text sensors are not published
My work around for this is to have an extra switch sensor that changes state together with the change of the text sensor and use node red to trigger a 'getdeviceinfo' command but have a 2 seconds delay with this work around.
Much quicker would be to send a /json.htm?type=command&param=udevice&idx=<ix of custom sensor>&nvalue=0&svalue=YourText from a script or use os.execute with the mosquitto_pub command.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
wimd1908
Posts: 2
Joined: Tuesday 08 March 2016 22:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: BE
Contact:

Re: MQTT issue? Change of text sensor not published

Post by wimd1908 »

Thanks for the tip.
The addition switch I have is based on earlier and similar issue with MySensors.
With the os.execute command I don't have any delays yet.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest