logo elektroda
logo elektroda
X
logo elektroda

[Solved] Syncing WiFi Mini Switch Module with Tasmota SwitchMode 1 for Consistent Relay Control

rt400yuval 549 5
ADVERTISEMENT
  • #1 21237492
    rt400yuval
    Level 3  
    Hi,
    I have wifi mini switch module, and I set the switch input (its live input 230v) as TglChanOnTgl.
    My problem is that if I turn on the relay from the web and try to turn it on from the switch, the relay turns off (Toggle).
    I want that if the relay is on and someone tries to turn it on from the switch, it stays ON, so the relay and the switch will be synced.
    In Tasmota, I do this with SwitchMode 1:
    From Tasmota Docs:
    SwitchMode 1
    Set switch to follow mode (0 = OFF, 1 = ON)

    At the time when the circuit is closed, Tasmota will send ON and opening the circuit sends OFF.

    Tip

    You want to use SwitchMode 1 when connecting a toggle switch (e.g. a classic light switch) to your device. This way the "software switch" will mirror the state of the "hardware switch". If the real switch is in the "ON" position, the state in Tasmota is ON as well.

    Can anyone help with that ?

    Thanks,
    Yuval
  • ADVERTISEMENT
  • #2 21237879
    p.kaczmarek2
    Moderator Smart Home
    I am not sure if I understand exactly, because TglChannelOnToggle is a feature, and not the bug, but if you want to just follow the state of physical switch, then you can use either dInput or dInput_n pin role.

    Keep in mind that using digital input roles will make it impossible to toggle light remotely... it will just copy value from the switch to target relay.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21237917
    rt400yuval
    Level 3  
    >>21237879
    I will explain, I need the switch to be synchronized according to the state of the relay.
    For example, the switch is in the OFF position and I turned on the relay (via WEB, etc.), then if I press the switch (it will change switch state to ON), then it will actually not light through because the relay is already in the ON position.
    The circuit breaker should be synchronized according to the relay, not the other way around.
  • ADVERTISEMENT
  • Helpful post
    #4 21237950
    p.kaczmarek2
    Moderator Smart Home
    Very well, so does digital input approach works for you?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 21238224
    rt400yuval
    Level 3  
    >>21237950
    Thanks...
    I set it now and it does what I am looking for.
  • #6 21238238
    rt400yuval
    Level 3  
    I set dinput instead ToggleAll
ADVERTISEMENT