Page 1 of 1

Programming ZME Wall controller

Posted: Saturday 02 December 2017 16:09
by madpatrick
Hi,

I've two Z-Wave.Me ZME_WALLC-S Secure Wall Controller installed and working nicely.
On the wall controller i've setup 1 button to turn light on and 1 button to turn the light off.
https://imgur.com/a/ejzUg

Now i want to program with blocky that now matter which button i press the light goes on or off.
So, if i press button 1 and the light is OFF the light goes ON
if i press button 1 and the light is ON the light goes OFF
if i press button 2 and the light is OFF the light goes ON
if i press button 2 and the light is ON the light goes OFF

When i put his in Blocky Domoticz is getting in a loop. The loop is maybe because the swithes are turn "ON" in Domoticz and doesn't have a ON or OFF
What can i do to get this working in Blocky.
https://imgur.com/a/CLH9k

Re: Programming ZME Wall controller

Posted: Friday 09 March 2018 10:19
by kunoch
I have exactly the same issue, I just want to toggle a light.
I think the problem is that the button on the scene controller is reporting on all the time.
Did you come to a conclusion?

Re: Programming ZME Wall controller

Posted: Friday 09 March 2018 11:28
by kunoch
I found a way to do this, but is not really straight forward.
I defined a variable for the switch and use the value of the variable together with the button on scene controller to change the state of the switch. I hope you get the point.
IF ((button==ON) and SW1Var=="OFF"))
THEN SW1=ON
ELSE IF ((button==ON) and SW1Var=="ON"))
THEN SW1=OFF
ELSE IF (SW1==ON) #checking the status here and then only modifying the variable avoids triggering the first ELSE IF
THEN SW1Var="ON"
ELSE IF (SW1==OFF)
THEN SW1Var="OFF"

Slightly complicated to just change the SW1 to the opposite state.

kuno

Re: Programming ZME Wall controller

Posted: Saturday 17 March 2018 8:21
by madpatrick
Great !!
This is working for me.

Re: Programming ZME Wall controller

Posted: Saturday 24 March 2018 19:19
by Sherco49
Hi Kunoch

Thank you for your share, i was searching this for two 433Mhz chinese 3 ways switches toggling 3 different lights, perfectly working !

Re: Programming ZME Wall controller

Posted: Tuesday 01 January 2019 13:38
by madpatrick
Hi,

I like to have this script in DzVent instead in Blocky, but unfortunately i'm not a good programmer
Can somebody help me with this ?