detect double / multiple pulse

Moderator: leecollings

Post Reply
Duggel
Posts: 15
Joined: Friday 08 May 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

detect double / multiple pulse

Post by Duggel »

Hi,

I have two fibaro 2x1.5K relay switch, controlling lighting in hallway upstairs, hallway downstairs and outside.
All these lights can be controlled trough domoticz and by three wall switches (pulse).

Now I was wondering if it's possible to detect a double-pulse, for instance to turn on the light upstairs by double-pressing the downstairs light-switch.
The fibaro relay has the option to detect double-pulses when option 15 (shutter control) is activated, but I have no idea how to fetch/detect this in domoticz and if the shutter option can be used this way.

Thanx for the help.
Marc.
stlsparky
Posts: 9
Joined: Thursday 02 June 2016 1:12
Target OS: Linux
Domoticz version:
Contact:

Re: detect double / multiple pulse

Post by stlsparky »

This may help you. I found it on the vera forum. It is a solution to detect double taps and call a scene via lua
http://forum.micasaverde.com/index.php/ ... #msg273140
Duggel
Posts: 15
Joined: Friday 08 May 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: detect double / multiple pulse

Post by Duggel »

Thanks, this did help me a bit. Unfortunately detecting a double pulse coming from a hardware (wired) switch doesn't seem possible.
In this example they use a hardware z-wave switch. The switch sends the signal to (in this case) Vera. Then Vera is programmed to translate the press into an action.
In my case the pulse goes directly to a Fibaro relay and only the on/off status is send to Domoticz.

In the log I can see the light is switched twice. Maybe it's possible to let a lua script read the log and respond to that, but the light conencted to the pulse switch will blink when the switch is pressed twice.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest