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
Programming ZME Wall controller
Moderator: leecollings
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Programming ZME Wall controller
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 4
- Joined: Wednesday 28 February 2018 14:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Switzerland
- Contact:
Re: Programming ZME Wall controller
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?
I think the problem is that the button on the scene controller is reporting on all the time.
Did you come to a conclusion?
-
- Posts: 4
- Joined: Wednesday 28 February 2018 14:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Switzerland
- Contact:
Re: Programming ZME Wall controller
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
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 (36.63 KiB) Viewed 3547 times
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: Programming ZME Wall controller
Great !!
This is working for me.
This is working for me.
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
Re: Programming ZME Wall controller
Hi Kunoch
Thank you for your share, i was searching this for two 433Mhz chinese 3 ways switches toggling 3 different lights, perfectly working !
Thank you for your share, i was searching this for two 433Mhz chinese 3 ways switches toggling 3 different lights, perfectly working !
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: Programming ZME Wall controller
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 ?
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 ?
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
Who is online
Users browsing this forum: No registered users and 1 guest