Programming ZME Wall controller

Post Reply
User avatar
madpatrick
Posts: 32
Joined: Monday 26 December 2016 13:17
Target OS: Linux
Domoticz version: 3.8153
Location: Netherlands
Contact:

Programming ZME Wall controller

Post by madpatrick » Saturday 02 December 2017 17:09

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

kunoch
Posts: 4
Joined: Wednesday 28 February 2018 15:16
Target OS: Raspberry Pi
Domoticz version:
Location: Switzerland
Contact:

Re: Programming ZME Wall controller

Post by kunoch » Friday 09 March 2018 11:19

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?

kunoch
Posts: 4
Joined: Wednesday 28 February 2018 15:16
Target OS: Raspberry Pi
Domoticz version:
Location: Switzerland
Contact:

Re: Programming ZME Wall controller

Post by kunoch » Friday 09 March 2018 12:28

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
Attachments
Untitled.png
Untitled.png (36.63 KiB) Viewed 452 times

User avatar
madpatrick
Posts: 32
Joined: Monday 26 December 2016 13:17
Target OS: Linux
Domoticz version: 3.8153
Location: Netherlands
Contact:

Re: Programming ZME Wall controller

Post by madpatrick » Saturday 17 March 2018 9:21

Great !!
This is working for me.

Sherco49
Posts: 1
Joined: Saturday 24 March 2018 18:54
Target OS: Linux
Domoticz version:
Contact:

Re: Programming ZME Wall controller

Post by Sherco49 » Saturday 24 March 2018 20:19

Hi Kunoch

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests