Distinguish manual action from switching via RM

In a Triggher Switch on.
How do I distinguish if I pressed the switch or if it was done by RM?
I don't have a button but a generic switch.
Thanks for the help

We may need a little more info to help you out... but I'll have a go anyway....

If when you say

You mean you have a Virtual Switch that is used when triggering RM rules and is also available for you to press in, say, a dashboard, then perhaps setting up a Virtual Button that turns the Virtual Switch on by pressing either buttons 1 and 2 could help solve you problem. If you had rules that turned the Virtual Switch on when either button 1 and 2 are pressed, then you could setup your rules to use button 1 and expose button 2 for manual control. Depending on exactly how you want to

will dictate what else you choose to setup. If manually looking at logs is enough, then enabling the right logging levels would probably be enough on the Virtual Button, otherwise, if you need to know for the purpose of other rules, then they could also be triggered by the appropriate button for the source of the trigger, i.e. button 1 or 2.

Simon

1 Like

If the switch itself has a input and that's what your talking about, some switches have "physical press event". You can also use that as the trigger rather than ON or OFF.

2 Likes

Sorry for the inaccuracy
I have a Sonoff 2 mini

the IF statement below
image

doesn't understand if the button was pressed manually
image
or if it was activated via rule.

image

How i can do it?

Is not a button so i don't have the Event Pushed, only ON/OFF

I know 99% the answer is i can't without using Variables, but ask is free :slight_smile:

1 Like

Wich Molels?
NOTE: EU models :slight_smile:

Doesn't matter where they come from its if the device and driver supports it. Look at the device events page from the driver. Then press the button and refresh the page. Then turn ON or OFF the device from the driver page and again refresh the events page. If it shows as different commands IE ON physical and ON digital then you can use that in RM as the event.

1 Like


How i can say Physical or digital in RM?

i can't find difference in RM :confounded:

Look for trigger "physical switch" it's only in triggers.

4 Likes

Thanks