I just integrated this Scene Controller on my VeraPlus (all good) I find it abstract to make it work a bit “like a switch”. I found 1 topic on the ZRC90 but it was missing a bit of logic to me.
So I created a sensor and “mapped” all buttons with their “single” and “double” click action, totalling to 16 combinations.
Eg. use-case
1 click on button-1 should make a light go ON
1 click again on THAT SAME button should turn the light off.
That is where the problem lies, I have a solution where I can turn the lamp OFF when I press eg. button 8 twice. Consider that a bit like an “OFF” switch. I wonder how to build my logic so it would be able to act a bit like a “pulse” ON-OFF-ON-OFF switch.
I’m not seeing it ;-(
Any golden tip ?
*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
Version: 3.8-20262 config 20190 cdata 20045 ui 20190 pluginDevice 6374 LuaXP not loaded
System: Vera version 1.7.4453 (pre-7.30) on Sercomm G450 ID nil (unknown); loadtime 1605548126/1605548137; systemReady 1605548167
Env: Lua 5.1; JSON dkjson 1.2; UnsafeLua=nil/true
Local time: 2020-11-16T18:36:21+0100; DST=0; Rumst, Flanders Belgium; formats %m/%d/%Y %H:%M:%S
House mode: plugin 1; system 1; tracking on
Sun data: { "source": "int", "civdawn": 1605507867, "nautdawn": 1605505441, "sunset": 1605542004, "nautdusk": 1605546635, "stamp": 2020321, "latitude": 51.1, "astrodusk": 1605548977, "longitude": 4.417, "civdusk": 1605544208, "astrodawn": 1605503098, "sunrise": 1605510071 }
Geofence: not running
RS: 1603605927,1604038587,1604185243,1605156827,1605535824,1605536067,1605536713,1605536904,1605539533,1605548137
NS: 0:X,1589321640:U,1598767740:D,1598767800:U
************************************************************************************************************************************
ZRC90-1 Scenes (#6514)
Version 20045.32 11/16/20 18:04:25
Message/status: Not tripped
Condition group "ZRC90-1 Control" (AND) false as of 15:51:31 <root>
&-T-group "Button-1-Single" (AND) TRUE as of 18:04:48 <grpz0vo0fa>
| &-T-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,1 [15 => 1 at 18:04:48; T/T as of 18:04:48/18:04:48] <condz0vscp2>
| &-T-group "grpz0zlh6y" (OR) TRUE as of 18:04:48 <grpz0zlh6y>
| | |-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vt3cm>
| | |-T-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,1 [15 => 1 at 18:04:48; T/T as of 18:04:48/18:04:48] <condz0zlv9x>
&-F-group "Button-1-Double" (AND) false as of 16:02:42 <grpz0vo1yw>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,2 [15 => 1 at 18:04:48; F/F as of 16:02:42/16:02:42] <condz0vubht>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vuuxe>
&-F-group "Button-2-Single" (AND) false as of 17:54:16 <grpz0vo31l>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,3 [15 => 1 at 18:04:48; F/F as of 17:54:25/17:54:25] <condz0vvlh1>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vvmht>
&-F-group "Button-2-Double" (AND) false as of 16:07:53 <grpz0vovcf>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,4 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vwuaw>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vwuoy>
&-F-group "Button-3-Single" (AND) false as of 16:11:18 <grpz0vpldk>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,5 [15 => 1 at 18:04:48; F/F as of 17:52:18/17:52:18] <condz0vwvll>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vwvrh>
&-F-group "Button-3-Double" (AND) false as of 16:07:53 <grpz0vpmau>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,6 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vwwfl>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vwwjy>
&-F-group "Button-4-Single" (AND) false as of 16:11:08 <grpz0vpnrw>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,7 [15 => 1 at 18:04:48; F/F as of 16:11:18/16:11:18] <condz0vwxc3>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vwxgg>
&-F-group "Button-4-Double" (AND) false as of 16:07:53 <grpz0vpopk>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,8 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vwy49>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vwy8e>
&-F-group "Button-5-Single" (AND) false as of 16:07:53 <grpz0vpprd>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,9 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vwz1o>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vwz5e>
&-F-group "Button-5-Double" (AND) false as of 16:07:53 <grpz0vpr2d>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,10 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vx01n>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vx05q>
&-F-group "Button-6-Single" (AND) false as of 16:07:53 <grpz0vprh5>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,11 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vx1e6>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vx1hg>
&-F-group "Button-6-Double" (AND) false as of 16:07:53 <grpz0vr7xi>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,12 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vx24b>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vx28f>
&-F-group "Button-7-Single" (AND) false as of 16:07:53 <grpz0vreq1>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,13 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vxbps>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vxcbb>
&-F-group "Button-7-Double" (AND) false as of 16:07:53 <grpz0vrf45>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,14 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vxctj>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vxd1z>
&-F-group "Button-8-Single" (AND) false as of 18:04:39 <grpz0vrffv>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,15 [15 => 1 at 18:04:48; F/F as of 18:04:48/18:04:48] <condz0vxdqr>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vxdvr>
&-F-group "Button-8-Double" (AND) false as of 16:07:53 <grpz0vrfqi>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene change ,16 [15 => 1 at 18:04:48; F/F as of 16:07:53/16:07:53] <condz0vxemr>
| &-F-service ZRC90-1 (6513) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update [1605546288 => 1605548127 at 18:35:38; F/F as of 18:04:49/18:04:49] <condz0vxer1>
Activity grpz0vo0fa.false
Device X-Lamp (6) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
Activity grpz0vo0fa.true
Device X-Lamp (6) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
Events
2020-11-16 18:35:37: Reactor startup (Luup reload)
2020-11-16 18:35:37: Starting (Luup Startup/Reload)
2020-11-16 18:35:38: Sensor update starting
2020-11-16 18:35:38: Sensor update completed; 0.075s
Devices
ZWave (1) urn:schemas-micasaverde-com:device:ZWaveNetwork:1 (19/0); parent 0; plugin -; mfg model ; dev D_ZWaveNetwork.xml impl
ZRC90-1 (6513) urn:schemas-micasaverde-com:device:SceneController:1 (14/0); parent 1; plugin -; mfg Remotec model ZRC-90; dev D_SceneController1.xml impl
X-Lamp (6) urn:schemas-upnp-org:device:BinaryLight:1 (3/1); parent 1; plugin -; mfg Fibaro model FGWPE/F-101; dev D_BinaryLight1.xml impl
Watches
Device #6514 ZRC90-1 Scenes service urn:toggledbits-com:serviceId:ReactorSensor variable TestHouseMode
Device #6513 ZRC90-1 service urn:micasaverde-com:serviceId:SceneController1 variable sl_CentralScene
Device #6514 ZRC90-1 Scenes service urn:toggledbits-com:serviceId:ReactorSensor variable cdata
Device #6514 ZRC90-1 Scenes service urn:toggledbits-com:serviceId:ReactorSensor variable TestTime