Can I include some switch logic on the SonOff SV

82 views
Skip to first unread message

Scott Suine

unread,
Sep 15, 2018, 6:43:49 AM9/15/18
to SonoffUsers
Hi,
I am trying to use a SonOff SV(Tasmota) to control my air conditioner - just turn on and off. The unit has a home automation switch that can be easily controlled by a relay.

However, the unit requests the really to toggle on the off or off then on in order to sync with the external control panel. An extract from the manual is here


HOME AUTOMATION SET UP.

Start system from external signal.

External signal to momentary de-energise relay ‘A’ and then energize relay ‘A’ .

Operating Logic.

a) A/C system has been started externally but is switched off from local from Wall Control pad A/C system is OFF. Relay contact ‘A’ closed. Therefore system is out of sync.

b) External signal is sent to start A/C system.

Relay ‘A’ is momentary de-energised (system now in sync).

Relay ‘A’ energized. A/C system starts.

NB. If testing. There is a five second delay between relay closing and system starting.


Stop system from external signal.

External signal to momentary energize relay ‘A’ and then de-energise. Operating Logic.

a) A/C system has been started from local Wall Control Pad.

A/C system is ON. Relay contact ‘A’ open. Therefore system is out of sync. b) External signal is sent to stop A/C system.

Relay ‘A’ is momentary energized (system is now in sync).

Relay ‘A’ de-energised. A/C system stops.



I know I can implement this functionality in a Home Assitant automation but was wondering if it can be implemented in the SonOff itself some how


thanks




Phil

unread,
Sep 15, 2018, 8:16:48 AM9/15/18
to SonoffUsers
Hi

By toggle do you mean switch on then off, rather than change the state from on to off?

If the former you can set a tasmota device to latch on for a period and then switch off by use of the Pulsetime command

and to turn off and turn back on again after a period you can use poweronstate


To simply change the state ie if on swicth off or if off switch on, there is the toggle option to apply to the power1 command that will control the relay

power1 0 or off
turns off
power1 1 or on
turns on
power1 2 or toggle
will toggle the state.
Reply all
Reply to author
Forward
0 new messages