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.
MQTT issue? Change of text sensor not published
Moderators: leecollings, remb0
- 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
text sensors are not published
Much quicker would be to send a /json.htm?type=command¶m=udevice&idx=<ix of custom sensor>&nvalue=0&svalue=YourText from a script or use os.execute with the mosquitto_pub command.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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest