Re: Combine commands to Tasmota - Sonoff's

114 views
Skip to first unread message

Philip Knowles

unread,
Apr 3, 2022, 5:23:03 AM4/3/22
to Paul Reed, TasmotaUsers
Look at the Rules page. It explains how to use Backlog


From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Paul Reed <paul...@gmail.com>
Sent: Sunday, April 3, 2022 9:46:29 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Combine commands to Tasmota - Sonoff's
 
Hi, I'm a new Tasmota user, and using node-RED to send commands via MQTT to my sonoff R1's. All works well, but I have a sonoff in my greenhouse which is used to switch on/off a watering system.
Unfortunately the RSSI is pretty low and sometimes the 'OFF' msg is delayed (causing flooding!!!), so instead of sending separate ON and OFF messages, I would like to send just one MQTT message that tells the sonoff to;
Switch ON -> wait 5 minutes -> Switch OFF
Is that possible?

--
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/2af33f2a-f5f3-4f3b-b296-a3740a265fe3n%40googlegroups.com.

Philip Knowles

unread,
Apr 3, 2022, 5:30:01 AM4/3/22
to Paul Reed, TasmotaUsers
You could also use Blinkcount 1 Blinktime 3000. The command would then be power1 3 which would turn the output on for 5 minutes then automatically turn off
From: Philip Knowles <knowles...@gmail.com>
Sent: Sunday, April 3, 2022 10:22:57 AM
To: Paul Reed <paul...@gmail.com>; TasmotaUsers <sonof...@googlegroups.com>
Subject: Re: Combine commands to Tasmota - Sonoff's
 

Paul Reed

unread,
Apr 3, 2022, 6:34:45 AM4/3/22
to TasmotaUsers
Sorry, could you give me an example of how that should be structured? I've read (but don't understand) the rules section.
You suggested "Blinkcount 1 Blinktime 3000", where is that added? there isn't a 'rules' section in the tasmota config to add it.

Philip Knowles

unread,
Apr 3, 2022, 6:40:52 AM4/3/22
to Paul Reed, TasmotaUsers
Blinkcount is on the Commands page as is Backlog. You need to read the docs. It explains how to create rules in Console
Sent: Sunday, April 3, 2022 11:34:45 AM
To: TasmotaUsers <sonof...@googlegroups.com>

Paul Reed

unread,
Apr 3, 2022, 8:10:25 AM4/3/22
to TasmotaUsers
Oh, I understand now!
Set the MQTT msg topic to 'cmnd/sonoff2/Backlog'
...and the msg payload to 'Power ON; Delay 3000; Power OFF'

Works perfectly.
Thanks

Reply all
Reply to author
Forward
0 new messages