solution for stair hallway

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
qbic2007
Posts: 12
Joined: Friday 02 January 2015 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

solution for stair hallway

Post by qbic2007 »

Hello

Need some help with the following scenario, can't seem to figure it out on my own.
My stair hallway has 2 circuits, i connected both to their own fibaro double switch (output 1 and sw1 (pulse button) on both modules)

So now I can switch each circuit with its own button, but I wanna switch on both together by triggering either the upper or lower button.
I also want to have the light switch off automatically after a minute. (this is standard functionality in the fibaro double switch)

Is there a solution to have this done with groups or slave functionality? I tried with groups but currently the best I got was alternating light (very fancy but not practical) ;)

If really required I can do a blocky script for this, but I'd rather solve it with basic the network func. :idea:

Thx for reading, thanks a lot for helping out 8-)
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: solution for stair hallway

Post by Egregius »

In my pass2php script that would be:

Code: Select all

function lighthalldown(){
  global $a,$s,$i;
  if($a=='On'){
    if($s['lighthallup']=='Off')sw($i['lighthallup'],'On');
  }else{
    if($s['lighthallup']=='On')sw($i['lighthallup'],'Off');
  }
}
function lighthallup(){
  global $a,$s,$i;
  if($a=='On'){
    if($s['lighthalldown']=='Off')sw($i['lighthalldown'],'On');
  }else{
    if($s['lighthalldown']=='On')sw($i['lighthalldown'],'Off');
  }
}
 
With that, the lights will follow each other, no mather wath switch is used.
qbic2007
Posts: 12
Joined: Friday 02 January 2015 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: solution for stair hallway

Post by qbic2007 »

thx Egregius, certainly helpful.

anybody has an idea for solving this without the controller/scripting?
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: solution for stair hallway

Post by Egregius »

What's wrong with scripting?
Oh, in case domoticz is down? How many times does that happen?
qbic2007
Posts: 12
Joined: Friday 02 January 2015 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: solution for stair hallway

Post by qbic2007 »

:mrgreen: Lets account it to previous experiences, but I must admit Domoticz is pretty stable lately. 8-)

I put a blocky script in place for the moment.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest