Use input signal to define true device state

6 views
Skip to first unread message

Salatiel Filho

unread,
Nov 17, 2022, 12:22:25 PM11/17/22
to sonof...@googlegroups.com
Hi everyone, I am starting to poke around tasmota and I have the following scenario that I would be glad if anyone could help me to achieve.

I have one esp8266 running the latest tasmota and one relay connected to gpioX. I can toggle that relay just fine, and tasmota webui can display the relay state just fine...
That relay must turn on one 868Mhz control for 2 seconds only and stop. I suppose here it is just a matter of using PulseTime. That 868Mhz control will toggle a remote device and the status of that device will feed as input for gpioY. So despite if the relay is on or off, the truly device state would be the one provided by gpioY.
And the webUI should be able to display the real state of the device instead of the relay state.
Is this achievable using only tasmota standalone?( No mqtt or HA). What should I do?
 I am really newbie using tasmota, so that maybe easy, but maybe not.

Thanks!

Philip Knowles

unread,
Nov 17, 2022, 2:07:37 PM11/17/22
to Salatiel Filho, sonof...@googlegroups.com

I suspect that you aren’t using an input to do the toggling. If that’s the case connect the RF output to the switch input GPIO and call it Switch 1. Add Relay1 as a ‘virtual relay’ to an unused GPIO (not the real one). Call the GPIO with the real relay Relay2 and connect it to the RF input.

Then, in console, type

pulsetime2 20

webbutton1 RF State

webbutton2 Toggle RF

 

If you are using a switch to do the toggling pick a momentary pushbutton but configure it as Switch2. The output will then only stay on as long as the button is pressed.

 

Sent from Mail for Windows

--
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/CAGmni9o3y9zkj2fm-H58mgL3ww-rDqUWdsjeXoDHqNRm5KGHiA%40mail.gmail.com.

 

Reply all
Reply to author
Forward
0 new messages