This object is in archive! 

Create a Virtual Touch Sensor or Impulse Switch

Henrik Andersson shared this question 7 years ago
Need Answer

Hi,


I want to create a virtual touch sensor or "impulse switch". I.e. I want

some sort of virtual device that does NOT toggle between On and Off.

Preferably it should not have any state at all. I just want to use it to

trigger a rule every time the sensor or switch is pressed.


Zipato support says that "[t]o achieve this you will need to have actuator and control device both added to your controller."


How would I create this?

Best Answer
photo

Henrik,


You can easily achieve that with either a virtual switch or a virtual sensor. You will have to set up a rule to make it momentary though since there is no "momentary virtual switch" available to add in zipato yet.


You would have to add a rule which would say WHEN momentary Switch = ON, WAIT for 2 or 3 seconds, ACTION TURN OFF momentary switch.

Replies (1)

photo
1

Hi Henrik,


I guess I don't fully understand what you meant. You just cannot have a device or variable that does not have any state, no programming language works without events and states, and at least you need a binary state.


With that being said, I don't think you need a virtual sensor or switch in order to start a rule when a sensor or switch is pressed, if you have a switch or sensor already added to the the system (regardless which sensor you are using to connect to it) it already has events, in case of the switch it should have at least ON, OFF and ANY.


Would you mind telling me wich devices are you trying to use in this rule?

photo
1

I think he needs some thing to simulate the momentary switch (push button)

Which has ON state while pressed and return back to OFF state when released

Example of that:

Buttons of tv remote control .. they return back to original state automatically after releasing

So, we need something to simulate that in zipato

photo
1

Yes Abdalrahman that is what I am looking for! Just like Alberto says of course it needs a state. What I mean is that it should not toggle state. I want to use it e.g. to set (run) a scene. In this scenario I don't want the push button to indicate that the scene is "on" since someone might have changed the status of one or more devices set by the scene.


Do you know if this can be achieved using some virtual device?

photo
2

Henrik,


You can easily achieve that with either a virtual switch or a virtual sensor. You will have to set up a rule to make it momentary though since there is no "momentary virtual switch" available to add in zipato yet.


You would have to add a rule which would say WHEN momentary Switch = ON, WAIT for 2 or 3 seconds, ACTION TURN OFF momentary switch.

photo
Leave a Comment
 
Attach a file