You can also use WebSend
WebSend [192.168.0.1] var1 1
Might be slightly faster
Regards
Phil K
Sent from Mail for Windows 10
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/849fa392-10a4-4974-badf-ccf14836fa20n%40googlegroups.com.
Websend is less reliable (but only if the QOS is set correctly and you are relying on 4 devices working correctly) but there is no way that it can be slower.
MQTT = MQTT > Router > Broker > Router > Device
WebSend = Command > Router > Device
So I did a test using WebSend to send var1 to another device with a rule to WebSend it back. The round trip was 176ms.
11:30:31.420 CMD: websend [192.168.2.120] var1 3
11:30:31.525 MQT: stat/ZigBee/RESULT = {"WebSend":"Done"}
11:30:31.596 MQT: stat/ZigBee/RESULT = {"Var1":"3"}
I then repeated with MQTT – round trip 442ms.
11:33:39.354 CMD: publish cmnd/Sonoff-Pump/var1 6
11:33:39.359 MQT: cmnd/Sonoff-Pump/var1 = 6
11:33:39.796 MQT: stat/ZigBee/RESULT = {"Var1":"6"}
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/8fc5ff84-f896-4eae-b14f-62d29b8cc4f5n%40googlegroups.com.
That’s the output from the single device which originated the message and the time (on the same device) of the return message sent from the second device. It was consistent over 10 messages
The original person asked how to set a variable on one device from another – not a longer series of commands
Sent from Mail for Windows 10
From: sfromis
Sent: 01 July 2021 12:18
To: TasmotaUsers
Subject: Re: How to set remotely a variable (RAM) on another Tasmota (same MQTT broker)?
It also looks like your output is merging console from sending and receiving device. Do not expect devices to be precisely synchronized at the millisecond level. I'm often seeing deviations over 0.5 seconds, both ways.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/a85d8646-19b4-4ddc-b08d-8da45cbe4929n%40googlegroups.com.
ON ENERGY#Power DO Var1 %value% ENDON
ON Var1#State>20 DO EVENT PublishTemp ENDON
ON Event#PublishTemp DO WebSend [192.168.1.2] Var1 %Var1% ENDON
I’m sorry but I’m not an idiot. I set up a rule on the second device to send the variable back to check the round trip time
This is the ‘publish’ rule
13:28:50.445 MQT: stat/Sonoff-Pump/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Length":54,"Free":457,"Rules":"on var1#state do publish cmnd/ZigBee/var1 %var1% endon"}
Sent from Mail for Windows 10
From: sfromis
Sent: 01 July 2021 12:44
To: TasmotaUsers
Subject: Re: How to set remotely a variable (RAM) on another Tasmota (same MQTT broker)?
You won't see the output of the remote command back on the original device, neither with WebSend nor with Publish.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/0b9cc543-8a01-49e8-a1ca-2c47dcd4adfdn%40googlegroups.com.