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
[SOLVED] Double Click on Fibaro single/double Switch FGS213
Moderator: leecollings
-
- Posts: 36
- Joined: Tuesday 13 August 2019 10:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
[SOLVED] Double Click on Fibaro single/double Switch FGS213
Last edited by zavjah on Saturday 21 November 2020 20:38, edited 1 time in total.
-
- Posts: 36
- Joined: Tuesday 13 August 2019 10:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
Re: Double Click on Fibaro single/double Switch FGS213
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
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
Who is online
Users browsing this forum: No registered users and 1 guest