Page 1 of 1

[SOLVED] Double Click on Fibaro single/double Switch FGS213

Posted: Saturday 10 October 2020 21:56
by zavjah
Hi folks,

I want to trigger a script by pressing a Double Click on a Fibaro FGS-213 switch? I've read here in the forum that something like item.state == "Double Click" can be sed in a script but all I get from my switch is either ON or OFF as a state.

I assume that there is a setting that needs to be used for this switch so it works, then according to the manual (https://manuals.fibaro.com/switch-2/) this switch can send this command. I cannot figure out what is needed that it works.

Has someone successfully set up such Fibaro switch to send double or tripple click and trigger a script by this?

Thx,
Zavjah

Re: Double Click on Fibaro single/double Switch FGS213

Posted: Friday 06 November 2020 11:05
by zavjah
Hi all,

it works :-). This is what I did:

1) parameter 20 set to "momentary switch"
2) parameter 28 set to what I want to be sent (double, tripple click or click&hold)
3) activate "accept new devices" in domoticz settings
4) do some clicks (which ever are specified in 1)

If everything is fine, new device "Unknown" is added to the node. Now it can be used eg in a scene to activate it.

Few aspects are important to know:
1) It takes some while, until the new device appears, so be patient
2) It needs lots of clicking in the scene setup, until the clicks are recognized correctly
3) This device always and only sends ON, never OFF. So the devices is always in ON state, but it doesn't care, then clicks are sent and thus scene activated. BUT because for this, clicks are only recognized as ON. One can though use "http://192.168.178.23:8080/json.htm?typ ... tchcmd=Off" to activate (On) or deactivate (Off) or toggle (toggle) the devices in the scene.

happy usage&coding,
zavjah