HI
I'm using Fibaro FGS-223 to control my light.
I would like to start a scene, when I double tab the switch.
But how can I detect a double tab in domoticz?
thanks
gomsoo
Detect double tap
Moderators: leecollings, remb0
-
- Posts: 139
- Joined: Tuesday 06 September 2016 20:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: L stab
- Location: Belgium
- Contact:
Re: Detect double tap
Use switch A with a delay off 2 sec. Set this switch when you pressed your button the 1st time. Add a and function with switch A and your button. The result of thus will be high if you push your button in a time of 2 seconds
I don't know of it will work. Never tested it
Verstuurd vanaf mijn SM-G920F met Tapatalk
I don't know of it will work. Never tested it
Verstuurd vanaf mijn SM-G920F met Tapatalk
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: Detect double tap
double tap shoud send a notification to a specific zWave group....
check the group configuration in the 223 manual.
unfortunately groups works only within the zwave network
(d'n't know if there is the possibility to create a virtual zwave switch for that double tap config
)
check the group configuration in the 223 manual.
unfortunately groups works only within the zwave network

(d'n't know if there is the possibility to create a virtual zwave switch for that double tap config

The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
-
- Posts: 71
- Joined: Thursday 12 January 2017 13:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: all beta
- Location: NL - Pijnacker
- Contact:
Re: Detect double tap
I use a switch for two light (main ceiling light and additional ceiling spots).
- Click-1: Light-1 On
- Click-2: Light-2 On
- Click-3: Light-2 Off and so on Toggling.
- Click-Off: Light-1 Off and Light-2 Off.
Lua code:
- Click-1: Light-1 On
- Click-2: Light-2 On
- Click-3: Light-2 Off and so on Toggling.
- Click-Off: Light-1 Off and Light-2 Off.
Lua code:
Code: Select all
commandArray = {}
local LastSensorName = next(devicechanged)
local LightName = 'Lamp-1'
local LightState = tostring(otherdevices[LightName])
local Light2Name = 'Lamp-2'
local Light2State = tostring(otherdevices[Light2Name])
local Switch = 'MySwitchName'
local SwitchState = tostring(otherdevices[Switch])
if (LastSensorName == Switch) then
if (SwitchState == 'On') then -- Switch on Light-1
if (LightState == 'Off') then
commandArray[LightName] = 'On'
elseif (Light2State == 'Off') then -- Add Light-2
commandArray[Light2Name] = 'On'
else -- Toggle Light-2
commandArray[Light2Name] = 'Off'
end
else -- Switch all lights off
if (LightState == 'On') then
commandArray[LightName] = 'Off'
end
if (Light2State == 'On') then
commandArray[Light2Name] = 'Off'
end
end
end -- LastSensorName ==
return commandArray
- - - - - - - - - - -
2 x Domoticz on Raspberry Pi; 2 x RFXtrx433; Aeotec Z-Stick
KlikAanKlikUit ICS-2000 as Relay
Aeotec MultiSensors 6; Danfoss Z Thermostats 014G0013; Kaku Switches, Z-wave Switches
2 x Domoticz on Raspberry Pi; 2 x RFXtrx433; Aeotec Z-Stick
KlikAanKlikUit ICS-2000 as Relay
Aeotec MultiSensors 6; Danfoss Z Thermostats 014G0013; Kaku Switches, Z-wave Switches
Who is online
Users browsing this forum: No registered users and 1 guest